6db244abb8
Docs: adds legacy topics (#69898)
* adds legacy topics
* moves legacy and adds deprecation note
* Merge branch 'alerting-docs-support-escalations' of https://github.com/grafana/grafana into alerting-docs-support-escalations
* adds description
* fixes relrefs
* removes relrefs
* removes relrefs
* fixes links
* Adds description frontmatter
* fixing typo
* adds frontmatter
* fix spelling error
(cherry picked from commit be196a4ad0)
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2.5 KiB
2.5 KiB
aliases, description, title, weight
| aliases | description | title | weight | |||
|---|---|---|---|---|---|---|
|
Create and edit alert rules | Create and edit alert rules | 200 |
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.
{{% admonition type="note" %}} Only organization Admins can create or edit alert rules. {{% /admonition %}}
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:
{{% admonition type="note" %}} Grafana Cloud Alerting does not support comments. {{% /admonition %}}
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.