From fd97ab2010936d70deec60c7663a4e7c72d10019 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Mon, 14 Oct 2024 22:11:29 -0400 Subject: [PATCH] add loki + promtail --- docker/grafana/docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docker/grafana/docker-compose.yml b/docker/grafana/docker-compose.yml index e83798f..92d4ca2 100644 --- a/docker/grafana/docker-compose.yml +++ b/docker/grafana/docker-compose.yml @@ -22,6 +22,25 @@ services: volumes: - /docker/appdata/grafana:/etc/grafana/provisioning/datasources + loki: + image: grafana/loki:2.4.0 + container_name: loki + volumes: + - /docker/appdata/loki:/etc/loki + ports: + - "3100:3100" + restart: unless-stopped + command: -config.file=/etc/loki/loki-config.yml + + promtail: + image: grafana/promtail:2.4.0 + container_name: promtail + volumes: + - /var/log:/var/log + - /docker/appdata/promtail:/etc/promtail + restart: unless-stopped + command: -config.file=/etc/promtail/promtail-config.yml + snmp-exporter: image: prom/snmp-exporter:v0.26.0 volumes: