From 33ce73e8793df3c5bb3ddc3cbb640ce1b72849cc Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 28 May 2025 17:30:41 +0100 Subject: Added to docker --- docker-compose.yml | 8 ++++++++ prometheus/prometheus.yml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 0211b8f..c164e11 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,6 +47,7 @@ services: - ./config.env depends_on: - influxdb + - pushgateway restart: unless-stopped volumes: - ./switch-snmp/omada-switches.conf:/app/omada-switches.conf @@ -57,6 +58,8 @@ services: image: grafana/grafana:8.5.27 ports: - 3000:3000 + environment: + - GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-sankey-panel depends_on: - influxdb - prometheus @@ -73,6 +76,11 @@ services: - --web.config.file=/etc/prometheus/web.yml ports: - 9090:9090 + restart: unless-stopped + + pushgateway: + image: prom/pushgateway + restart: unless-stopped volumes: diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index c9ded40..8411313 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -5,3 +5,7 @@ scrape_configs: static_configs: - targets: - prometheus:9090 + - job_name: pushgateway + static_configs: + - targets: + - pushgateway:9091 -- cgit v1.2.3