From 08a390448b8def2e2ebc7dc731863a92f4ef319c Mon Sep 17 00:00:00 2001 From: Jesus Vazquez Date: Fri, 4 May 2018 14:02:34 +0800 Subject: [PATCH] Update counter driver.docker.oom labels --- client/driver/docker.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/client/driver/docker.go b/client/driver/docker.go index 1d841113b..7cc9e8c45 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -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)