From 155b01dcacf302c9597b72e57701121e9e2f38d3 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 17 Jul 2022 10:58:44 -0700 Subject: [PATCH] Switch to monitoring Traefik via docker network --- server/config/monitoring/prometheus.yml | 2 +- server/config/traefik/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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