You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Alerting is only available in Grafana v4.0 and above.
17
18
19
+
When an alert changes state it sends out notifications. Each alert rule can have
20
+
multiple notifications. But in order to add a notification to an alert rule you first need
21
+
to add and configure a `notification` object. This is done from the Alerting/Notifications page.
18
22
19
-
When an alert changes state it sends a notification. One alert can be associated with multiple notifications. You can also configure notifications to be sent for all alerts within Grafana to make sure you won’t miss to configure notifications for an alert.
23
+
## Notification Setup
20
24
25
+
On the notifications list page hit the `New Notification` button to go the the page where you
26
+
can configure and setup a new notification.
21
27
22
-
You can find the alert notification page in the main menu under alerting.
28
+
You you specify name and type, and type specific options. You can also test the notification to make
29
+
sure it's working and setup correctly.
23
30
31
+
<!-- You can reach this page from the Alerting submenu or Alert List page header. -->
32
+
<!-- When you configure a notification you can have it be a global notifiations, meaning -->
33
+
<!-- it will be sent for all alerts within Grafana. This is useful to make sure you won’t miss to configure -->
34
+
<!-- notifications for an alert. You can find the alert notification page in the main menu under alerting. -->
35
+
<!---->
24
36
25
-
## Add a notifications to an Alert
26
-
You can add and remove notifications from an alert by going to the `Notifications` sub menu in the alerting tab.
37
+
<!-- ## Add a notifications to an Alert -->
38
+
<!-- You can add and remove notifications from an alert by going to the `Notifications` sub menu in the alerting tab. -->
<!-- Click the `+` button to add a new notification and the `x` to remove. Notifications with a blue backgrounds are enabled by default for all alerts and cannot be modified from this view. -->
This option will make this notification used for all alert rules, existing and new.
30
53
54
+
## Supported notification types
31
55
32
-
Click the `+` button to add a new notification and the `x` to remove. Notifications with a blue backgrounds are enabled by default for all alerts and cannot be modified from this view.
56
+
Grafana ships with a set of notification types. More will be added in future releases.
On the notifications list page (`/alerting/notifications`) you can see all notifiers that have been enabled by default. To make an notification enabled by default
42
-
you can check the `Send on all alerts` checkbox on the notification edit page.
43
-
44
-
45
-
## Testing
46
-
You can test an notification on the edit page by clicking the `Send Test` button. Grafana will then send test data based on the info on the edit page. This is a simple way of making sure that notifications are working as intended.
47
-
48
-
## Supported notifiers
49
58
### Email
50
59
51
-
52
-
To enable email notification you have to setup [SMTP settings](/installation/configuration/#smtp) in the Grafana config.
53
-
Email notification will upload an image of the alert graph to an external image destination if available or fallback on attaching the image in the email.
54
-
60
+
To enable email notification you have to setup [SMTP settings](/installation/configuration/#smtp)
61
+
in the Grafana config. Email notification will upload an image of the alert graph to an
62
+
external image destination if available or fallback on attaching the image in the email.
55
63
56
64
### Webhook
57
-
The webhook notification is a simple way to send information about an state change over HTTP to a custom endpoint.
58
-
Using this notification you could integrated Grafana into any system you choose, by yourself.
59
65
66
+
The webhook notification is a simple way to send information about an state change over HTTP to a custom endpoint.
67
+
Using this notification you could integrated Grafana into any system you choose, by yourself.
To set up slack you need to configure an incoming webhook url at slack. You can follow their guide for how to do that https://api.slack.com/incoming-webhooks
63
-
If you want to include screenshots of the firing alerts in the slack messages you have to configure the [external image destination](/alerting/notifications/#graph-screenshots-in-notifiations) in Grafana.
To set up slack you need to configure an incoming webhook url at slack. You can follow their guide for how
93
+
to do that https://api.slack.com/incoming-webhooks If you want to include screenshots of the firing alerts
94
+
in the slack messages you have to configure the [external image destination](#external-image-store) in Grafana.
64
95
65
96
Setting | Description
66
97
---------- | -----------
67
98
Recipient | allows you to override the slack recipient.
68
99
Mention | make it possible to include a mention in the slack notification sent by Grafana. Ex @here or @channel
69
100
70
-
### Pagerduty
71
-
To set up pagerduty, all you have to do is to provide an api key.
101
+
### PagerDuty
72
102
103
+
To set up PagerDuty, all you have to do is to provide an api key.
73
104
74
105
> Our pagerduty integration only support trigger events at the moment. You have to resolve them by yourself.
75
106
76
107
77
-
## Enable screenshot of alerting graphs
78
-
Some notifiers requires you to configure the [external image uploader](/installation/configuration/#external-image-storage) to be able to upload screenshots of the alerts. This is not a requirement for any notifier within Grafana but we strongly encourage you to use it since the alert notifications give the recipient very valuable information.
108
+
# Enable images in notifications {#external-image-store}
109
+
110
+
Grafan can render the panel associated with the alert rule and include that in the notification. Some types
111
+
of notifications require that this image be publicly accessable (Slack for example). In order to support
112
+
images in notifications like Slack Grafana can upload the image to an image store. It currently supports
113
+
Amazon S3 for this and Webdav. So to set that up you need to configure the
114
+
[external image uploader](/installation/configuration/#external-image-storage) in your grafana-server ini
115
+
config file.
116
+
117
+
This is not an optional requirement, you can get slack and email notifications without setting this up.
0 commit comments