Skip to content

Commit ef2db85

Browse files
committed
Fix double metric registration
1 parent cd7b4f9 commit ef2db85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/metrics/v1/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func NewHandler(endpoints Endpoints, tlsOptions *tls.UpstreamOptions, opts ...Ha
470470
proxy.MiddlewareSetUpstream(endpoints.ReadEndpoint),
471471
proxy.MiddlewareSetPrefixHeader(),
472472
proxy.MiddlewareLogger(c.logger),
473-
proxy.MiddlewareMetrics(c.registry, prometheus.Labels{"proxy": "metricsv1-ui"}),
473+
proxy.MiddlewareMetrics(c.registry, prometheus.Labels{"proxy": "metricsv1-status"}),
474474
)
475475

476476
t := http.DefaultTransport.(*http.Transport)

0 commit comments

Comments
 (0)