Added `seglo/kafka-lag-exporter`
authorKai Moritz <kai@juplo.de>
Tue, 21 Feb 2023 22:11:41 +0000 (23:11 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 21 Feb 2023 22:14:26 +0000 (23:14 +0100)
- See: https://github.com/seglo/kafka-lag-exporter#monitoring-with-grafana

docker-compose.yml
kafka-lag-exporter.conf [new file with mode: 0644]

index 8e9d197..cdf9e88 100644 (file)
@@ -84,6 +84,13 @@ services:
       - kafka-2
       - kafka-3
 
+  kafka-lag-exporter:
+    image: seglo/kafka-lag-exporter:0.8.2
+    volumes:
+      - ./kafka-lag-exporter.conf:/opt/docker/conf/application.conf:ro
+    ports:
+      - 8000:8000
+
   kafka-exporter:
     image: danielqsj/kafka-exporter:v1.6.0
     command: --kafka.server kafka:9092
diff --git a/kafka-lag-exporter.conf b/kafka-lag-exporter.conf
new file mode 100644 (file)
index 0000000..7ea2244
--- /dev/null
@@ -0,0 +1,11 @@
+kafka-lag-exporter {
+  clusters = [
+    {
+      name = "my-cluster"
+      bootstrap-brokers = "kafka-1:9092,kafka-2:9092,kafka-3:9092"
+      labels = {
+        env = "dev"
+      }
+    }
+  ]
+}