Skip to content

Commit

Permalink
update to string instead of map
Browse files Browse the repository at this point in the history
  • Loading branch information
jcountsNR committed Sep 21, 2023
1 parent 051fa90 commit 1a4993b
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions receiver/kafkametricsreceiver/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,29 @@ func TestIntegration(t *testing.T) {
"consumers",
"topics",
}
rCfg.Metrics = map[string]bool{
"messaging.kafka.broker.count": true,
"messaging.kafka.broker.consumer_fetch_rate": true,
"messaging.kafka.broker.incoming_byte_rate": true,
"messaging.kafka.broker.outgoing_byte_rate": true,
"messaging.kafka.broker.request_latency": true,
"messaging.kafka.broker.response_rate": true,
"messaging.kafka.broker.response_size": true,
"messaging.kafka.broker.request_rate": true,
"messaging.kafka.broker.request_size": true,
"messaging.kafka.broker.requests_in_flight": true,
"messaging.kafka.broker.consumer_fetch_count": true,
rCfg.Metrics = []string{
"kafka.brokers",
"kafka.consumer_group.lag",
"kafka.consumer_group.lag_sum",
"kafka.consumer_group.members",
"kafka.consumer_group.offset",
"kafka.consumer_group.offset_sum",
"kafka.partition.current_offset",
"kafka.partition.oldest_offset",
"kafka.partition.replicas",
"kafka.partition.replicas_in_sync",
"kafka.topic.partitions",
"messaging.kafka.broker.consumer_fetch_count",
"messaging.kafka.broker.consumer_fetch_rate",
"messaging.kafka.broker.count",
"messaging.kafka.broker.incoming_byte_rate",
"messaging.kafka.broker.outgoing_byte_rate",
"messaging.kafka.broker.request_latency",
"messaging.kafka.broker.request_rate",
"messaging.kafka.broker.request_size",
"messaging.kafka.broker.requests_in_flight",
"messaging.kafka.broker.response_rate",
"messaging.kafka.broker.response_size",
}
}),

Expand Down

0 comments on commit 1a4993b

Please sign in to comment.