Kafka MQ Healthy check

We are try to check wheather kafka MQ healthy or not?
Can you please help us in that

Prometheus has a built-metric called up{} where every time it scrapes an endpoint, it returns 1 for up and 0 for down.