From 169fd647882c1e1f78a1cace6677fa8348aab8ac Mon Sep 17 00:00:00 2001 From: kden416 Date: Tue, 16 Jul 2019 03:10:42 +0300 Subject: [PATCH] Add list of possible container states to docker docs (#6099) --- plugins/inputs/docker/README.md | 2 ++ plugins/inputs/docker/docker.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/inputs/docker/README.md b/plugins/inputs/docker/README.md index c909b6683..1816107ea 100644 --- a/plugins/inputs/docker/README.md +++ b/plugins/inputs/docker/README.md @@ -32,6 +32,8 @@ to gather stats from the [Engine API](https://docs.docker.com/engine/api/v1.24/) ## Container states to include and exclude. Globs accepted. ## When empty only containers in the "running" state will be captured. + ## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"] + ## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"] # container_state_include = [] # container_state_exclude = [] diff --git a/plugins/inputs/docker/docker.go b/plugins/inputs/docker/docker.go index 00e6f58e7..3c92ca278 100644 --- a/plugins/inputs/docker/docker.go +++ b/plugins/inputs/docker/docker.go @@ -96,6 +96,8 @@ var sampleConfig = ` ## Container states to include and exclude. Globs accepted. ## When empty only containers in the "running" state will be captured. + ## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"] + ## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"] # container_state_include = [] # container_state_exclude = []