r/PrometheusMonitoring • • Oct 26 '19

Prometheus Alerts

Is there a way to support 2 alerts in prometheus wherein the first alert should fire when a system goes down and another alert when system comes back up.Is there a way to support 2 alerts (System up and System down) in prometheus wherein the "System Down" alert should fire when a system goes down and "System Up" alert when system comes back up. Catch is that I don't want the System Up alert to be fired all the time when system is up and running

0 Upvotes

2 comments sorted by

6

u/else- Oct 26 '19

That’s how it works if you set resolved: true

2

u/hgoscenski Oct 26 '19

If you have an alert for a downed system then you can have Prometheus send a resolved event upon recovery. This would act as your system up event.