<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Alerting on Grafana Labs</title><link>https://grafana.com/docs/grafana/v4.3/alerting/</link><description>Recent content in Alerting on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v4.3/alerting/index.xml" rel="self" type="application/rss+xml"/><item><title>Alerting Engine &amp; Rules Guide</title><link>https://grafana.com/docs/grafana/v4.3/alerting/rules/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v4.3/alerting/rules/</guid><content><![CDATA[&lt;h1 id=&#34;alerting-engine--rules-guide&#34;&gt;Alerting Engine &amp;amp; Rules Guide&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;Alerting is only available in Grafana v4.0 and above.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p float-right&#34;
    style=&#34;max-width: 40%;&#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/v4/drag_handles_gif.gif&#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/v4/drag_handles_gif.gif&#34;alt=&#34;Alerting overview&#34;width=&#34;888&#34;height=&#34;676&#34;title=&#34;Alerting overview&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v4/drag_handles_gif.gif&#34;
            alt=&#34;Alerting overview&#34;width=&#34;888&#34;height=&#34;676&#34;title=&#34;Alerting overview&#34;class=&#34;float-right&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting overview&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;Alerting in Grafana allows you to attach rules to your dashboard panels. When you save the dashboard
Grafana will extract the alert rules into a separate alert rule storage and schedule them for evaluation.&lt;/p&gt;
&lt;p&gt;In the alert tab of the graph panel you can configure how often the alert rule should be evaluated
and the conditions that need to be met for the alert to change state and trigger its
&lt;a href=&#34;../notifications/&#34;&gt;notifications&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;execution&#34;&gt;Execution&lt;/h2&gt;
&lt;p&gt;The alert rules are evaluated in the Grafana backend in a scheduler and query execution engine that is part
of core Grafana. Only some data soures are supported right now. They include &lt;code&gt;Graphite&lt;/code&gt;, &lt;code&gt;Prometheus&lt;/code&gt;,
&lt;code&gt;InfluxDB&lt;/code&gt; and &lt;code&gt;OpenTSDB&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;clustering&#34;&gt;Clustering&lt;/h3&gt;
&lt;p&gt;We have not implemented clustering yet. So if you run multiple instances of grafana-server
you have to make sure &lt;a href=&#34;../../installation/configuration/#alerting&#34;&gt;execute_alerts&lt;/a&gt;
is true on only one instance or otherwise you will get duplicated notifications.&lt;/p&gt;
&lt;div class=&#34;clearfix&#34;&gt;&lt;/div&gt;
&lt;h2 id=&#34;rule-config&#34;&gt;Rule Config&lt;/h2&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p float-right&#34;
    style=&#34;max-width: 40%;&#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/v4/alerting_conditions.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/v4/alerting_conditions.png&#34;data-srcset=&#34;/static/img/docs/v4/alerting_conditions.png?w=320 320w, /static/img/docs/v4/alerting_conditions.png?w=550 550w, /static/img/docs/v4/alerting_conditions.png?w=750 750w, /static/img/docs/v4/alerting_conditions.png?w=900 900w, /static/img/docs/v4/alerting_conditions.png?w=1040 1040w, /static/img/docs/v4/alerting_conditions.png?w=1240 1240w, /static/img/docs/v4/alerting_conditions.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alerting Conditions&#34;width=&#34;1164&#34;height=&#34;582&#34;title=&#34;Alerting Conditions&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v4/alerting_conditions.png&#34;
            alt=&#34;Alerting Conditions&#34;width=&#34;1164&#34;height=&#34;582&#34;title=&#34;Alerting Conditions&#34;class=&#34;float-right&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting Conditions&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;Currently only the graph panel supports alert rules but this will be added to the &lt;strong&gt;Singlestat&lt;/strong&gt; and &lt;strong&gt;Table&lt;/strong&gt;
panels as well in a future release.&lt;/p&gt;
&lt;h3 id=&#34;name--evaluation-interval&#34;&gt;Name &amp;amp; Evaluation interval&lt;/h3&gt;
&lt;p&gt;Here you can specify the name of the alert rule and how often the scheduler should evaluate the alert rule.&lt;/p&gt;
&lt;h3 id=&#34;conditions&#34;&gt;Conditions&lt;/h3&gt;
&lt;p&gt;Currently the only condition type that exists is a &lt;code&gt;Query&lt;/code&gt; condition that allows you to
specify a query letter, time range and an aggregation function. The letter refers to
a query you already have added in the &lt;strong&gt;Metrics&lt;/strong&gt; tab. The result from the query and the aggregation function is
a single value that is then used in the threshold check. The query used in an alert rule cannot
contain any template variables. Currently we only support &lt;code&gt;AND&lt;/code&gt; and &lt;code&gt;OR&lt;/code&gt; operators between conditions and they are executed serially.
For example, we have 3 conditions in the following order:
&lt;code&gt;condition:A(evaluates to: TRUE) OR condition:B(evaluates to: FALSE) AND condition:C(evaluates to: TRUE)&lt;/code&gt;
so the result will be calculated as ((TRUE OR FALSE) AND TRUE) = TRUE.&lt;/p&gt;
&lt;p&gt;We plan to add other condition types in the future, like &lt;code&gt;Other Alert&lt;/code&gt;, where you can include the state
of another alert in your conditions, and &lt;code&gt;Time Of Day&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;multiple-series&#34;&gt;Multiple Series&lt;/h4&gt;
&lt;p&gt;If a query returns multiple series then the aggregation function and threshold check will be evaluated for each series.
What Grafana does not do currently is track alert rule state &lt;strong&gt;per series&lt;/strong&gt;. This has implications that is exemplified
in the scenario below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Alert condition with query that returns 2 series: &lt;strong&gt;server1&lt;/strong&gt; and &lt;strong&gt;server2&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;server1&lt;/strong&gt; series cause the alert rule to fire and switch to state &lt;code&gt;Alerting&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Notifications are sent out with message:  &lt;em&gt;load peaking (server1)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;In a subsequence evaluation of the same alert rule the &lt;strong&gt;server2&lt;/strong&gt; series also cause the alert rule to fire&lt;/li&gt;
&lt;li&gt;No new notifications are sent as the alert rule is already in state &lt;code&gt;Alerting&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So as you can see from the above scenario Grafana will not send out notifications when other series cause the alert
to fire if the rule already is in state &lt;code&gt;Alerting&lt;/code&gt;. To improve support for queries that return multiple series
we plan to track state &lt;strong&gt;per series&lt;/strong&gt; in a future release.&lt;/p&gt;
&lt;h3 id=&#34;no-data--null-values&#34;&gt;No Data / Null values&lt;/h3&gt;
&lt;p&gt;Below you condition you can configure how the rule evaluation engine should handle queries that return no data or only null valued
data.&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;NoData&lt;/td&gt;
              &lt;td&gt;Set alert rule state to &lt;code&gt;NoData&lt;/code&gt;&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;Keep Last State&lt;/td&gt;
              &lt;td&gt;Keep the current alert rule state, what ever it is.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;execution-errors-or-timeouts&#34;&gt;Execution errors or timeouts&lt;/h3&gt;
&lt;p&gt;The last option is how to handle execution or timeout errors.&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;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;Keep Last State&lt;/td&gt;
              &lt;td&gt;Keep the current alert rule state, what ever it is.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;If you an unreliable time series store that where queries sometime timeout or fail randomly you can set this option
t &lt;code&gt;Keep Last State&lt;/code&gt; to basically ignore them.&lt;/p&gt;
&lt;h2 id=&#34;notifications&#34;&gt;Notifications&lt;/h2&gt;
&lt;p&gt;In alert tab you can also specify alert rule notifications along with a detailed messsage about the alert rule.
The message can contain anything, information about how you might solve the issue, link to runbook etc.&lt;/p&gt;
&lt;p&gt;The actual notifications are configured and shared between multiple alerts. Read the
&lt;a href=&#34;../notifications/&#34;&gt;Notifications&lt;/a&gt; guide for how to configure and setup notifications.&lt;/p&gt;
&lt;h2 id=&#34;alert-state-history--annotations&#34;&gt;Alert State History &amp;amp; Annotations&lt;/h2&gt;
&lt;p&gt;Alert state changes are recorded in the internal annotation table in Grafana&amp;rsquo;s database. The state changes
are visualized as annotations in the alert rule&amp;rsquo;s graph panel. You can also go into the &lt;code&gt;State history&lt;/code&gt;
submenu in the alert tab to view &amp;amp; clear state history.&lt;/p&gt;
&lt;h2 id=&#34;troubleshooting&#34;&gt;Troubleshooting&lt;/h2&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p float-right&#34;
    style=&#34;max-width: 40%;&#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/v4/alert_test_rule.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/v4/alert_test_rule.png&#34;data-srcset=&#34;/static/img/docs/v4/alert_test_rule.png?w=320 320w, /static/img/docs/v4/alert_test_rule.png?w=550 550w, /static/img/docs/v4/alert_test_rule.png?w=750 750w, /static/img/docs/v4/alert_test_rule.png?w=900 900w, /static/img/docs/v4/alert_test_rule.png?w=1040 1040w, /static/img/docs/v4/alert_test_rule.png?w=1240 1240w, /static/img/docs/v4/alert_test_rule.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Test Rule&#34;width=&#34;1368&#34;height=&#34;790&#34;title=&#34;Test Rule&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v4/alert_test_rule.png&#34;
            alt=&#34;Test Rule&#34;width=&#34;1368&#34;height=&#34;790&#34;title=&#34;Test Rule&#34;class=&#34;float-right&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Test Rule&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;First level of troubleshooting you can do is hit the &lt;strong&gt;Test Rule&lt;/strong&gt; button. You will get result back that you can expand
to the point where you can see the raw data that was returned form your query.&lt;/p&gt;
&lt;p&gt;Further troubleshooting can also be done by inspecting the grafana-server log. If it&amp;rsquo;s not an error or for some reason
the log does not say anything you can enable debug logging for some relevant components. This is done
in Grafana&amp;rsquo;s ini config file.&lt;/p&gt;
&lt;p&gt;Example showing loggers that could be relevant when troubleshooting alerting.&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;ini&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-ini&#34;&gt;[log]
filters = alerting.scheduler:debug \
          alerting.engine:debug \
          alerting.resultHandler:debug \
          alerting.evalHandler:debug \
          alerting.evalContext:debug \
          alerting.extractor:debug \
          alerting.notifier:debug \
          alerting.notifier.slack:debug \
          alerting.notifier.pagerduty:debug \
          alerting.notifier.email:debug \
          alerting.notifier.webhook:debug \
          tsdb.graphite:debug \
          tsdb.prometheus:debug \
          tsdb.opentsdb:debug \
          tsdb.influxdb:debug \&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If you want to log raw query sent to your TSDB and raw response in log you also have to set grafana.ini option &lt;code&gt;app_mode&lt;/code&gt; to
&lt;code&gt;development&lt;/code&gt;.&lt;/p&gt;
]]></content><description>&lt;h1 id="alerting-engine--rules-guide">Alerting Engine &amp;amp; Rules Guide&lt;/h1>
&lt;blockquote>
&lt;p>Alerting is only available in Grafana v4.0 and above.&lt;/p>&lt;/blockquote>
&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;figure
class="figure-wrapper figure-wrapper__lightbox w-100p float-right"
style="max-width: 40%;"
itemprop="associatedMedia"
itemscope=""
itemtype="http://schema.org/ImageObject"
>&lt;a
class="lightbox-link captioned"
href="/static/img/docs/v4/drag_handles_gif.gif"
itemprop="contentUrl"
>&lt;div class="img-wrapper w-100p h-auto">&lt;img
class="lazyload mb-0"
data-src="/static/img/docs/v4/drag_handles_gif.gif"alt="Alerting overview"width="888"height="676"title="Alerting overview"/>
&lt;noscript>
&lt;img
src="/static/img/docs/v4/drag_handles_gif.gif"
alt="Alerting overview"width="888"height="676"title="Alerting overview"class="float-right"/>
&lt;/noscript>&lt;/div>&lt;figcaption class="w-100p caption text-gray-13 ">Alerting overview&lt;/figcaption>&lt;/a>&lt;/figure>
&lt;p>Alerting in Grafana allows you to attach rules to your dashboard panels. When you save the dashboard
Grafana will extract the alert rules into a separate alert rule storage and schedule them for evaluation.&lt;/p></description></item><item><title>Alerting Metrics</title><link>https://grafana.com/docs/grafana/v4.3/alerting/metrics/</link><pubDate>Wed, 14 Apr 2021 09:32:57 +0200</pubDate><guid>https://grafana.com/docs/grafana/v4.3/alerting/metrics/</guid><content><![CDATA[&lt;h1 id=&#34;metrics-from-the-alert-engine&#34;&gt;Metrics from the alert engine&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;Alerting is only available in Grafana v4.0 and above.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The alert engine publishes some internal metrics about itself. You can read more about how Grafana published &lt;a href=&#34;/installation/configuration/#metrics&#34;&gt;internal metrics&lt;/a&gt;.&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;Description&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Metric name&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;Total number of alerts&lt;/td&gt;
              &lt;td&gt;counter&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;alerting.active_alerts&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Alert execution result&lt;/td&gt;
              &lt;td&gt;counter&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;alerting.result&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Notifications sent counter&lt;/td&gt;
              &lt;td&gt;counter&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;alerting.notifications_sent&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Alert execution timer&lt;/td&gt;
              &lt;td&gt;timer&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;alerting.execution_time&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="metrics-from-the-alert-engine">Metrics from the alert engine&lt;/h1>
&lt;blockquote>
&lt;p>Alerting is only available in Grafana v4.0 and above.&lt;/p>&lt;/blockquote>
&lt;p>The alert engine publishes some internal metrics about itself. You can read more about how Grafana published &lt;a href="/installation/configuration/#metrics">internal metrics&lt;/a>.&lt;/p></description></item><item><title>Alerting Notifications</title><link>https://grafana.com/docs/grafana/v4.3/alerting/notifications/</link><pubDate>Fri, 28 May 2021 11:31:54 +0200</pubDate><guid>https://grafana.com/docs/grafana/v4.3/alerting/notifications/</guid><content><![CDATA[&lt;h1 id=&#34;alert-notifications&#34;&gt;Alert Notifications&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;Alerting is only available in Grafana v4.0 and above.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When an alert changes state it sends out notifications. Each alert rule can have
multiple notifications. But in order to add a notification to an alert rule you first need
to add and configure a &lt;code&gt;notification&lt;/code&gt; channel (can be email, Pagerduty or other integration). This is done from the Notification Channels page.&lt;/p&gt;
&lt;h2 id=&#34;notification-channel-setup&#34;&gt;Notification Channel Setup&lt;/h2&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p float-right&#34;
    style=&#34;max-width: 40%;&#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/v43/alert_notifications_menu.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/v43/alert_notifications_menu.png&#34;data-srcset=&#34;/static/img/docs/v43/alert_notifications_menu.png?w=320 320w, /static/img/docs/v43/alert_notifications_menu.png?w=550 550w, /static/img/docs/v43/alert_notifications_menu.png?w=750 750w, /static/img/docs/v43/alert_notifications_menu.png?w=900 900w, /static/img/docs/v43/alert_notifications_menu.png?w=1040 1040w, /static/img/docs/v43/alert_notifications_menu.png?w=1240 1240w, /static/img/docs/v43/alert_notifications_menu.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alerting Notification Channels&#34;width=&#34;407&#34;height=&#34;262&#34;title=&#34;Alerting Notification Channels&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v43/alert_notifications_menu.png&#34;
            alt=&#34;Alerting Notification Channels&#34;width=&#34;407&#34;height=&#34;262&#34;title=&#34;Alerting Notification Channels&#34;class=&#34;float-right&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting Notification Channels&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;On the Notification Channels page hit the &lt;code&gt;New Channel&lt;/code&gt; button to go the the page where you
can configure and setup a new Notification Channel.&lt;/p&gt;
&lt;p&gt;You specify name and type, and type specific options. You can also test the notification to make
sure it&amp;rsquo;s working and setup correctly.&lt;/p&gt;
&lt;h3 id=&#34;send-on-all-alerts&#34;&gt;Send on all alerts&lt;/h3&gt;
&lt;p&gt;When checked this option will make this notification used for all alert rules, existing and new.&lt;/p&gt;
&lt;h2 id=&#34;supported-notification-types&#34;&gt;Supported Notification Types&lt;/h2&gt;
&lt;p&gt;Grafana ships with the following set of notification types:&lt;/p&gt;
&lt;h3 id=&#34;email&#34;&gt;Email&lt;/h3&gt;
&lt;p&gt;To enable email notification you have to setup &lt;a href=&#34;/installation/configuration/#smtp&#34;&gt;SMTP settings&lt;/a&gt;
in the Grafana config. Email notification will upload an image of the alert graph to an
external image destination if available or fallback to attaching the image in the email.&lt;/p&gt;
&lt;h3 id=&#34;slack&#34;&gt;Slack&lt;/h3&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p float-right&#34;
    style=&#34;max-width: 40%;&#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/v4/slack_notification.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/v4/slack_notification.png&#34;data-srcset=&#34;/static/img/docs/v4/slack_notification.png?w=320 320w, /static/img/docs/v4/slack_notification.png?w=550 550w, /static/img/docs/v4/slack_notification.png?w=750 750w, /static/img/docs/v4/slack_notification.png?w=900 900w, /static/img/docs/v4/slack_notification.png?w=1040 1040w, /static/img/docs/v4/slack_notification.png?w=1240 1240w, /static/img/docs/v4/slack_notification.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Alerting Slack Notification&#34;width=&#34;1216&#34;height=&#34;834&#34;title=&#34;Alerting Slack Notification&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v4/slack_notification.png&#34;
            alt=&#34;Alerting Slack Notification&#34;width=&#34;1216&#34;height=&#34;834&#34;title=&#34;Alerting Slack Notification&#34;class=&#34;float-right&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Alerting Slack Notification&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;To set up slack you need to configure an incoming webhook url at slack. You can follow their guide for how
to do that &lt;a href=&#34;https://api.slack.com/incoming-webhooks&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://api.slack.com/incoming-webhooks&lt;/a&gt; If you want to include screenshots of the firing alerts
in the slack messages you have to configure the &lt;a href=&#34;#external-image-store&#34;&gt;external image destination&lt;/a&gt; in Grafana.&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;Setting&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;Recipient&lt;/td&gt;
              &lt;td&gt;allows you to override the slack recipient.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Mention&lt;/td&gt;
              &lt;td&gt;make it possible to include a mention in the slack notification sent by Grafana. Ex @here or @channel&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;pagerduty&#34;&gt;PagerDuty&lt;/h3&gt;
&lt;p&gt;To set up PagerDuty, all you have to do is to provide an api key.&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;Setting&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;Integration Key&lt;/td&gt;
              &lt;td&gt;Integration key for pagerduty.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Auto resolve incidents&lt;/td&gt;
              &lt;td&gt;Resolve incidents in pagerduty once the alert goes back to ok&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;webhook&#34;&gt;Webhook&lt;/h3&gt;
&lt;p&gt;The webhook notification is a simple way to send information about an state change over HTTP to a custom endpoint.
Using this notification you could integrate Grafana into any system you choose, by yourself.&lt;/p&gt;
&lt;p&gt;Example json body:&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;JSON&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-json&#34;&gt;{
  &amp;#34;title&amp;#34;: &amp;#34;My alert&amp;#34;,
  &amp;#34;ruleId&amp;#34;: 1,
  &amp;#34;ruleName&amp;#34;: &amp;#34;Load peaking!&amp;#34;,
  &amp;#34;ruleUrl&amp;#34;: &amp;#34;http://url.to.grafana/db/dashboard/my_dashboard?panelId=2&amp;#34;,
  &amp;#34;state&amp;#34;: &amp;#34;alerting&amp;#34;,
  &amp;#34;imageUrl&amp;#34;: &amp;#34;http://s3.image.url&amp;#34;,
  &amp;#34;message&amp;#34;: &amp;#34;Load is peaking. Make sure the traffic is real and spin up more webfronts&amp;#34;,
  &amp;#34;evalMatches&amp;#34;: [
    {
      &amp;#34;metric&amp;#34;: &amp;#34;requests&amp;#34;,
      &amp;#34;tags&amp;#34;: {},
      &amp;#34;value&amp;#34;: 122
    }
  ]
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;state&lt;/strong&gt; - The possible values for alert state are: &lt;code&gt;ok&lt;/code&gt;, &lt;code&gt;paused&lt;/code&gt;, &lt;code&gt;alerting&lt;/code&gt;, &lt;code&gt;pending&lt;/code&gt;, &lt;code&gt;no_data&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;other-supported-notification-channels&#34;&gt;Other Supported Notification Channels&lt;/h3&gt;
&lt;p&gt;Grafana also supports the following Notification Channels:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;HipChat&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VictorOps&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sensu&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;OpsGenie&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Threema&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Pushover&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Telegram&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;LINE&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id=&#34;external-image-store&#34;&gt;Enable images in notifications&lt;/h1&gt;
&lt;p&gt;Grafana can render the panel associated with the alert rule and include that in the notification. Most Notification Channels require that this image be publicly accessible (Slack and PagerDuty for example). In order to include images in alert notifications, Grafana can upload the image to an image store. It currently supports
Amazon S3 and Webdav for this. So to set that up you need to configure the &lt;a href=&#34;/installation/configuration/#external-image-storage&#34;&gt;external image uploader&lt;/a&gt; in your grafana-server ini config file.&lt;/p&gt;
&lt;p&gt;Currently only the Email Channels attaches images if no external image store is specified. To include images in alert notifications for other channels then you need to set up an external image store.&lt;/p&gt;
&lt;p&gt;This is an optional requirement, you can get Slack and email notifications without setting this up.&lt;/p&gt;
&lt;h1 id=&#34;configure-the-link-back-to-grafana-from-alert-notifications&#34;&gt;Configure the link back to Grafana from alert notifications&lt;/h1&gt;
&lt;p&gt;All alert notifications contains a link back to the triggered alert in the Grafana instance.
This url is based on the &lt;a href=&#34;/installation/configuration/#domain&#34;&gt;domain&lt;/a&gt; setting in Grafana.&lt;/p&gt;
]]></content><description>&lt;h1 id="alert-notifications">Alert Notifications&lt;/h1>
&lt;blockquote>
&lt;p>Alerting is only available in Grafana v4.0 and above.&lt;/p>&lt;/blockquote>
&lt;p>When an alert changes state it sends out notifications. Each alert rule can have
multiple notifications. But in order to add a notification to an alert rule you first need
to add and configure a &lt;code>notification&lt;/code> channel (can be email, Pagerduty or other integration). This is done from the Notification Channels page.&lt;/p></description></item></channel></rss>