Use a timeout for docker list & stat cmds

closes #1133
This commit is contained in:
Cameron Sparr
2016-05-01 10:20:15 -06:00
parent 4e9798d0e6
commit c114849a31
3 changed files with 20 additions and 4 deletions

View File

@@ -565,6 +565,8 @@
# endpoint = "unix:///var/run/docker.sock"
# ## Only collect metrics for these containers, collect all if empty
# container_names = []
# ## Timeout for docker list, info, and stats commands
# timeout = "5s"
# # Read statistics from one or many dovecot servers
@@ -600,6 +602,9 @@
# ## Commands array
# commands = ["/tmp/test.sh", "/usr/bin/mycollector --foo=bar"]
#
# ## Timeout for each command to complete.
# timeout = "5s"
#
# ## measurement name suffix (for separating different commands)
# name_suffix = "_mycollector"
#