Merge 596683f7d1
into 66ff3a82b3
This commit is contained in:
commit
b7d0da7b0e
|
@ -57,41 +57,7 @@ services:
|
||||||
- grafana-monitoring
|
- grafana-monitoring
|
||||||
volumes:
|
volumes:
|
||||||
- /home/ubuntu/docker/grafana-monitoring/influxdb:/var/lib/influxdb2
|
- /home/ubuntu/docker/grafana-monitoring/influxdb:/var/lib/influxdb2
|
||||||
telegraf:
|
|
||||||
container_name: telegraf
|
|
||||||
restart: unless-stopped
|
|
||||||
user: telegraf:995 #you need to find the GID of Docker if not added to Sudo group
|
|
||||||
networks:
|
|
||||||
- grafana-monitoring
|
|
||||||
volumes:
|
|
||||||
- '/home/ubuntu/docker/grafana-monitoring/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro'
|
|
||||||
- '/:/hostfs:ro' # to monitor docker-vm
|
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock' # to monitor docker containers
|
|
||||||
- '/home/ubuntu/docker/grafana-monitoring/telegraf/mibs:/usr/share/snmp/mibs' # mibs files [e.g., sophos]
|
|
||||||
environment:
|
|
||||||
- HOST_ETC=/hostfs/etc
|
|
||||||
- HOST_PROC=/hostfs/proc
|
|
||||||
- HOST_SYS=/hostfs/sys
|
|
||||||
- HOST_VAR=/hostfs/var
|
|
||||||
- HOST_RUN=/hostfs/run
|
|
||||||
- HOST_MOUNT_PREFIX=/hostfs
|
|
||||||
image: telegraf:latest
|
|
||||||
graphite:
|
|
||||||
image: graphiteapp/graphite-statsd
|
|
||||||
container_name: graphite
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- 8050:80 # nginx
|
|
||||||
- 2003-2004 # carbon receiver - plaintext & pickle
|
|
||||||
- 2023-2024 # carbon aggregator - plaintext & pickle
|
|
||||||
- 8125:8125/udp # statsd
|
|
||||||
- 8126:8126 # statsd admin
|
|
||||||
volumes:
|
|
||||||
- /home/ubuntu/docker/grafana-monitoring/graphite/configs:/opt/graphite/conf
|
|
||||||
- /home/ubuntu/docker/grafana-monitoring/graphite/data:/opt/graphite/storage
|
|
||||||
- /home/ubuntu/docker/grafana-monitoring/graphite/statsd_config:/opt/statsd/config
|
|
||||||
networks:
|
|
||||||
- grafana-monitoring
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus
|
image: prom/prometheus
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
|
@ -102,7 +68,6 @@ services:
|
||||||
- /home/ubuntu/docker/grafana-monitoring/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
|
- /home/ubuntu/docker/grafana-monitoring/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
networks:
|
networks:
|
||||||
- grafana-monitoring
|
- grafana-monitoring
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
grafana-monitoring:
|
grafana-monitoring:
|
||||||
proxy:
|
proxy:
|
||||||
|
|
Loading…
Reference in New Issue