Add DockerErrors metric in the Kubelet.

Allows the tracking of errors by Docker operation.
This commit is contained in:
Victor Marmol
2015-06-02 16:13:35 -07:00
parent 1a805c711a
commit 6b0d3d8df0
2 changed files with 64 additions and 16 deletions

View File

@@ -58,6 +58,14 @@ var (
},
[]string{"operation_type"},
)
DockerErrors = prometheus.NewCounterVec(
prometheus.CounterOpts{
Subsystem: kubeletSubsystem,
Name: "docker_errors",
Help: "Cumulative number of Docker errors by operation type.",
},
[]string{"operation_type"},
)
)
var registerMetrics sync.Once
@@ -70,6 +78,7 @@ func Register(containerCache kubecontainer.RuntimeCache) {
prometheus.MustRegister(DockerOperationsLatency)
prometheus.MustRegister(SyncPodsLatency)
prometheus.MustRegister(ContainersPerPodCount)
prometheus.MustRegister(DockerErrors)
prometheus.MustRegister(newPodAndContainerCollector(containerCache))
})
}