-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Prometheus metrics as default mode #516
Conversation
0b328ab
to
3655911
Compare
1c9795d
to
7fbd871
Compare
@@ -116,7 +116,7 @@ func (spanHb *SpanHandlerBuilder) initElasticStore(esBuilder escfg.ClientBuilder | |||
// BuildHandlers builds span handlers (Zipkin, Jaeger) | |||
func (spanHb *SpanHandlerBuilder) BuildHandlers() (app.ZipkinSpansHandler, app.JaegerBatchesHandler) { | |||
hostname, _ := os.Hostname() | |||
hostMetrics := spanHb.metricsFactory.Namespace(hostname, nil) | |||
hostMetrics := spanHb.metricsFactory.Namespace("", map[string]string{"host": hostname}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: this is a breaking change, but without it the crossdock test was failing with "49d962b96482:save_latency" is not a valid metric name
because the host name was used as a prefix.
23420ab
to
3afc106
Compare
3afc106
to
f76a211
Compare
Signed-off-by: Yuri Shkuro <ys@uber.com>
f76a211
to
c9a232a
Compare
Signed-off-by: Yuri Shkuro <ys@uber.com>
pkg/metrics/builder.go
Outdated
"net/http" | ||
|
||
"github.com/prometheus/client_golang/prometheus/promhttp" | ||
"github.com/spf13/viper" | ||
xkit "github.com/uber/jaeger-lib/metrics/go-kit" | ||
kitexpvar "github.com/uber/jaeger-lib/metrics/go-kit/expvar" | ||
kitprom "github.com/uber/jaeger-lib/metrics/go-kit/prometheus" | ||
jprom "github.com/uber/jaeger-lib/metrics/prometheus" | ||
|
||
"github.com/uber/jaeger-lib/metrics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imports for this is wonky
Signed-off-by: Yuri Shkuro <ys@uber.com>
Depends in jaegertracing/jaeger-lib#29
Resolves #360, partially #273 .