Skip to content

Commit ab669af

Browse files
kden416bitcharmer
authored andcommitted
Add list of possible container states to docker docs (influxdata#6099)
1 parent 7e38c57 commit ab669af

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

plugins/inputs/docker/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ to gather stats from the [Engine API](https://docs.docker.com/engine/api/v1.24/)
3232

3333
## Container states to include and exclude. Globs accepted.
3434
## When empty only containers in the "running" state will be captured.
35+
## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
36+
## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
3537
# container_state_include = []
3638
# container_state_exclude = []
3739

plugins/inputs/docker/docker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ var sampleConfig = `
9696
9797
## Container states to include and exclude. Globs accepted.
9898
## When empty only containers in the "running" state will be captured.
99+
## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
100+
## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
99101
# container_state_include = []
100102
# container_state_exclude = []
101103

0 commit comments

Comments
 (0)