From 2e0980afe014562ca4db888c6dacec4be3cbf532 Mon Sep 17 00:00:00 2001 From: seabfh Date: Tue, 22 Oct 2024 12:16:33 +0800 Subject: [PATCH] README: consumer lag cannot be seen --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 8f53923e..57ab79f6 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,20 @@ kafka_consumergroup_current_offset{consumergroup="KMOffsetCache-kafka-manager-38 kafka_consumergroup_lag{consumergroup="KMOffsetCache-kafka-manager-3806276532-ml44w",partition="0",topic="__consumer_offsets"} 1 ``` +#### Do not see any Consumer group or Lag information + +The consumer group metrics would not be available, if there is no consumer with a consumer group. + +Run consumer with a consumer group using command line tool +```bash +kafka-console-consumer.sh \ + --consumer.config /path/to/client.properties \ + --bootstrap-server localhost:9092 \ + --topic test \ + --group test-conusmer-group \ + --from-beginning +``` + Grafana Dashboard -------