<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Create and manage rules on Grafana Labs</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/</link><description>Recent content in Create and manage rules on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/index.xml" rel="self" type="application/rss+xml"/><item><title>Create Cortex or Loki managed alert rule</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule/</guid><content><![CDATA[&lt;h1 id=&#34;create-a-cortex-or-loki-managed-alerting-rule&#34;&gt;Create a Cortex or Loki managed alerting rule&lt;/h1&gt;
&lt;p&gt;Grafana allows you to create alerting rules for an external Cortex or Loki instance.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Verify that you have write permission to the Prometheus data source. Otherwise, you will not be able to create or update Cortex managed alerting rules.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For Cortex and Loki data sources, enable the ruler API by configuring their respective services.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Loki&lt;/strong&gt; - The &lt;code&gt;local&lt;/code&gt; rule storage type, default for the Loki data source, supports only viewing of rules. To edit rules, configure one of the other rule storage types.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Cortex&lt;/strong&gt; - use the &lt;a href=&#34;https://cortexmetrics.io/docs/api/#path-prefixes&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;legacy &lt;code&gt;/api/prom&lt;/code&gt; prefix&lt;/a&gt;, not &lt;code&gt;/prometheus&lt;/code&gt;. The Prometheus data source supports both Cortex and Prometheus, and Grafana expects that both the &lt;a href=&#34;https://cortexmetrics.io/docs/api/#querier--query-frontend&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Query API&lt;/a&gt; and &lt;a href=&#34;https://cortexmetrics.io/docs/api/#ruler&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ruler API&lt;/a&gt; are under the same URL. You cannot provide a separate URL for the Ruler API.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you do not want to manage alerting rules for a particular Loki or Prometheus data source, go to its settings and clear the &lt;strong&gt;Manage alerts via Alerting UI&lt;/strong&gt; checkbox.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;add-a-cortex-or-loki-managed-alerting-rule&#34;&gt;Add a Cortex or Loki managed alerting rule&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;In the Grafana menu, click the &lt;strong&gt;Alerting&lt;/strong&gt; (bell) icon to open the Alerting page listing existing alerts.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;New alert rule&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In Step 1, add the rule name, type, and storage location.
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;Rule name&lt;/strong&gt;, add a descriptive name. This name is displayed in the alert rule list. It is also the &lt;code&gt;alertname&lt;/code&gt; label for every alert instance that is created from this rule.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Rule type&lt;/strong&gt; drop-down, select &lt;strong&gt;Cortex / Loki managed alert&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Select data source&lt;/strong&gt; drop-down, select an external Prometheus, an external Loki, or a Grafana Cloud data source.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Namespace&lt;/strong&gt; drop-down, select an existing rule namespace. Otherwise, click &lt;strong&gt;Add new&lt;/strong&gt; and enter a name to create a new one. Namespaces can contain one or more rule groups and only have an organizational purpose. For more information, see &lt;a href=&#34;../edit-cortex-loki-namespace-group/&#34;&gt;Cortex or Loki rule groups and namespaces&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Group&lt;/strong&gt; drop-down, select an existing group within the selected namespace. Otherwise, click &lt;strong&gt;Add new&lt;/strong&gt; and enter a name to create a new one. Newly created rules are appended to the end of the group. Rules within a group are run sequentially at a regular interval, with the same evaluation time.
&lt;figure
         class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
         style=&#34;max-width: 550px;&#34;
         itemprop=&#34;associatedMedia&#34;
         itemscope=&#34;&#34;
         itemtype=&#34;http://schema.org/ImageObject&#34;
       &gt;&lt;a
             class=&#34;lightbox-link captioned&#34;
             href=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png&#34;
             itemprop=&#34;contentUrl&#34;
           &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
               class=&#34;lazyload mb-0&#34;
               data-src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alert details&#34;width=&#34;1702&#34;height=&#34;536&#34;title=&#34;Alert details&#34;/&gt;
             &lt;noscript&gt;
               &lt;img
                 src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png&#34;
                 alt=&#34;Alert details&#34;width=&#34;1702&#34;height=&#34;536&#34;title=&#34;Alert details&#34;/&gt;
             &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alert details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 2, add the query to evaluate.
&lt;ul&gt;
&lt;li&gt;Enter a PromQL or LogQL expression. The rule fires if the evaluation result has at least one series with a value that is greater than 0. An alert is created for each series.
&lt;figure
         class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
         style=&#34;max-width: 550px;&#34;
         itemprop=&#34;associatedMedia&#34;
         itemscope=&#34;&#34;
         itemtype=&#34;http://schema.org/ImageObject&#34;
       &gt;&lt;a
             class=&#34;lightbox-link captioned&#34;
             href=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png&#34;
             itemprop=&#34;contentUrl&#34;
           &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
               class=&#34;lazyload mb-0&#34;
               data-src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alert details&#34;width=&#34;1934&#34;height=&#34;348&#34;title=&#34;Alert details&#34;/&gt;
             &lt;noscript&gt;
               &lt;img
                 src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png&#34;
                 alt=&#34;Alert details&#34;width=&#34;1934&#34;height=&#34;348&#34;title=&#34;Alert details&#34;/&gt;
             &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alert details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 3, add conditions.
&lt;ul&gt;
&lt;li&gt;In the &lt;strong&gt;For&lt;/strong&gt; text box, specify the duration for which the condition must be true before an alert fires. If you specify &lt;code&gt;5m&lt;/code&gt;, the condition must be true for 5 minutes before the alert fires.
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Once a condition is met, the alert goes into the &lt;code&gt;Pending&lt;/code&gt; state. If the condition remains active for the duration specified, the alert transitions to the &lt;code&gt;Firing&lt;/code&gt; state, else it reverts to the &lt;code&gt;Normal&lt;/code&gt; state.&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 4, add additional metadata associated with the rule.
&lt;ul&gt;
&lt;li&gt;Add a description and summary to customize alert messages. Use the guidelines in &lt;a href=&#34;../alert-annotation-label/&#34;&gt;Annotations and labels for alerting&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add Runbook URL, panel, dashboard, and alert IDs.&lt;/li&gt;
&lt;li&gt;Add custom labels.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;To evaluate the rule and see what alerts it would produce, click &lt;strong&gt;Preview alerts&lt;/strong&gt;. It will display a list of alerts with state and value of for each one.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt; to save the rule or &lt;strong&gt;Save and exit&lt;/strong&gt; to save the rule and go back to the Alerting page.&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="create-a-cortex-or-loki-managed-alerting-rule">Create a Cortex or Loki managed alerting rule&lt;/h1>
&lt;p>Grafana allows you to create alerting rules for an external Cortex or Loki instance.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>Verify that you have write permission to the Prometheus data source. Otherwise, you will not be able to create or update Cortex managed alerting rules.&lt;/p></description></item><item><title>Create Cortex or Loki managed recording rule</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-recording-rule/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-recording-rule/</guid><content><![CDATA[&lt;h1 id=&#34;create-a-cortex-or-loki-managed-recording-rule&#34;&gt;Create a Cortex or Loki managed recording rule&lt;/h1&gt;
&lt;p&gt;You can create and manage recording rules for an external Cortex or Loki instance. Recording rules calculate frequently needed expressions or computationally expensive expressions in advance and save the result as a new set of time series. Querying this new time series is faster, especially for dashboards since they query the same expression every time the dashboards refresh.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;For Cortex and Loki data sources to work with Grafana 8.0 alerting, enable the ruler API by configuring their respective services.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Loki&lt;/strong&gt; - The &lt;code&gt;local&lt;/code&gt; rule storage type, default for the Loki data source, supports only viewing of rules. To edit rules, configure one of the other rule storage types.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cortex&lt;/strong&gt; - When configuring a Grafana Prometheus data source to point to Cortex, use the legacy &lt;code&gt;/api/prom&lt;/code&gt; prefix, not &lt;code&gt;/prometheus&lt;/code&gt;. Currently, we support only single-binary mode and you cannot provide a separate URL for the ruler API.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you do not want to manage alerting rules for a particular Loki or Prometheus data source, go to its settings page and clear the &lt;strong&gt;Manage alerts via Alerting UI&lt;/strong&gt; checkbox.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;add-a-cortex-or-loki-managed-recording-rule&#34;&gt;Add a Cortex or Loki managed recording rule&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;In the Grafana menu, click the &lt;strong&gt;Alerting&lt;/strong&gt; (bell) icon to open the Alerting page listing existing alerts.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;New alert rule&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In Step 1, add the rule name, type, and storage location.
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;Rule name&lt;/strong&gt;, add a descriptive name. This name is displayed in the alert rule list. It is also the &lt;code&gt;alertname&lt;/code&gt; label for every alert instance that is created from this rule.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Rule type&lt;/strong&gt; drop-down, select &lt;strong&gt;Cortex / Loki managed alert&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Select data source&lt;/strong&gt; drop-down, select an external Prometheus, an external Loki, or a Grafana Cloud data source.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Namespace&lt;/strong&gt; drop-down, select an existing rule namespace. Otherwise, click &lt;strong&gt;Add new&lt;/strong&gt; and enter a name to create a new one. Namespaces can contain one or more rule groups and only have an organizational purpose.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Group&lt;/strong&gt; drop-down, select an existing group within the selected namespace. Otherwise, click &lt;strong&gt;Add new&lt;/strong&gt; and enter a name to create a new one. Newly created rules are appended to the end of the group. Rules within a group are run sequentially at a regular interval, with the same evaluation time.
&lt;figure
         class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
         style=&#34;max-width: 550px;&#34;
         itemprop=&#34;associatedMedia&#34;
         itemscope=&#34;&#34;
         itemtype=&#34;http://schema.org/ImageObject&#34;
       &gt;&lt;a
             class=&#34;lightbox-link captioned&#34;
             href=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png&#34;
             itemprop=&#34;contentUrl&#34;
           &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
               class=&#34;lazyload mb-0&#34;
               data-src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alert details&#34;width=&#34;1702&#34;height=&#34;536&#34;title=&#34;Alert details&#34;/&gt;
             &lt;noscript&gt;
               &lt;img
                 src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-alert-type-8-0.png&#34;
                 alt=&#34;Alert details&#34;width=&#34;1702&#34;height=&#34;536&#34;title=&#34;Alert details&#34;/&gt;
             &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alert details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 2, add the query to evaluate.
&lt;ul&gt;
&lt;li&gt;Enter a PromQL or LogQL expression. The rule fires if the evaluation result has at least one series with a value that is greater than 0. An alert is created for each series.
&lt;figure
         class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
         style=&#34;max-width: 550px;&#34;
         itemprop=&#34;associatedMedia&#34;
         itemscope=&#34;&#34;
         itemtype=&#34;http://schema.org/ImageObject&#34;
       &gt;&lt;a
             class=&#34;lightbox-link captioned&#34;
             href=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png&#34;
             itemprop=&#34;contentUrl&#34;
           &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
               class=&#34;lazyload mb-0&#34;
               data-src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alert details&#34;width=&#34;1934&#34;height=&#34;348&#34;title=&#34;Alert details&#34;/&gt;
             &lt;noscript&gt;
               &lt;img
                 src=&#34;/static/img/docs/alerting/unified/rule-edit-mimir-query-8-0.png&#34;
                 alt=&#34;Alert details&#34;width=&#34;1934&#34;height=&#34;348&#34;title=&#34;Alert details&#34;/&gt;
             &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alert details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 3, add additional metadata associated with the rule.
&lt;ul&gt;
&lt;li&gt;Add a description and summary to customize alert messages. Use the guidelines in &lt;a href=&#34;../alert-annotation-label/&#34;&gt;Annotations and labels for alerting&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add Runbook URL, panel, dashboard, and alert IDs.&lt;/li&gt;
&lt;li&gt;Add custom labels.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt; to save the rule or &lt;strong&gt;Save and exit&lt;/strong&gt; to save the rule and go back to the Alerting page.&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="create-a-cortex-or-loki-managed-recording-rule">Create a Cortex or Loki managed recording rule&lt;/h1>
&lt;p>You can create and manage recording rules for an external Cortex or Loki instance. Recording rules calculate frequently needed expressions or computationally expensive expressions in advance and save the result as a new set of time series. Querying this new time series is faster, especially for dashboards since they query the same expression every time the dashboards refresh.&lt;/p></description></item><item><title>Create Grafana managed alert rule</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/create-grafana-managed-rule/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/create-grafana-managed-rule/</guid><content><![CDATA[&lt;h1 id=&#34;create-a-grafana-managed-alerting-rule&#34;&gt;Create a Grafana managed alerting rule&lt;/h1&gt;
&lt;p&gt;Grafana allows you to create alerting rules that query one or more data sources, reduce or transform the results and compare them to each other or to fix thresholds. When these are executed, Grafana sends notifications to the contact point.&lt;/p&gt;
&lt;h2 id=&#34;add-grafana-managed-rule&#34;&gt;Add Grafana managed rule&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;In the Grafana menu, click the &lt;strong&gt;Alerting&lt;/strong&gt; (bell) icon to open the Alerting page listing existing alerts.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;New alert rule&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In Step 1, add the rule name, type, and storage location.
&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;Rule name&lt;/strong&gt;, add a descriptive name. This name is displayed in the alert rule list. It is also the &lt;code&gt;alertname&lt;/code&gt; label for every alert instance that is created from this rule.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Rule type&lt;/strong&gt; drop-down, select &lt;strong&gt;Grafana managed alert&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;Folder&lt;/strong&gt; drop-down, select the folder where you want to store the rule. If you do not select a folder, the rule is stored in the General folder. To create a new folder, click the drop-down and enter the new folder name.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 2, add queries and expressions to evaluate.
&lt;ul&gt;
&lt;li&gt;Keep the default name or hover over and click the edit icon to change the name.&lt;/li&gt;
&lt;li&gt;For queries, select a data source from the drop-down.&lt;/li&gt;
&lt;li&gt;Add one or more &lt;a href=&#34;../../../../panels/query-a-data-source/add-a-query/&#34;&gt;queries&lt;/a&gt; or &lt;a href=&#34;../../../../panels/query-a-data-source/use-expressions-to-manipulate-data/about-expressions/&#34;&gt;expressions&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;For each expression, select either &lt;strong&gt;Classic condition&lt;/strong&gt; to create a single alert rule, or choose from &lt;strong&gt;Math&lt;/strong&gt;, &lt;strong&gt;Reduce&lt;/strong&gt;, &lt;strong&gt;Resample&lt;/strong&gt; options to generate separate alert for each series. For details on these options, see &lt;a href=&#34;#single-and-multi-dimensional-rule&#34;&gt;Single and multi dimensional rule&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Run queries&lt;/strong&gt; to verify that the query is successful.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 3, add conditions.
&lt;ul&gt;
&lt;li&gt;From the &lt;strong&gt;Condition&lt;/strong&gt; drop-down, select the query or expression to trigger the alert rule.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;Evaluate every&lt;/strong&gt;, specify the frequency of evaluation. Must be a multiple of 10 seconds. For examples, &lt;code&gt;1m&lt;/code&gt;, &lt;code&gt;30s&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;Evaluate for&lt;/strong&gt;, specify the duration for which the condition must be true before an alert fires.
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Once a condition is breached, the alert goes into the Pending state. If the condition remains breached for the duration specified, the alert transitions to the Firing state, else it reverts back to the Normal state.&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Configure no data and error handling&lt;/strong&gt;, configure alerting behavior in the absence of data. Use the guidelines in &lt;a href=&#34;#no-data-and-error-handling&#34;&gt;No data and error handling&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Preview alerts&lt;/strong&gt; to check the result of running the query at this moment. Preview excludes no data and error handling.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In Step 4, add additional metadata associated with the rule.
&lt;ul&gt;
&lt;li&gt;Add a description and summary to customize alert messages. Use the guidelines in &lt;a href=&#34;../alert-annotation-label/&#34;&gt;Annotations and labels for alerting&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add Runbook URL, panel, dashboard, and alert IDs.&lt;/li&gt;
&lt;li&gt;Add custom labels.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt; to save the rule or &lt;strong&gt;Save and exit&lt;/strong&gt; to save the rule and go back to the Alerting page.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;single-and-multi-dimensional-rule&#34;&gt;Single and multi dimensional rule&lt;/h3&gt;
&lt;p&gt;For Grafana managed alerts, you can create a rule with a classic condition or you can create a multi-dimensional rule.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rule with classic condition&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Use the classic condition expression to create a rule that triggers a single alert when its condition is met. For a query that returns multiple series, Grafana does not track the alert state of each series. As a result, Grafana sends only a single alert even when alert conditions are met for multiple series.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Multi dimensional rule&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To generate a separate alert for each series, create a multi-dimensional rule. Use &lt;code&gt;Math&lt;/code&gt;, &lt;code&gt;Reduce&lt;/code&gt;, or &lt;code&gt;Resample&lt;/code&gt; expressions to create a multi-dimensional rule. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add a &lt;code&gt;Reduce&lt;/code&gt; expression for each query to aggregate values in the selected time range into a single value. (Not needed for &lt;a href=&#34;../../fundamentals/evaluate-grafana-alerts/#alerting-on-numeric-data-1&#34;&gt;rules using numeric data&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Add a &lt;code&gt;Math&lt;/code&gt; expression with the condition for the rule. Not needed in case a query or a reduce expression already returns 0 if rule should not fire, or a positive number if it should fire. Some examples: &lt;code&gt;$B &amp;gt; 70&lt;/code&gt; if it should fire in case value of B query/expression is more than 70. &lt;code&gt;$B &amp;lt; $C * 100&lt;/code&gt; in case it should fire if value of B is less than value of C multiplied by 100. If queries being compared have multiple series in their results, series from different queries are matched if they have the same labels or one is a subset of the other.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/alerting/unified/rule-edit-multi-8-0.png&#34;
  alt=&#34;Query section multi dimensional&#34; width=&#34;3648&#34;
     height=&#34;1302&#34;/&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Grafana does not support alert queries with template variables. More information is available at &lt;a href=&#34;https://community.grafana.com/t/template-variables-are-not-supported-in-alert-queries-while-setting-up-alert/2514&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://community.grafana.com/t/template-variables-are-not-supported-in-alert-queries-while-setting-up-alert/2514&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h4 id=&#34;rule-with-classic-condition&#34;&gt;Rule with classic condition&lt;/h4&gt;
&lt;p&gt;For more information, see &lt;a href=&#34;../../../../panels/query-a-data-source/use-expressions-to-manipulate-data/about-expressions/&#34;&gt;expressions documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;no-data-and-error-handling&#34;&gt;No data and error handling&lt;/h3&gt;
&lt;p&gt;Configure alerting behavior in the absence of data using information in the following tables.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;No Data Option&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;No Data&lt;/td&gt;
              &lt;td&gt;Create a new alert &lt;code&gt;DatasourceNoData&lt;/code&gt; with the name and UID of the alert rule, and UID of the datasource that returned no data as labels.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Alerting&lt;/td&gt;
              &lt;td&gt;Set alert rule state to &lt;code&gt;Alerting&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Ok&lt;/td&gt;
              &lt;td&gt;Set alert rule state to &lt;code&gt;Normal&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Error or timeout option&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;Alerting&lt;/td&gt;
              &lt;td&gt;Set alert rule state to &lt;code&gt;Alerting&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;OK&lt;/td&gt;
              &lt;td&gt;Set alert rule state to &lt;code&gt;Normal&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Error&lt;/td&gt;
              &lt;td&gt;Create a new alert &lt;code&gt;DatasourceError&lt;/code&gt; with the name and UID of the alert rule, and UID of the datasource that returned no data as labels.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="create-a-grafana-managed-alerting-rule">Create a Grafana managed alerting rule&lt;/h1>
&lt;p>Grafana allows you to create alerting rules that query one or more data sources, reduce or transform the results and compare them to each other or to fix thresholds. When these are executed, Grafana sends notifications to the contact point.&lt;/p></description></item><item><title>Annotations and labels for alerting rules</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/alert-annotation-label/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/alert-annotation-label/</guid><content><![CDATA[&lt;h1 id=&#34;annotations-and-labels-for-alerting-rules&#34;&gt;Annotations and labels for alerting rules&lt;/h1&gt;
&lt;p&gt;Annotations and labels are key value pairs associated with alerts originating from the alerting rule, datasource response, and as a result of alerting rule evaluation. They can be used in alert notifications directly or in &lt;a href=&#34;../../message-templating/&#34;&gt;templates&lt;/a&gt; and &lt;a href=&#34;../../message-templating/template-functions/&#34;&gt;template functions&lt;/a&gt; to create notification contact dynamically.&lt;/p&gt;
&lt;h2 id=&#34;annotations&#34;&gt;Annotations&lt;/h2&gt;
&lt;p&gt;Annotations are key-value pairs that provide additional meta-information about an alert. You can use the following annotations: &lt;code&gt;description&lt;/code&gt;, &lt;code&gt;summary&lt;/code&gt;, &lt;code&gt;runbook_url&lt;/code&gt;, &lt;code&gt;alertId&lt;/code&gt;, &lt;code&gt;dashboardUid&lt;/code&gt;, and &lt;code&gt;panelId&lt;/code&gt;. For example, a description, a summary, and a runbook URL. These are displayed in rule and alert details in the UI and can be used in contact point message templates.&lt;/p&gt;
&lt;h2 id=&#34;labels&#34;&gt;Labels&lt;/h2&gt;
&lt;p&gt;Labels are key-value pairs that contain information about, and are used to uniquely identify an alert. The label set for an alert is generated and added to throughout the alerting evaluation and notification process.&lt;/p&gt;
&lt;h3 id=&#34;how-are-labels-used&#34;&gt;How are labels used?&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The complete set of labels for an alert is what uniquely identifies an alert within Grafana Alerts.&lt;/li&gt;
&lt;li&gt;The Alertmanager uses labels to match alerts for &lt;a href=&#34;../../silences/&#34;&gt;silences&lt;/a&gt; and &lt;a href=&#34;../../alert-groups/&#34;&gt;alert groups&lt;/a&gt; in &lt;a href=&#34;../../notifications/&#34;&gt;notification policies&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The alerting UI displays labels for every alert instance generated by the evaluation of that rule.&lt;/li&gt;
&lt;li&gt;Contact points can access labels to dynamically generate notifications that contain information specific to the alert that is resulting in a notification.&lt;/li&gt;
&lt;li&gt;Labels can be added to an &lt;a href=&#34;../&#34;&gt;alerting rule&lt;/a&gt;. These manually configured labels are able to use template functions and reference other labels. Labels added to an alerting rule here take precedence in the event of a collision between labels.&lt;/li&gt;
&lt;/ul&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 550px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/alerting/unified/rule-edit-details-8-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/alerting/unified/rule-edit-details-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-edit-details-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alert details&#34;width=&#34;1434&#34;height=&#34;1000&#34;title=&#34;Alert details&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/alerting/unified/rule-edit-details-8-0.png&#34;
            alt=&#34;Alert details&#34;width=&#34;1434&#34;height=&#34;1000&#34;title=&#34;Alert details&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alert details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h4 id=&#34;variables-available-to-alerting-rule-labels-and-annotations&#34;&gt;Variables available to alerting rule labels and annotations&lt;/h4&gt;
&lt;p&gt;The following template variables are available when expanding annotations and labels.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;$labels&lt;/td&gt;
              &lt;td&gt;The labels from the query or condition. For example, &lt;code&gt;{{ $labels.instance }}&lt;/code&gt; and &lt;code&gt;{{ $labels.job }}&lt;/code&gt;. This is unavailable when the rule uses a &lt;a href=&#34;../create-grafana-managed-rule/#single-and-multi-dimensional-rule&#34;&gt;classic condition&lt;/a&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;$values&lt;/td&gt;
              &lt;td&gt;The values of all reduce and math expressions that were evaluated for this alert rule. For example, &lt;code&gt;{{ $values.A }}&lt;/code&gt;, &lt;code&gt;{{ $values.A.Labels }}&lt;/code&gt; and &lt;code&gt;{{ $values.A.Value }}&lt;/code&gt; where &lt;code&gt;A&lt;/code&gt; is the &lt;code&gt;refID&lt;/code&gt; of the expression. This is unavailable when the rule uses a classic condition&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;$value&lt;/td&gt;
              &lt;td&gt;The value string of the alert instance. For example, &lt;code&gt;[ var=&#39;A&#39; labels={instance=foo} value=10 ]&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="annotations-and-labels-for-alerting-rules">Annotations and labels for alerting rules&lt;/h1>
&lt;p>Annotations and labels are key value pairs associated with alerts originating from the alerting rule, datasource response, and as a result of alerting rule evaluation. They can be used in alert notifications directly or in &lt;a href="../../message-templating/">templates&lt;/a> and &lt;a href="../../message-templating/template-functions/">template functions&lt;/a> to create notification contact dynamically.&lt;/p></description></item><item><title>Manage alerting rules</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/rule-list/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/rule-list/</guid><content><![CDATA[&lt;h1 id=&#34;manage-alerting-rules&#34;&gt;Manage alerting rules&lt;/h1&gt;
&lt;p&gt;The Alerting page lists existing Grafana 8 alerting rules. By default, rules are grouped by types of data sources. The Grafana section lists all Grafana managed rules. Alerting rules for Prometheus compatible data sources are also listed here. You can view alerting rules for Prometheus compatible data sources but you cannot edit them.&lt;/p&gt;
&lt;p&gt;The Cortex/Loki rules section lists all rules for external Prometheus or Loki data sources. Cloud alerting rules are also listed in this section.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#view-alerting-rule&#34;&gt;View alerting rules&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#filter-alerting-rules&#34;&gt;Filter alerting rules&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#edit-or-delete-an-alerting-rule&#34;&gt;Edit or delete an alerting rule&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;view-alerting-rules&#34;&gt;View alerting rules&lt;/h2&gt;
&lt;p&gt;To view alerting details:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the Grafana menu, click the &lt;strong&gt;Alerting&lt;/strong&gt; (bell) icon to open the Alerting page. By default, the group view displays.&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;View as&lt;/strong&gt;, toggle between group or state views by clicking the relevant option. See &lt;a href=&#34;#group-view&#34;&gt;Group view&lt;/a&gt; and &lt;a href=&#34;#state-view&#34;&gt;State view&lt;/a&gt; for more information.&lt;/li&gt;
&lt;li&gt;Expand the rule row to view the rule labels, annotations, data sources the rule queries, and a list of alert instances resulting from this rule.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 650px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/alerting/unified/rule-details-8-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/alerting/unified/rule-details-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-details-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-details-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-details-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-details-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-details-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-details-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-details-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alerting rule details&#34;width=&#34;2930&#34;height=&#34;1656&#34;title=&#34;Alerting rule details&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/alerting/unified/rule-details-8-0.png&#34;
            alt=&#34;Alerting rule details&#34;width=&#34;2930&#34;height=&#34;1656&#34;title=&#34;Alerting rule details&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting rule details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h3 id=&#34;group-view&#34;&gt;Group view&lt;/h3&gt;
&lt;p&gt;Group view shows Grafana alert rules grouped by folder and Loki or Prometheus alert rules grouped by &lt;code&gt;namespace&lt;/code&gt; &#43; &lt;code&gt;group&lt;/code&gt;. This is the default rule list view, intended for managing rules. You can expand each group to view a list of rules in this group. Expand a rule further to view its details. You can also expand action buttons and alerts resulting from the rule to view their details.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 800px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/alerting/unified/rule-list-group-view-8-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/alerting/unified/rule-list-group-view-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-list-group-view-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alerting grouped view&#34;width=&#34;3702&#34;height=&#34;1852&#34;title=&#34;Alerting grouped view&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/alerting/unified/rule-list-group-view-8-0.png&#34;
            alt=&#34;Alerting grouped view&#34;width=&#34;3702&#34;height=&#34;1852&#34;title=&#34;Alerting grouped view&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting grouped view&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h3 id=&#34;state-view&#34;&gt;State view&lt;/h3&gt;
&lt;p&gt;State view shows alert rules grouped by state. Use this view to get an overview of which rules are in what state. Each rule can be expanded to view its details. Action buttons and any alerts generated by this rule, and each alert can be further expanded to view its details.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 800px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/alerting/unified/rule-list-state-view-8-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/alerting/unified/rule-list-state-view-8-0.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=320 320w, /static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=550 550w, /static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=750 750w, /static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=900 900w, /static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-list-state-view-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alerting state view&#34;width=&#34;3668&#34;height=&#34;1850&#34;title=&#34;Alerting state view&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/alerting/unified/rule-list-state-view-8-0.png&#34;
            alt=&#34;Alerting state view&#34;width=&#34;3668&#34;height=&#34;1850&#34;title=&#34;Alerting state view&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting state view&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h2 id=&#34;filter-alerting-rules&#34;&gt;Filter alerting rules&lt;/h2&gt;
&lt;p&gt;To filter alerting rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From &lt;strong&gt;Select data sources&lt;/strong&gt;, select a data source. You can see alerting rules that query the selected data source.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Search by label&lt;/strong&gt;, enter search criteria using label selectors. For example, &lt;code&gt;environment=production,region=~US|EU,severity!=warning&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;From &lt;strong&gt;Filter alerts by state&lt;/strong&gt;, select an alerting state you want to see. You can see alerting rules that match the state. Rules matching other states are hidden.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;edit-or-delete-an-alerting-rule&#34;&gt;Edit or delete an alerting rule&lt;/h2&gt;
&lt;p&gt;Grafana managed alerting rules can only be edited or deleted by users with Edit permissions for the folder storing the rules. Alerting rules for an external Cortex or Loki instance can be edited or deleted by users with Editor or Admin roles.
To edit or delete a rule:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Expand a rule row until you can see the rule controls of &lt;strong&gt;View&lt;/strong&gt;, &lt;strong&gt;Edit&lt;/strong&gt;, and &lt;strong&gt;Delete&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Edit&lt;/strong&gt; to open the create rule page. Make updates following instructions in &lt;a href=&#34;../create-grafana-managed-rule/&#34;&gt;Create a Grafana managed alerting rule&lt;/a&gt; or &lt;a href=&#34;../create-cortex-loki-managed-rule/&#34;&gt;Create a Cortex or Loki managed alerting rule&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Delete&lt;/strong&gt; to delete a rule.&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="manage-alerting-rules">Manage alerting rules&lt;/h1>
&lt;p>The Alerting page lists existing Grafana 8 alerting rules. By default, rules are grouped by types of data sources. The Grafana section lists all Grafana managed rules. Alerting rules for Prometheus compatible data sources are also listed here. You can view alerting rules for Prometheus compatible data sources but you cannot edit them.&lt;/p></description></item><item><title>Cortex or Loki rule groups and namespaces</title><link>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/edit-cortex-loki-namespace-group/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/alerting/unified-alerting/alerting-rules/edit-cortex-loki-namespace-group/</guid><content><![CDATA[&lt;h1 id=&#34;cortex-or-loki-rule-groups-and-namespaces&#34;&gt;Cortex or Loki rule groups and namespaces&lt;/h1&gt;
&lt;p&gt;A namespace contains one or more groups. The rules within a group are run sequentially at a regular interval. The default interval is one (1) minute. You can rename Cortex or Loki rule namespaces and groups, and edit group evaluation intervals.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png&#34;
  alt=&#34;Group list&#34; width=&#34;2644&#34;
     height=&#34;447&#34;/&gt;&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 550px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png&#34;data-srcset=&#34;/static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=320 320w, /static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=550 550w, /static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=750 750w, /static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=900 900w, /static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=1040 1040w, /static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=1240 1240w, /static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alert details&#34;width=&#34;2644&#34;height=&#34;447&#34;title=&#34;Alert details&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png&#34;
            alt=&#34;Alert details&#34;width=&#34;2644&#34;height=&#34;447&#34;title=&#34;Alert details&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alert details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h2 id=&#34;rename-a-namespace&#34;&gt;Rename a namespace&lt;/h2&gt;
&lt;p&gt;To rename a namespace:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the Grafana menu, click the &lt;strong&gt;Alerting&lt;/strong&gt; (bell) icon to open the Alerting page listing existing alerts.&lt;/li&gt;
&lt;li&gt;Find a Cortex or Loki managed rule with the group that belongs to the namespace you want to edit.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Edit&lt;/strong&gt; (pen) icon.&lt;/li&gt;
&lt;li&gt;Enter a new name in the &lt;strong&gt;Namespace&lt;/strong&gt; field, then click &lt;strong&gt;Save changes&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A new namespace is created and all groups are copied into this namespace from the old one. The old namespace is deleted.&lt;/p&gt;
&lt;h2 id=&#34;rename-rule-group-or-change-the-rule-group-evaluation-interval&#34;&gt;Rename rule group or change the rule group evaluation interval&lt;/h2&gt;
&lt;p&gt;The rules within a group are run sequentially at a regular interval, the default interval is one (1) minute. You can modify this interval using the following instructions.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;n the Grafana menu, click the &lt;strong&gt;Alerting&lt;/strong&gt; (bell) icon to open the Alerting page listing existing alerts.&lt;/li&gt;
&lt;li&gt;Find a Cortex or Loki managed rule with the group you want to edit.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Edit&lt;/strong&gt; (pen) icon.&lt;/li&gt;
&lt;li&gt;Modify the &lt;strong&gt;Rule group&lt;/strong&gt; and &lt;strong&gt;Rule group evaluation interval&lt;/strong&gt; information as necessary.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save changes&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;When you rename the group, a new group with all the rules from the old group is created. The old group is deleted.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/alerting/unified/rule-list-mimir-loki-edit-ns-group-8-2.png&#34;
  alt=&#34;Group edit modal&#34; width=&#34;1516&#34;
     height=&#34;898&#34;/&gt;&lt;/p&gt;
]]></content><description>&lt;h1 id="cortex-or-loki-rule-groups-and-namespaces">Cortex or Loki rule groups and namespaces&lt;/h1>
&lt;p>A namespace contains one or more groups. The rules within a group are run sequentially at a regular interval. The default interval is one (1) minute. You can rename Cortex or Loki rule namespaces and groups, and edit group evaluation intervals.&lt;/p></description></item></channel></rss>