Create and edit alert rules
Creating alerts in Grafana Cloud differs from creating alerts directly with Prometheus or Loki. While the rule format is the same, everything is done in the Grafana Cloud Alerting interface, rather than with configuration files.
Note: Only organization Admins can create or edit alert rules.
Create an alert rule
- In Grafana, hover your cursor over the Grafana Cloud Alerting icon and then click Alerts and rules.
- If you have more than one Prometheus or Loki data source, there will be a dropdown at the top for you to select the data source to create or edit rules.
- Click Edit rules.
- Click Add rule.
Grafana creates a new rule with placeholders.
alert: ""
expr: ""
Enter text according to regular Prometheus rule configuration guidelines:
Note: Grafana Cloud Alerting does not support comments.
When you are finished, click Save. You can then repeat the process to create more rules or click Finish editing to return to the rules list.
Edit an alert rule
- In Grafana, hover your cursor over the Grafana Cloud Alerting icon and then click Alerts and rules.
- If you have more than one Prometheus or Loki data source, there will be a dropdown at the top for you to select the data source to create or edit rules.
- Click Edit rules.
- Scroll down to the rule that you want to edit and then click Edit.
- Make any necessary changes to the rule text and then click Save.
- Click Finish editing to return to the rules list.
Delete an alert rule
- In Grafana, hover your cursor over the Grafana Cloud Alerting icon and then click Alerts and rules.
- If you have more than one Prometheus or Loki data source, there will be a dropdown at the top for you to select the data source to create or edit rules.
- Click Edit rules.
- Scroll down to the rule that you want to edit and then click Delete.
- Click Finish editing to return to the rules list.
Related Grafana Cloud resources
Intro to Prometheus and Grafana Cloud
Prometheus is taking over the monitoring world! In this webinar, we will start with a quick introduction to the open source project that’s the de facto standard for monitoring modern, cloud native systems.
How to set up and visualize synthetic monitoring at scale with Grafana Cloud
Learn how to use Kubernetes, Grafana Loki, and Grafana Cloud’s synthetic monitoring feature to set up your infrastructure's checks in this GrafanaCONline session.
Using Grafana Cloud to drive manufacturing plant efficiency
This GrafanaCONline session tells how Grafana helps a 75-year-old manufacturing company with product quality and equipment maintenance.