diff --git a/server/config/monitoring/prometheus.yml b/server/config/monitoring/prometheus.yml index 589d25d..ce241f6 100644 --- a/server/config/monitoring/prometheus.yml +++ b/server/config/monitoring/prometheus.yml @@ -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' diff --git a/server/config/traefik/docker-compose.yml b/server/config/traefik/docker-compose.yml index be93ab4..9a0b101 100644 --- a/server/config/traefik/docker-compose.yml +++ b/server/config/traefik/docker-compose.yml @@ -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