mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
restclient: revert metrics test to use old label
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
parent
437c9d9ab2
commit
51ae7265ae
@ -42,9 +42,9 @@ func TestClientGOMetrics(t *testing.T) {
|
|||||||
metrics.RequestResult.Increment(context.TODO(), "200", "POST", "www.foo.com")
|
metrics.RequestResult.Increment(context.TODO(), "200", "POST", "www.foo.com")
|
||||||
},
|
},
|
||||||
want: `
|
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
|
# 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
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user