From 03160b575839eeb01d7e9a961fdaa0205381208e Mon Sep 17 00:00:00 2001 From: Antonio Si Date: Wed, 29 Mar 2023 20:32:52 -0700 Subject: [PATCH] Add Golang metrics into the metrics repository --- metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index f6a0c629aa..fcaf51fd1d 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -170,7 +170,7 @@ func (m *Metrics) Run(ctx context.Context, addr string) { metricsRegistry := prometheus.NewRegistry() metricsRegistry.MustRegister(collectors.NewGoCollector(), m) http.Handle("/metrics", promhttp.HandlerFor(metricsRegistry, promhttp.HandlerOpts{})) - + log.Info("starting metrics server") if err := http.ListenAndServe(addr, nil); err != nil { log.Fatalw("failed to start metrics server", zap.Error(err))