From 51ae7265ae62cc2559028d5c177493d7c6ac94c2 Mon Sep 17 00:00:00 2001 From: Damien Grisonnet Date: Wed, 15 Feb 2023 20:30:35 +0100 Subject: [PATCH] restclient: revert metrics test to use old label Signed-off-by: Damien Grisonnet --- .../metrics/prometheus/restclient/metrics_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/component-base/metrics/prometheus/restclient/metrics_test.go b/staging/src/k8s.io/component-base/metrics/prometheus/restclient/metrics_test.go index 6a2bb923d24..577476f36ad 100644 --- a/staging/src/k8s.io/component-base/metrics/prometheus/restclient/metrics_test.go +++ b/staging/src/k8s.io/component-base/metrics/prometheus/restclient/metrics_test.go @@ -42,9 +42,9 @@ func TestClientGOMetrics(t *testing.T) { metrics.RequestResult.Increment(context.TODO(), "200", "POST", "www.foo.com") }, want: ` - # HELP rest_client_requests_total [ALPHA] Number of HTTP requests, partitioned by status code, verb, and host. + # HELP rest_client_requests_total [ALPHA] Number of HTTP requests, partitioned by status code, method, and host. # TYPE rest_client_requests_total counter - rest_client_requests_total{code="200",host="www.foo.com",verb="POST"} 1 + rest_client_requests_total{code="200",host="www.foo.com",method="POST"} 1 `, }, {