From 6e71129c5c775ec74d5387a05fbaf37f08bd4ff4 Mon Sep 17 00:00:00 2001 From: "antoine.choimet" Date: Fri, 31 Jan 2025 10:30:30 +0100 Subject: [PATCH] fix: change metric id for check_brokers.go --- extkafka/check_brokers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extkafka/check_brokers.go b/extkafka/check_brokers.go index 88be2da..cca6e03 100644 --- a/extkafka/check_brokers.go +++ b/extkafka/check_brokers.go @@ -39,7 +39,6 @@ type CheckBrokersState struct { const ( BrokerControllerChanged = "kafka controller changed" BrokerDowntime = "kafka broker with downtime" - MetricID = "Broker Activity" ) // Make sure action implements all required interfaces @@ -297,7 +296,7 @@ func toBrokerChangeMetric(expectedChanges []string, changesNames []string, chang return extutil.Ptr(action_kit_api.Metric{ Name: extutil.Ptr("kafka_consumer_group_state"), Metric: map[string]string{ - "metric.id": MetricID, + "metric.id": fmt.Sprintf("Expected: " + strings.Join(expectedChanges, ",")), "url": "", "state": state, "tooltip": tooltip,