How to monitor the beats using prometheus


I am trying to find a way to expose beats (especially the metricbeat) statistics to prometheus to have the option to monitor the correct functionality of metricbeat in terms of its connection to elastic.
Currently we observed, that in case of disconnection of pods with elastic, the issue is visible in the pod logfile, but this is silent - pods stays running, so the issue is not detected.

Idea would be to detect either the errors directly by prometheus, or alternatively monitor data flow (eg create event when processing is stuck / buffering ...).

Please is there anything you could you eventually advise to use for this scenario?

Many thanks for your help/advices in advance

Kind regards,


Peter Fulier