User Tools
watchdogs:creating_a_new_alert
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| watchdogs:creating_a_new_alert [2023/03/03 16:47] – 10.91.129.5 | watchdogs:creating_a_new_alert [2023/03/06 16:31] (current) – 10.91.110.100 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Creating a New Alert on Prometheus ===== | ===== Creating a New Alert on Prometheus ===== | ||
| - | Author: Máté Domonics | + | Author: Máté Domonics |
| + | |||
| + | **If you haven' | ||
| + | |||
| + | ==== Creating a Wiki entry for your alarm ==== | ||
| + | When creating a new alarm, it is invaluable to create a new wiki page entry, where you detail what action should be taken if this alarm is firing. | ||
| + | Follow these steps to create a new wiki page: | ||
| + | - Go to [[http:// | ||
| + | - Find the relevant subsection where you want to add your new entry, and following the naming conventions, | ||
| + | - Take a look at the other pages for reference on how to fill out the page. | ||
| + | - Once your page is made, continue to the next step. | ||
| + | |||
| + | |||
| + | ==== Changing the Rules file ==== | ||
| + | - Navigate to **prometheus-monitoring-config/ | ||
| + | - Create a new alert, matching the layout from the alerts that are already present. | ||
| + | - Match the **expr** field to the name of the metric that you created. | ||
| + | - Set the label to the desired severity level. | ||
| + | - //Warning, Minor, Major or Critical// | ||
| + | - Under **annotations**, | ||
| + | - //It is important to remain clear and concise, as this is the message that is shown when the alert fires!// | ||
| + | - In the resolution field, you should include the link to the wiki page that you created for this alarm above. | ||
| + | - Save your changes, and push both your new alarm and metric(s) to the repo. | ||
| + | - Congratulations! You just made your first alarm and metric(s)! | ||
watchdogs/creating_a_new_alert.1677862039.txt.gz · Last modified: 2023/03/03 16:47 by 10.91.129.5