From e9c67d24f7f4cefe8b86546e65c7cec540a4e8e7 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 21 Feb 2023 23:11:41 +0100 Subject: [PATCH] Added `seglo/kafka-lag-exporter` - See: https://github.com/seglo/kafka-lag-exporter#monitoring-with-grafana --- docker-compose.yml | 7 +++++++ kafka-lag-exporter.conf | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 kafka-lag-exporter.conf diff --git a/docker-compose.yml b/docker-compose.yml index 8e9d197..cdf9e88 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 index 0000000..7ea2244 --- /dev/null +++ b/kafka-lag-exporter.conf @@ -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" + } + } + ] +} -- 2.20.1