From aab56a0e40904cf94351a9a8678b0e0faf7cd44b Mon Sep 17 00:00:00 2001 From: chsteinle Date: Thu, 23 Dec 2021 13:00:08 +0100 Subject: [PATCH] Introduce prometheus for metrics collection. --- monitoring/docker-compose.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/monitoring/docker-compose.yaml b/monitoring/docker-compose.yaml index 1dc85c6..958ef2d 100644 --- a/monitoring/docker-compose.yaml +++ b/monitoring/docker-compose.yaml @@ -19,6 +19,8 @@ volumes: name: telegraf influxdb: name: influxdb + prometheus-config: + name: prometheus-config services: netdata: @@ -96,6 +98,7 @@ services: networks: - proxy - internal + restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.influx.rule=Host(`influx.lan`)" @@ -103,6 +106,22 @@ services: - "traefik.http.routers.influx.service=influx" - "traefik.http.services.influx.loadbalancer.server.port=8086" + prometheus: + image: prom/prometheus + container_name: prometheus + volumes: + - prometheus-config:/etc/prometheus + networks: + - proxy + - internal + restart: unless-stopped + labels: + - "traefik.enable=true" + - "traefik.http.routers.prometheus.rule=Host(`prometheus.lan`)" + - "traefik.http.routers.prometheus.entrypoints=web" + - "traefik.http.routers.prometheus.service=prometheus" + - "traefik.http.services.prometheus.loadbalancer.server.port=9090" + grafana: image: grafana/grafana-oss container_name: grafana