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

Add ClientId and ClientHost to consumer group partition metrics #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

theY4Kman
Copy link

This PR adds the Client ID and Client Host to the kafka_consumergroup_current_offset and kafka_consumergroup_lag metrics, which describe the group member (if any) assigned to the particular partition.

kafka_consumergroup_current_offset{client_host="/1.2.3.4",client_id="my.consumer.2",consumergroup="log_ingestion",partition="11",topic="logs"} 1.1231975e+07

kafka_consumergroup_lag{client_host="/1.2.3.1",client_id="my.consumer.1",consumergroup="log_ingestion",partition="4",topic="logs"} 0

@kenwoodjw
Copy link

awesome

@kenwoodjw
Copy link

I build your pr code ,It work perfect

@theY4Kman theY4Kman force-pushed the feat/add-consumer-member-id-and-host branch from 23bfa09 to 1fbb75b Compare October 13, 2022 17:47
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