-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new metric for kafka topic partition size. #298
base: master
Are you sure you want to change the base?
Conversation
New metric
|
@danielqsj hi, I add a new metric for a topic partition size, like this
please review this PR |
This looks great 👍 |
@xxm404 I've had a look at building on your code to make things a little faster as it was making a call for every partition, which was taking quite some time on a cluster with many topics/partitions. Please see here This builds a map of all the brokers and topics, with an array for each partition they own. It then makes a single call for each broker with an array of topics and partitions which that broker is the leader for: Not sure if you want to modify your PR to do something similar? |
It's better to follow the metric's naming convention. But I couldn't managed to find the right unit name in Kafka java client docs. Maybe you guys can figure it out ^-^ |
Any updates? |
You can use my build, https://github.com/soloradish/kafka_exporter It expose the |
No description provided.