Switch to monitoring Traefik via docker network
This commit is contained in:
parent
216bf5c45c
commit
155b01dcac
@ -23,7 +23,7 @@ scrape_configs:
|
||||
- job_name: 'traefik'
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['192.168.1.23:28080']
|
||||
- targets: ['traefik:28080']
|
||||
metrics_path: "/metrics"
|
||||
|
||||
- job_name: 'exporter-pihole'
|
||||
|
@ -15,10 +15,10 @@ services:
|
||||
restart: "no"
|
||||
networks:
|
||||
- web
|
||||
- monitoring
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 28080:8080
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./traefik.yaml:/traefik.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user