diff --git a/services/proxy/pkg/metrics/metrics.go b/services/proxy/pkg/metrics/metrics.go index ef82031364..f366b3ddb0 100644 --- a/services/proxy/pkg/metrics/metrics.go +++ b/services/proxy/pkg/metrics/metrics.go @@ -49,6 +49,10 @@ func New() *Metrics { }, []string{"version"}), } + // Initialize the metrics with 0 + m.Requests.WithLabelValues("GET").Add(0) + m.Errors.WithLabelValues("GET").Add(0) + _ = prometheus.Register(m.Requests) _ = prometheus.Register(m.Errors) _ = prometheus.Register(m.Duration)