40 lines
973 B
YAML
40 lines
973 B
YAML
version: '3'
|
||
services:
|
||
|
||
# Port 9100
|
||
node-exporter:
|
||
image: quay.io/prometheus/node-exporter
|
||
volumes:
|
||
#- /:/host:ro,rslave # C’est vraiment un peu nul
|
||
- /proc:/host/proc:ro,rslave
|
||
- /sys:/host/sys:ro,rslave
|
||
- /dev:/host/dev:ro,rslave
|
||
#command: ["path.rootfs=/host"]
|
||
networks:
|
||
- ingress
|
||
|
||
# Port 8081
|
||
docker-exporter:
|
||
image: cdewitt/docker-stats-exporter
|
||
networks:
|
||
- ingress
|
||
volumes:
|
||
- /var/run/docker.sock:/var/run/docker.sock # Pas besoin vu qu’on a le reste et que USE_PSEUDO_FILES est à True. BEN SI…………
|
||
- /sys/fs/cgroup:/rootfs/sys/fs/cgroup:ro
|
||
- /proc:/rootfs/proc:ro
|
||
environment:
|
||
PROC_DIRECTORY: /rootfs/proc
|
||
CGROUP_DIRECTORY: /rootfs/sys/fs/cgroup
|
||
USE_PSEUDO_FILES: "True"
|
||
|
||
docker-metrics-proxy:
|
||
image: nginx
|
||
volumes:
|
||
- /var/run/docker-metrics.sock:/var/run/docker-metrics.sock
|
||
|
||
|
||
networks:
|
||
ingress:
|
||
external: true
|
||
|