Update counter driver.docker.oom labels

This commit is contained in:
Jesus Vazquez 2018-05-04 14:02:34 +08:00
parent 4f6db56283
commit 08a390448b
1 changed files with 10 additions and 6 deletions

View File

@ -1935,16 +1935,20 @@ func (h *DockerHandle) run() {
werr = fmt.Errorf("OOM Killed")
labels := []metrics.Label{
{
Name: "Image",
Value: h.Image,
Name: "JobName",
Value: h.jobName,
},
{
Name: "ImageID",
Value: h.ImageID,
Name: "TaskGroupName",
Value: h.taskGroupName,
},
{
Name: "ContainerID",
Value: h.containerID,
Name: "TaskName",
Value: h.taskName,
},
{
Name: "AllocID",
Value: h.allocID,
},
}
metrics.IncrCounterWithLabels([]string{"driver", "docker", "oom"}, 1, labels)