Skip to content

Commit

Permalink
[docker daemon] Add the possibility to tag by container id
Browse files Browse the repository at this point in the history
Fix #2353
  • Loading branch information
Remi Hakim committed May 16, 2016
1 parent 011d594 commit 2a2bd83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions checks.d/docker_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"image_tag": lambda c: DockerUtil.image_tag_extractor(c, 1),
"container_command": lambda c: [c["Command"]],
"container_name": DockerUtil.container_name_extractor,
"container_id": lambda c: [c["Id"]],
}

CONTAINER = "container"
Expand Down
1 change: 1 addition & 0 deletions conf.d/docker_daemon.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ instances:
# - docker_image: LEGACY. The full image name:tag string (example: "nginx:latest")
# - container_name: Name of the container (example: "boring_euclid")
# - container_command: Command ran by the container (example: "echo 1")
# - container_id: Id of the container
#
# performance_tags: ["container_name", image_name", "image_tag", "docker_image"]

Expand Down

0 comments on commit 2a2bd83

Please sign in to comment.