restclient: rename "method" label to "verb"

Verb is the commonly used label when referring to HTTP verbs.
rest_client_requests_total is the only metric in the rest package using
`method` instead of `verb` which makes it inconsistent and confusing.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
Damien Grisonnet 2023-02-01 15:10:33 +01:00
parent 36450ee422
commit c9944709bc

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, method, and host.",
Help: "Number of HTTP requests, partitioned by status code, verb, and host.",
},
[]string{"code", "method", "host"},
[]string{"code", "verb", "host"},
)
execPluginCertTTLAdapter = &expiryToTTLAdapter{}