mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Fix metric label
Signed-off-by: Rodolfo Carvalho <rcarvalh@redhat.com>
This commit is contained in:
parent
b2c0ea37b4
commit
075ae79826
@ -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