danielqsj / kafka_exporter

Kafka exporter for Prometheus
Apache License 2.0
2.1k stars 602 forks source link

added feature to poll only a single broker #307

Closed ness2u closed 2 years ago

ness2u commented 2 years ago

The default behaviour of a kafka broker is to return group-metadata only for which it is the current leader. In some cloud-implementations of the kafka-protocol (like Oracle Streaming Service), brokers are virtual and load-balanced across a significant fleet, resulting in brokers being omnipotently aware of metadata for all groups.

By use of an additional flag --pollSingleBroker, kafka exporter will only poll the first broker in the list for group metadata.

ness2u commented 2 years ago

sorry, meant to create that against my fork.