|
|
|
@ -22,6 +22,8 @@ |
|
|
|
|
|
|
|
|
|
#include "absl/flags/flag.h" |
|
|
|
|
#include "absl/flags/parse.h" |
|
|
|
|
#include "absl/log/globals.h" |
|
|
|
|
#include "absl/log/initialize.h" |
|
|
|
|
#include "absl/log/log.h" |
|
|
|
|
#include "absl/strings/str_cat.h" |
|
|
|
|
#include "examples/cpp/otel/util.h" |
|
|
|
@ -42,6 +44,9 @@ ABSL_FLAG(std::string, prometheus_endpoint, "localhost:9464", |
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv) { |
|
|
|
|
absl::ParseCommandLine(argc, argv); |
|
|
|
|
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo); |
|
|
|
|
absl::SetGlobalVLogLevel(2); |
|
|
|
|
absl::InitializeLog(); |
|
|
|
|
opentelemetry::exporter::metrics::PrometheusExporterOptions opts; |
|
|
|
|
// default was "localhost:9464" which causes connection issue across GKE pods
|
|
|
|
|
opts.url = "0.0.0.0:9464"; |
|
|
|
|