Merge pull request #7830 from rhcarvalho/fix-metric-label

Fix metric label
This commit is contained in:
Victor Marmol 2015-05-06 09:08:29 -07:00
commit b4ae750e5d

View File

@ -133,7 +133,7 @@ func (in instrumentedDockerInterface) Version() (*docker.Env, error) {
func (in instrumentedDockerInterface) Info() (*docker.Env, error) {
start := time.Now()
defer func() {
metrics.DockerOperationsLatency.WithLabelValues("version").Observe(metrics.SinceInMicroseconds(start))
metrics.DockerOperationsLatency.WithLabelValues("info").Observe(metrics.SinceInMicroseconds(start))
}()
return in.client.Info()
}