Archived
added telegraf config to stack
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user