Telegraf-Docker: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Config= *cat /etc/telegraf/telegraf.d/docker.conf <pre> # Read metrics about docker containers inputs.docker ## Docker Endpoint ## To use TCP, set …“)
 
Zeile 22: Zeile 22:
 
   ## Note that an empty array for both will include all labels as tags
 
   ## Note that an empty array for both will include all labels as tags
 
  # docker_label_include = []
 
  # docker_label_include = []
  # docker_label_exclude =  
+
  # docker_label_exclude = []
 
</pre>
 
</pre>

Version vom 15. Mai 2017, 14:35 Uhr

Config

  • cat /etc/telegraf/telegraf.d/docker.conf
# Read metrics about docker containers
[[inputs.docker]]
  ## Docker Endpoint
  ##   To use TCP, set endpoint = "tcp://[ip]:[port]"
  ##   To use environment variables (ie, docker-machine), set endpoint = "ENV"
  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"

  ## Whether to report for each container per-device blkio (8:0, 8:1...) and
  ## network (eth0, eth1, ...) stats or not
  perdevice = true
  ## Whether to report for each container total blkio and network stats or not
  total = false
  
  ## docker labels to include and exclude as tags.  Globs accepted.
  ## Note that an empty array for both will include all labels as tags
 # docker_label_include = []
 # docker_label_exclude = []