title: Monitoring number of consumer for the Kafka topic
body: <p>We are using Prometheus and Grafana for monitoring our Kafka cluster. </p>
  
  <p>In our application, we use Kafka streams and there is a chance that Kafka stream getting stopped due to exception. We are logging the event <code>setUnCaughtExceptionHandler</code> but, we also need some kind of alerting when the stream stops. </p>
  
  <p>What we currently have is, jmx_exporter running as a agent and exposes Kafka metrics through an endpoint and prometheus fetches the metrics from the endpoint. </p>
  
  <p>We don't see any kind of metrics which gives the count of active consumers per topic. Are we missing something? Any suggestions on how to get the number of active consumers and send alerts when the consumer stops.</p>