inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
400 stars 184 forks source link

Up check - /metrics endpoint #67

Open FStefanni opened 3 years ago

FStefanni commented 3 years ago

Hi,

I am wondering if there is a way to let Prometheus check whether the prometheus_bot service is running fine. Basically, I need an entry into the prometheus up metric, for example:

up{instance="prometheus_bot_instance_name", job="my_job"}

This is useful to allow the monitoring of the monitoring infrastructure. The use case is the following:

This ensure that as soon as one of the monitoring infrastructures stops to work, the other one will fire a warning.

To have the required up metric, I believe it suffices to provide a /metrics endpoint.

Regards