confluentinc / jmx-monitoring-stacks

📊 Monitoring examples for Confluent Cloud and Confluent Platform
Apache License 2.0
51 stars 167 forks source link

Additional metrics on consumer poll #221

Closed hifly81 closed 5 months ago

hifly81 commented 5 months ago

Several metrics are not reported on dashboards: https://docs.confluent.io/platform/7.6/kafka/monitoring.html#consumer-metrics

Example:

MBean: kafka.consumer:type=consumer-metrics,client-id=([-.\w]+)

time-between-poll-avg The average delay between invocations of poll(). time-between-poll-max The max delay between invocations of poll(). last-poll-seconds-ago The number of seconds since the last poll() invocation. poll-idle-ratio-avg The average fraction of time the consumer’s poll() is idle as opposed to waiting for the user code to process records.