From a5bcb3904635113d47d939f714a4c451cd4cc754 Mon Sep 17 00:00:00 2001 From: bogo <70442600+bogo-y@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:15:51 +0800 Subject: [PATCH] replace "endpoint" with "path" --- pkg/client/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/metrics/metrics.go b/pkg/client/metrics/metrics.go index 0016d112..0faaed82 100644 --- a/pkg/client/metrics/metrics.go +++ b/pkg/client/metrics/metrics.go @@ -79,7 +79,7 @@ func (c *instrumentedGenericClient) Do(ctx context.Context, verb, endpoint strin return } } - queryLatency.With(prometheus.Labels{"endpoint": endpoint, "server": c.serverName}).Observe(endTime.Sub(startTime).Seconds()) + queryLatency.With(prometheus.Labels{"path": endpoint, "server": c.serverName}).Observe(endTime.Sub(startTime).Seconds()) }() var resp client.APIResponse