From 7a15970b42b0d3ebc8c5c7360c3c3bf8e7c1d04c Mon Sep 17 00:00:00 2001 From: Jakub Scholz Date: Wed, 24 Apr 2024 20:03:02 +0200 Subject: [PATCH] Fix offset.show-all switch in Kafka Exporter Signed-off-by: Jakub Scholz --- .../kafka-based/kafka/exporter-scripts/kafka_exporter_run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-images/kafka-based/kafka/exporter-scripts/kafka_exporter_run.sh b/docker-images/kafka-based/kafka/exporter-scripts/kafka_exporter_run.sh index 9596a076c54..668d7e88fb0 100755 --- a/docker-images/kafka-based/kafka/exporter-scripts/kafka_exporter_run.sh +++ b/docker-images/kafka-based/kafka/exporter-scripts/kafka_exporter_run.sh @@ -30,8 +30,9 @@ if [ "$KAFKA_EXPORTER_ENABLE_SARAMA" = "true" ]; then saramaenable="--log.enable-sarama" fi -if [ "$KAFKA_EXPORTER_OFFSET_SHOW_ALL" = "true" ]; then - allgroups="--offset.show-all" +if [ "$KAFKA_EXPORTER_OFFSET_SHOW_ALL" = "false" ]; then + # This is enabled by default, so we have to disable it if it is set to false + allgroups="--no-offset.show-all" fi if [ -n "$KAFKA_EXPORTER_LOGGING" ]; then