Skip to content
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

Adds metrics: kafka_consumergroup_current_offset_sum and kafka_consumergroup_lag_sum #71

Merged
merged 2 commits into from
Nov 6, 2018

Conversation

milsonian
Copy link
Contributor

This adds summed metrics for kafka_consumergroup_current_offset and kafka_consumergroup_lag.

Motivation: When running at scale with high counts of consumer groups and very large partition counts, per-partition metrics can force scaling up prometheus (to potentially undesirable size). Having a summary allows for scraping full detail where desired, but scraping only the sum as a bellwether where that detail isn't necessary.

Note - this doesn't currently add -1 with no offset (like the per-partition metric).

Testing: Validated against kafka locally with multiple topics, consumergroups, partition sizes.

Note: this includes #69 since otherwise master is broken.

@danielqsj
Copy link
Owner

LGTM, thanks @milsonian

@danielqsj danielqsj merged commit 6f5fb77 into danielqsj:master Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants