mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #7830 from rhcarvalho/fix-metric-label
Fix metric label
This commit is contained in:
commit
b4ae750e5d
@ -133,7 +133,7 @@ func (in instrumentedDockerInterface) Version() (*docker.Env, error) {
|
|||||||
func (in instrumentedDockerInterface) Info() (*docker.Env, error) {
|
func (in instrumentedDockerInterface) Info() (*docker.Env, error) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
defer func() {
|
defer func() {
|
||||||
metrics.DockerOperationsLatency.WithLabelValues("version").Observe(metrics.SinceInMicroseconds(start))
|
metrics.DockerOperationsLatency.WithLabelValues("info").Observe(metrics.SinceInMicroseconds(start))
|
||||||
}()
|
}()
|
||||||
return in.client.Info()
|
return in.client.Info()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user