<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Legacy alerting on Grafana Labs</title><link>https://grafana.com/docs/grafana/v9.5/alerting/migrating-alerts/legacy-alerting/</link><description>Recent content in Legacy alerting on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v9.5/alerting/migrating-alerts/legacy-alerting/index.xml" rel="self" type="application/rss+xml"/><item><title>Grafana Cloud Alerting</title><link>https://grafana.com/docs/grafana/v9.5/alerting/migrating-alerts/legacy-alerting/grafana-cloud-alerting/</link><pubDate>Thu, 12 Mar 2026 00:42:02 +0000</pubDate><guid>https://grafana.com/docs/grafana/v9.5/alerting/migrating-alerts/legacy-alerting/grafana-cloud-alerting/</guid><content><![CDATA[&lt;h1 id=&#34;grafana-cloud-alerting&#34;&gt;Grafana Cloud Alerting&lt;/h1&gt;
&lt;p&gt;Grafana Cloud Alerting allows you to create and manage all of your Prometheus-style alerting rules, for both Prometheus metrics and Loki log data. With this feature, you don&amp;rsquo;t need to leave Grafana, upload or edit configuration files, or install additional tools.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/grafana-cloud/grafana-cloud-alerting.png&#34;
  alt=&#34;Grafana Cloud Alerting&#34; width=&#34;1178&#34;
     height=&#34;620&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;permissions&#34;&gt;Permissions&lt;/h2&gt;
&lt;p&gt;All members of an organization that have alerts set up can view alerts in Grafana Cloud Alerting. This includes everyone with a Viewer, Editor, or Admin role.&lt;/p&gt;
&lt;p&gt;Users with the organization Admin role can also create, edit, or delete alerts.&lt;/p&gt;
&lt;h2 id=&#34;data-sources&#34;&gt;Data sources&lt;/h2&gt;
&lt;p&gt;Grafana Cloud Alerting supports rule management across multiple data sources, for both metrics and logs, across all of the stacks in your org. 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 configure rules.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Pay attention to which data source you select. Cloud alerts are tied to a specific data source. For example, if you have a Loki data source selected you will not be able to create an alert based on a Prometheus data source.
&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/grafana-cloud/grafana-cloud-alerting-data-source.png&#34;
  alt=&#34;Cloud Alerting Data Source&#34; width=&#34;400&#34;
     height=&#34;343&#34;/&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;alerts-and-recording-rules&#34;&gt;Alerts and recording rules&lt;/h2&gt;
&lt;p&gt;Prometheus supports two types of rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Recording rules&lt;/a&gt; - Recording rules allow you to execute expressions or queries, by saving them off as a stored rule instead.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Alerting rules&lt;/a&gt; - Alerting rules allow you to define alert conditions and to route those notifications to an external service. An alert fires if metrics meet criteria defined in the alerting rule.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both of these rules are configurable from the Grafana Cloud Alerting interface and configured in the same way.&lt;/p&gt;
&lt;h2 id=&#34;alert-states&#34;&gt;Alert states&lt;/h2&gt;
&lt;p&gt;Alert states are identical to the standard format found in Prometheus rule configurations. In Grafana Cloud Alerting, each individual alert is highlighted by its state to more clearly distinguish between alerts.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Firing -&lt;/strong&gt; Alerts that have been active for longer than the configured threshold. Alerts are highlighted in red and tagged with a red &lt;code&gt;firing&lt;/code&gt; label.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pending -&lt;/strong&gt; Alerts that have been active for less than the configured threshold. Alerts are highlighted in orange.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Inactive -&lt;/strong&gt; Alerts that are neither firing nor pending. Alerts are highlighted in green.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;notifications&#34;&gt;Notifications&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;Notifications&lt;/strong&gt; tab is where you can view all current notifications and sort them by various states, receivers, and labels.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/grafana-cloud/grafana-cloud-alerting-notifications.png&#34;
  alt=&#34;Grafana Cloud Alerting Notifications&#34; width=&#34;1086&#34;
     height=&#34;662&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;limits&#34;&gt;Limits&lt;/h2&gt;
&lt;p&gt;There is a limit on how many rules can be created in a rule group. There is also a limit on how many rule groups can be created.&lt;/p&gt;
&lt;p&gt;You can create:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;20 rules per rule group&lt;/li&gt;
&lt;li&gt;35 rule groups&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;It is possible to increase these limits. Please contact customer support for further information.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you exceed the limits, you will encounter an error similar to this:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;ERROR[0000] requests failed fields.msg=&amp;#34;request failed with response body
per-user rules per rule group limit (limit: 20 actual: 22) exceeded\n&amp;#34;
status=&amp;#34;400 Bad Request&amp;#34;
ERROR[0000] unable to load rule group  error=&amp;#34;failed request to the cortex api&amp;#34;
group=limit_rules_per_group namespace=test&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;To increase the number of rules or rule groups you can configure, contact support to upgrade your account.&lt;/p&gt;
]]></content><description>&lt;h1 id="grafana-cloud-alerting">Grafana Cloud Alerting&lt;/h1>
&lt;p>Grafana Cloud Alerting allows you to create and manage all of your Prometheus-style alerting rules, for both Prometheus metrics and Loki log data. With this feature, you don&amp;rsquo;t need to leave Grafana, upload or edit configuration files, or install additional tools.&lt;/p></description></item><item><title>Prometheus rules with mimirtool</title><link>https://grafana.com/docs/grafana/v9.5/alerting/migrating-alerts/legacy-alerting/alerts-rules/</link><pubDate>Thu, 12 Mar 2026 00:42:02 +0000</pubDate><guid>https://grafana.com/docs/grafana/v9.5/alerting/migrating-alerts/legacy-alerting/alerts-rules/</guid><content><![CDATA[&lt;h1 id=&#34;prometheus-rules-with-mimirtool&#34;&gt;Prometheus rules with mimirtool&lt;/h1&gt;
&lt;p&gt;This page outlines the steps to use mimirtool and Prometheus-style rules with Grafana Cloud Alerting. You can load Prometheus alerting and recording rules that are evaluated entirely in Grafana Cloud. This allows for global rule evaluation over all of the metrics and logs stored in your Grafana Cloud stack.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;&lt;code&gt;mimirtool&lt;/code&gt; does &lt;em&gt;not&lt;/em&gt; support Loki.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Prometheus-style alerting is driven by your Grafana Cloud Metrics, Grafana Cloud Logs, and Grafana Cloud Alerts instances. The Metrics and Logs instance holds the rules definition, while the Alerts instance is in charge of routing and managing the alerts that fire from the Metrics and Logs instance. These are separate systems that must be individually configured in order for alerting to work correctly.&lt;/p&gt;
&lt;p&gt;The following sections cover all of these concepts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to upload alerting and recording rules definition to your Grafana Cloud Metrics instance&lt;/li&gt;
&lt;li&gt;How to upload alerting rules definition to your Grafana Cloud Logs instance&lt;/li&gt;
&lt;li&gt;How to configure an Alertmanager for your Grafana Cloud Alerts instance, giving you access to the Alertmanager UI.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You need an API key with proper permissions. You can use the same API key for your Metric, Log, and Alerting instances.&lt;/p&gt;
&lt;h2 id=&#34;download-and-install-mimirtool&#34;&gt;Download and install mimirtool&lt;/h2&gt;
&lt;p&gt;mimirtool is a powerful command-line tool for interacting with Mimir, which powers Grafana Cloud Metrics and Alerts. You&amp;rsquo;ll use mimirtool to upload your metric and log rules definition and the Alertmanager configuration using YAML files.&lt;/p&gt;
&lt;p&gt;For more information, including installation instructions, see &lt;a href=&#34;/docs/mimir/latest/operators-guide/tools/mimirtool/&#34;&gt;Grafana Mimirtool&lt;/a&gt;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;For mimirtool to interact with Grafana Cloud, you must set the correct configuration variables. Set them using either environment variables or a command line flags.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;upload-rules-definition-to-your-grafana-cloud-metrics-and-logs-instance&#34;&gt;Upload rules definition to your Grafana Cloud Metrics and Logs instance&lt;/h2&gt;
&lt;p&gt;First, you&amp;rsquo;ll need to upload your alerting and recording rules to your Metrics and Logs instance. You&amp;rsquo;ll need the instance ID and the URL. These should be part of /orgs/&lt;code&gt;&amp;lt;yourOrgName&amp;gt;&lt;/code&gt;/.&lt;/p&gt;
&lt;h3 id=&#34;metrics-instance&#34;&gt;Metrics instance&lt;/h3&gt;
&lt;p&gt;Your Metrics instance is likely to be in the &lt;code&gt;us-central1&lt;/code&gt; region. Its address would be in the form of &lt;a href=&#34;https://prometheus-us-central1.grafana.net&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://prometheus-us-central1.grafana.net&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;logs-instance&#34;&gt;Logs instance&lt;/h3&gt;
&lt;p&gt;Your Logs instance is likely to be in the &lt;code&gt;us-central1&lt;/code&gt; region. Its address would be in the form of &lt;a href=&#34;https://logs-prod-us-central1.grafana.net&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://logs-prod-us-central1.grafana.net&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;using-mimirtool&#34;&gt;Using mimirtool&lt;/h3&gt;
&lt;p&gt;With your instance ID, URL, and API key you&amp;rsquo;re now ready to upload your rules to your metrics instance. Use the following commands and files as a reference.&lt;/p&gt;
&lt;p&gt;Below is an example alert and rule definition YAML file. Take note of the namespace key which replaces the concept of &amp;ldquo;files&amp;rdquo; in this context given each instance only supports 1 configuration file.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;# first_rules.yml
namespace: &amp;#39;first_rules&amp;#39;
groups:
  - name: &amp;#39;shopping_service_rules_and_alerts&amp;#39;
    rules:
      - alert: &amp;#39;PromScrapeFailed&amp;#39;
        annotations:
          message: &amp;#39;Prometheus failed to scrape a target {{ $labels.job }}  / {{ $labels.instance }}&amp;#39;
        expr: &amp;#39;up != 1&amp;#39;
        for: &amp;#39;1m&amp;#39;
        labels:
          &amp;#39;severity&amp;#39;: &amp;#39;critical&amp;#39;
      - record: &amp;#39;job:up:sum&amp;#39;
        expr: &amp;#39;sum by(job) (up)&amp;#39;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Although both recording and alerting rules are defined under the key &lt;code&gt;rules&lt;/code&gt; the difference between a rule and and alert is &lt;em&gt;generally&lt;/em&gt; (as there are others) whenever the key &lt;code&gt;record&lt;/code&gt; or &lt;code&gt;alert&lt;/code&gt; is defined.&lt;/p&gt;
&lt;p&gt;With this file, you can run the following commands to upload your rules file in your Metrics or Logs instance. Keep in mind that these are example commands for your Metrics instance, and they use placeholders and command line flags. Follow a similar pattern for your Logs instances by switching the address to the correct one. The examples also assume that files are located in the same directory.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ mimirtool rules load first_rules.yml \
--address=https://prometheus-us-central1.grafana.net \
--id=&amp;lt;yourID&amp;gt; \
--key=&amp;lt;yourKey&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Next, confirm that the rules were uploaded correctly by running:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ mimirtool rules list \
--address=https://prometheus-us-central1.grafana.net \
--id=&amp;lt;yourID&amp;gt; \
--key=&amp;lt;yourKey&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Output is a list that shows you all the namespaces and rule groups for your instance ID:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;Namespace   | Rule Group
first_rules | shopping_service_rules_and_alerts&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You can also print the rules:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ mimirtool rules print \
--address=https://prometheus-us-central1.grafana.net \
--id=&amp;lt;yourID&amp;gt; \
--key=&amp;lt;yourKey&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Output from the print command should look like this:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;first_rules:
  - name: shopping_service_rules_and_alerts
    interval: 0s
    rules:
      - alert: PromScrapeFailed
        expr: up != 1
        for: 1m
        labels:
          severity: critical
        annotations:
          message: Prometheus failed to scrape a target {{ $labels.job }}  / {{ $labels.instance }}
      - record: job:up:sum
        expr: sum by(job) (up)&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;upload-alertmanager-configuration-to-your-grafana-cloud-alerts-instance&#34;&gt;Upload Alertmanager configuration to your Grafana Cloud Alerts instance&lt;/h2&gt;
&lt;p&gt;To receive alerts you&amp;rsquo;ll need to upload your Alertmanager configuration to your Grafana Cloud Alerts instance. Similar to the previous step, you&amp;rsquo;ll need the corresponding instance ID, URL and API key. These should be part of /orgs/​&lt;code&gt;&amp;lt;yourOrgName&amp;gt;&lt;/code&gt;/.&lt;/p&gt;
&lt;p&gt;Your Alerts instance is likely to be in the &lt;code&gt;us-central1&lt;/code&gt; region. Its address would be in the form of &lt;a href=&#34;https://alertmanager-us-central1.grafana.net&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://alertmanager-us-central1.grafana.net&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;using-mimirtool-1&#34;&gt;Using mimirtool&lt;/h3&gt;
&lt;p&gt;With your instance ID, URL, and API key you&amp;rsquo;re now ready to upload your Alertmanager configuration to your Alerts instance. Use the following commands and files as a reference.&lt;/p&gt;
&lt;p&gt;Ultimately, you&amp;rsquo;ll need to &lt;a href=&#34;https://prometheus.io/docs/alerting/latest/configuration/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;write your own&lt;/a&gt; or adapt an &lt;a href=&#34;https://github.com/prometheus/alertmanager/blob/master/doc/examples/simple.yml&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;example config file&lt;/a&gt; for alerts to be delivered.&lt;/p&gt;
&lt;p&gt;Below is an example Alertmanager configuration. Please take that this not a working configuration, your alerts won&amp;rsquo;t be delivered with the following configuration but your Alertmanager UI will be accessible.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;# alertmanager.yml
global:
  smtp_smarthost: &amp;#39;localhost:25&amp;#39;
  smtp_from: &amp;#39;youraddress@example.org&amp;#39;
route:
  receiver: example-email
receivers:
  - name: example-email
    email_configs:
      - to: &amp;#39;youraddress@example.org&amp;#39;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;With this file, you can run the following commands to upload your Alertmanager configuration in your Alerts instance.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ mimirtool alertmanager load alertmanager.yml \
--address=https://alertmanager-us-central1.grafana.net \
--id=&amp;lt;yourID&amp;gt; \
--key=&amp;lt;yourKey&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Then, confirm that the rules were uploaded correctly by running:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ mimirtool alertmanager get \
--address=https://alertmanager-us-central1.grafana.net \
--id=&amp;lt;yourID&amp;gt; \
--key=&amp;lt;yourKey&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You should see output similar to the following:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;global:
  smtp_smarthost: &amp;#39;localhost:25&amp;#39;
  smtp_from: &amp;#39;youraddress@example.org&amp;#39;
route:
  receiver: example-email
receivers:
 - name: example-email
   email_configs:
    - to: &amp;#39;youraddress@example.org&amp;#39;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Finally, you can delete the configuration with:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ mimirtool alertmanager delete \
--address=https://alertmanager-us-central1.grafana.net \
--id=&amp;lt;yourID&amp;gt; \
--key=&amp;lt;yourKey&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;ui-access&#34;&gt;UI access&lt;/h3&gt;
&lt;p&gt;After you upload a working Alertmanager configuration file, you can access the Alertmanager UI at: &lt;a href=&#34;https://alertmanager-us-central1.grafana.net/alertmanager&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://alertmanager-us-central1.grafana.net/alertmanager&lt;/a&gt;.&lt;/p&gt;
]]></content><description>&lt;h1 id="prometheus-rules-with-mimirtool">Prometheus rules with mimirtool&lt;/h1>
&lt;p>This page outlines the steps to use mimirtool and Prometheus-style rules with Grafana Cloud Alerting. You can load Prometheus alerting and recording rules that are evaluated entirely in Grafana Cloud. This allows for global rule evaluation over all of the metrics and logs stored in your Grafana Cloud stack.&lt;/p></description></item></channel></rss>