kafka_exporter icon indicating copy to clipboard operation
kafka_exporter copied to clipboard

Add ClientId and ClientHost to consumer group partition metrics

Open theY4Kman opened this issue 4 years ago • 2 comments

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

theY4Kman avatar Jun 16 '20 03:06 theY4Kman

awesome

kenwoodjw avatar Jul 01 '20 16:07 kenwoodjw

I build your pr code ,It work perfect

kenwoodjw avatar Jul 01 '20 17:07 kenwoodjw