Skip to content

Commit

Permalink
Add list of possible container states to docker docs (influxdata#6099)
Browse files Browse the repository at this point in the history
  • Loading branch information
kden416 authored and bitcharmer committed Oct 18, 2019
1 parent 7e38c57 commit ab669af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/inputs/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down
2 changes: 2 additions & 0 deletions plugins/inputs/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit ab669af

Please sign in to comment.