aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-05-28 17:30:41 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-05-28 17:30:41 +0100
commit33ce73e8793df3c5bb3ddc3cbb640ce1b72849cc (patch)
treed7ede0dd7d511509c27aab16b6060c046861d2cb
parent4b0d599dc5877d6c19a6ccf1a82707c6a9289e86 (diff)
downloadpower.eda.gay-33ce73e8793df3c5bb3ddc3cbb640ce1b72849cc.tar.gz
power.eda.gay-33ce73e8793df3c5bb3ddc3cbb640ce1b72849cc.zip
Added to docker
-rw-r--r--docker-compose.yml8
-rw-r--r--prometheus/prometheus.yml4
2 files changed, 12 insertions, 0 deletions
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