I don't think you can, Kafka itself is not tracking that information or exposing it over JMX. We use https://github.com/linkedin/Burrow for this.
/MR On Wed, Jan 5, 2022, 18:56 Somnath Pandey <[email protected]> wrote: > Hi Team, > > Could you please help to know the way of monitor Kafka consumer lag using > JMX exporter? > > Thanks in advance. > > Regards > Somnath Pandey > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/0db9d839-6045-4503-9b5e-b6448323b0dan%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/0db9d839-6045-4503-9b5e-b6448323b0dan%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAMV%3D_gYE_qu1xPQ%3D8%2BOzzzWKsGa9VufUJBVZF45GH90_y%3D1UjA%40mail.gmail.com.

