added telegraf config to stack

This commit is contained in:
Gorden Mende
2022-02-01 10:27:09 +01:00
parent 6e9b00a27b
commit c3d8fbd804
+19
View File
@@ -66,6 +66,25 @@ services:
# constraints: # constraints:
# - node.labels.grafana == true # - node.labels.grafana == true
telegraf:
image: telegraf:latest
container_name: telegraf
# restart: always
# extra_hosts:
# - "influxdb:192.168.0.40"
networks:
- 'home'
environment:
HOST_PROC: /host/proc
HOST_SYS: /host/sys
HOST_ETC: /host/etc
volumes:
- /volume1/docker/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/host/sys:ro
- /proc:/host/proc:ro
- /etc:/host/etc:ro
networks: networks:
home: home:
#volumes: #volumes: