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

Use cached consumer groups when listing offsets via Admin API #101

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

amuraru
Copy link
Contributor

@amuraru amuraru commented Jul 28, 2021

Reduce the number of calls to Kafka in a collect/scrape round by using the cached list of groups

@weeco
Copy link
Contributor

weeco commented Jul 30, 2021

Just a side note before I look into this: The cache is only scoped to the request itself. So this will only help if there's another scrape task that describes the consumer groups as well - for each invocation of /metrics.

@amuraru
Copy link
Contributor Author

amuraru commented Jul 30, 2021

Exactly the case here @weeco - the groups are retrieved twice in a scrape interval: once for groups info and once for groups offsets retrieval

@weeco weeco merged commit 5a7a20a into redpanda-data:master Aug 2, 2021
@amuraru amuraru deleted the cached-groups branch October 23, 2021 21:51
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.

2 participants