segregate monitoring

This commit is contained in:
Didier Slof 2023-03-04 19:14:06 +01:00
parent b278c02174
commit 72c2215c1b
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 36 additions and 32 deletions

View 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

View file

@ -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: