Skip to content

Commit

Permalink
Update counter driver.docker.oom labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus Vazquez committed May 4, 2018
1 parent 8bc4eb2 commit e7bd558
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7bd558

Please sign in to comment.