Skip to content

Commit

Permalink
fix: change metric id for check_brokers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
achoimet committed Jan 31, 2025
1 parent a26b67e commit 6e71129
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extkafka/check_brokers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6e71129

Please sign in to comment.