Switch to monitoring Traefik via docker network

This commit is contained in:
Joey Hafner 2022-07-17 10:58:44 -07:00
parent 216bf5c45c
commit 155b01dcac
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ scrape_configs:
- job_name: 'traefik' - job_name: 'traefik'
scrape_interval: 5s scrape_interval: 5s
static_configs: static_configs:
- targets: ['192.168.1.23:28080'] - targets: ['traefik:28080']
metrics_path: "/metrics" metrics_path: "/metrics"
- job_name: 'exporter-pihole' - job_name: 'exporter-pihole'

View File

@ -15,10 +15,10 @@ services:
restart: "no" restart: "no"
networks: networks:
- web - web
- monitoring
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
- 28080:8080
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yaml:/traefik.yaml - ./traefik.yaml:/traefik.yaml