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
|
||||
- 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:
|
||||
image: lscr.io/linuxserver/kasm:latest
|
||||
container_name: kasm
|
||||
|
@ -193,7 +165,4 @@ services:
|
|||
volumes:
|
||||
- /srv/shlink/data:/var/lib/mysql
|
||||
networks:
|
||||
- internal
|
||||
|
||||
networks:
|
||||
metrics:
|
||||
- internal
|
Reference in a new issue