From 9887481c435ff4574e9fa407c09dfae812d94694 Mon Sep 17 00:00:00 2001 From: "antoine.choimet" Date: Thu, 21 Nov 2024 10:00:16 +0100 Subject: [PATCH] fix: topic target attributes to show leaders --- extkafka/topic_discovery.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extkafka/topic_discovery.go b/extkafka/topic_discovery.go index ac836d0..62181fb 100644 --- a/extkafka/topic_discovery.go +++ b/extkafka/topic_discovery.go @@ -53,7 +53,7 @@ func (r *kafkaTopicDiscovery) DescribeTarget() discovery_kit_api.TargetDescripti Columns: []discovery_kit_api.Column{ {Attribute: "steadybit.label"}, {Attribute: "kafka.topic.name"}, - {Attribute: "kafka.topic.partitions"}, + {Attribute: "kafka.topic.partitions-leaders"}, {Attribute: "kafka.topic.replication-factor"}, }, OrderBy: []discovery_kit_api.OrderBy{ @@ -85,8 +85,8 @@ func (r *kafkaTopicDiscovery) DescribeAttributes() []discovery_kit_api.Attribute { Attribute: "kafka.topic.partitions-leaders", Label: discovery_kit_api.PluralLabel{ - One: "Kafka topic partitions", - Other: "Kafka topic partitions", + One: "Kafka topic partitions leaders", + Other: "Kafka topic partitions leaders", }, }, {