segregate monitoring
This commit is contained in:
parent
b278c02174
commit
72c2215c1b
2 changed files with 36 additions and 32 deletions
35
docker-compose.monitoring.yml
Normal file
35
docker-compose.monitoring.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
version: '2.2'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
metrics:
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
build:
|
||||||
|
context: ./custom/prometheus
|
||||||
|
networks:
|
||||||
|
- metrics
|
||||||
|
extra_hosts:
|
||||||
|
- "docker.host:host-gateway"
|
||||||
|
|
||||||
|
prom-blackbox:
|
||||||
|
image: prom/blackbox-exporter:latest
|
||||||
|
networks:
|
||||||
|
- metrics
|
||||||
|
- internal
|
||||||
|
|
||||||
|
## THIS CONTANIER IS AVAILABLE ON THE HOST ##
|
||||||
|
node-exporter:
|
||||||
|
image: quay.io/prometheus/node-exporter:latest
|
||||||
|
container_name: node-exporter
|
||||||
|
command:
|
||||||
|
- '--path.rootfs=/host'
|
||||||
|
network_mode: host
|
||||||
|
pid: host
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- '/:/host:ro,rslave'
|
||||||
|
cap_add:
|
||||||
|
- SYS_TIME
|
||||||
|
|
|
@ -110,34 +110,6 @@ services:
|
||||||
- metrics
|
- metrics
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
prometheus:
|
|
||||||
build:
|
|
||||||
context: ./custom/prometheus
|
|
||||||
networks:
|
|
||||||
- metrics
|
|
||||||
extra_hosts:
|
|
||||||
- "docker.host:host-gateway"
|
|
||||||
|
|
||||||
prom-blackbox:
|
|
||||||
image: prom/blackbox-exporter:latest
|
|
||||||
networks:
|
|
||||||
- metrics
|
|
||||||
- internal
|
|
||||||
|
|
||||||
## THIS CONTANIER IS AVAILABLE ON THE HOST ##
|
|
||||||
node-exporter:
|
|
||||||
image: quay.io/prometheus/node-exporter:latest
|
|
||||||
container_name: node-exporter
|
|
||||||
command:
|
|
||||||
- '--path.rootfs=/host'
|
|
||||||
network_mode: host
|
|
||||||
pid: host
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- '/:/host:ro,rslave'
|
|
||||||
cap_add:
|
|
||||||
- SYS_TIME
|
|
||||||
|
|
||||||
kasm:
|
kasm:
|
||||||
image: lscr.io/linuxserver/kasm:latest
|
image: lscr.io/linuxserver/kasm:latest
|
||||||
container_name: kasm
|
container_name: kasm
|
||||||
|
@ -194,6 +166,3 @@ services:
|
||||||
- /srv/shlink/data:/var/lib/mysql
|
- /srv/shlink/data:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
networks:
|
|
||||||
metrics:
|
|
Reference in a new issue