mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
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:
parent
36450ee422
commit
c9944709bc
@ -77,9 +77,9 @@ var (
|
|||||||
&k8smetrics.CounterOpts{
|
&k8smetrics.CounterOpts{
|
||||||
Name: "rest_client_requests_total",
|
Name: "rest_client_requests_total",
|
||||||
StabilityLevel: k8smetrics.ALPHA,
|
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{}
|
execPluginCertTTLAdapter = &expiryToTTLAdapter{}
|
||||||
|
Loading…
Reference in New Issue
Block a user