diff --git a/cmd/query/main.go b/cmd/query/main.go index 51c374637d86..650257b4c7d4 100644 --- a/cmd/query/main.go +++ b/cmd/query/main.go @@ -73,6 +73,7 @@ func main() { logger := svc.Logger // shortcut baseFactory := svc.MetricsFactory.Namespace(metrics.NSOptions{Name: "jaeger"}) metricsFactory := baseFactory.Namespace(metrics.NSOptions{Name: "query"}) + metricsQueryFactory := baseFactory.Namespace(metrics.NSOptions{Name: "metrics_query"}) version.NewInfoMetrics(metricsFactory) traceCfg := &jaegerClientConfig.Configuration{ @@ -116,7 +117,7 @@ func main() { logger.Fatal("Failed to create dependency reader", zap.Error(err)) } - metricsQueryService, err := createMetricsQueryService(metricsReaderFactory, v, logger, metricsFactory) + metricsQueryService, err := createMetricsQueryService(metricsReaderFactory, v, logger, metricsQueryFactory) if err != nil { logger.Fatal("Failed to create metrics query service", zap.Error(err)) }