Reputation: 11
Hello Stack Overflow Community,
I am working on setting up alerting in Grafana and would like to ensure that my team receives email notifications for any alerts that enter the alerting state. Although I have configured basic alerts within Grafana, I am encountering difficulties in setting up the email notifications correctly.
Current Setup:
Alert Configuration: I have set up alerts based on certain metrics crossing predefined thresholds.
Issues Encountered:
Despite the alert being in the alerting state, emails are not being sent out.
Question:
What are the detailed steps to correctly set up email notifications for alerts in the alerting state in Grafana?
I am seeking guidance on how to ensure that email notifications are reliably sent for alerts in the alerting state. Any insights, examples, or common pitfalls to avoid would be greatly appreciated.
Thank you for your assistance!
Upvotes: 0
Views: 156
Reputation: 1
For Grafana 9.4.17
1. Create a Contact Point Contact Point - this is a rule that specifies where the message will be sent in the event of an accident.
Use: + Add Contact Point Select the Email from the Contact Point type list
2. Create an Alert Rules Alert Rules - is a rule that determines the status of the monitored object.
Use: + Create Alert Rule Select your data source and fill in the required fields. By default, Reduce opens in the rule settings. You can choose the display that is convenient for you. Set the threshold values (you can use several). Click Preview to see the result. Set the evaluation frequency in the Alert Evaluation Benavior section.
3. Create a new Notification Policy Notification Policy - is a rule that determines where (to which contact point) the event will be sent according to the alert rule.
Use: + Add Policy The interface window will appear at the bottom of the list. Use: + Add matcher Set the label value for matching rules. Labels - used for unique identification of notifications in Grafana Select Contact point for receiving messages. Press Save policy
Upvotes: 0