

To set up alerting through PagerDuty, you need to create an account there. PagerDuty is one of the most well-known incident response platforms for IT departments. Title: 'Instance Īnd this is the final result: Prettified alert notifications How to set up PagerDuty alerts # Annotation - additional informational labels to store more information Its content is going to be the following: groups: Evaluating up metric in Prometheus UI to see which instances are runningĪfter you’ve decided on your alerting condition, you need to specify them in rules.yml. By evaluating this metric in the Prometheus user interface ( you will see that all running instances have value of 1, while all instances that are currently not running have value of 0 (we currently run only our Prometheus instance). Therefore, I’m going to use this as our condition by using up metric. I’m sure everyone agrees that knowing when any of your instances are down is very important. In the rules.yml, you will specify the conditions when you would like to be alerted.

We move to server subfolder and open the content in the code editor, then create a new rules file. The process is explained in my blog post on how to explore Prometheus with easy projects here.

We are starting with four subfolders that we’ve previously set up for each project: server, node_exporter, github_exporter, and prom_middleware. Step 1: Create alerting rules in Prometheus
