From: Kai Moritz Date: Tue, 21 Feb 2023 22:11:41 +0000 (+0100) Subject: Added `seglo/kafka-lag-exporter` X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e9c67d24f7f4cefe8b86546e65c7cec540a4e8e7;p=demos%2Fkafka%2Fmonitoring Added `seglo/kafka-lag-exporter` - See: https://github.com/seglo/kafka-lag-exporter#monitoring-with-grafana --- 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" + } + } + ] +}