Consumer group status metric

Hi,

We would like to integrate the status of consumer groups into our monitoring system (NOT the consumer group lag, but the status). The most effective way to do this would be to import the status into Prometheus.

Sadly the consumer group status is not included in the metrics API and can only be obtained (as far as I could find in the documentation) via JMX or Consumer Group REST API. To get this status into prometheus we would either have to export JMX metrics to or write a small service that polls the Consumer Group REST API and provides a prometheus endpoint. Both ways seem to be pretty complicated just to get this information.

Is there another way to get this information into prometheus?

Thanks for your help!