aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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