Merge pull request #115808 from dgrisonnet/revert-115455

Revert "restclient: rename "method" label to "verb""
This commit is contained in:
Kubernetes Prow Robot 2023-02-15 13:52:19 -08:00 committed by GitHub
commit ccaa730805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -77,9 +77,9 @@ var (
&k8smetrics.CounterOpts{
Name: "rest_client_requests_total",
StabilityLevel: k8smetrics.ALPHA,
Help: "Number of HTTP requests, partitioned by status code, verb, and host.",
Help: "Number of HTTP requests, partitioned by status code, method, and host.",
},
[]string{"code", "verb", "host"},
[]string{"code", "method", "host"},
)
requestRetry = k8smetrics.NewCounterVec(

View File

@ -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
`,
},
{