4.7 KiB
canonical | description | keywords | labels | menuTitle | title | weight | refs | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://grafana.com/docs/grafana/latest/alerting/configure-notifications/manage-contact-points/integrations/configure-email/ | Configure email integration to send email notifications when your alerts are firing |
|
|
Configure email for alert notifications | 110 |
|
Configure email for alert notifications
Use the email integration to send alert notifications to one or more addresses.
You can customize the subject and main section of the email body. By default, the subject and body are generated from the alert data included in the notification.
Before you begin
In Grafana OSS, you must configure SMTP settings before you can enable email notifications.
{{}} In Grafana Cloud, SMTP configuration is not required. {{}}
-
Open the configuration file. The file is typically named
grafana.ini
orcustom.ini
and located in theconf
directory of your Grafana installation. -
Configure the SMTP settings for your email server in the
[smtp]
section. -
Save your changes and restart Grafana.
-
Test email notifications by creating a contact point.
Configure Email for a contact point
To create a contact point with a email integration, complete the following steps.
- Navigate to Alerts & IRM -> Alerting -> Contact points.
- Click + Create contact point.
- Enter a name for the contact point.
- From the Integration list, select Email.
- Set up the required settings for your Email configuration.
- Click Save contact point.
For more details on contact points, including how to test them and enable notifications, refer to Configure contact points.
Email settings
Option | Description |
---|---|
Addresses | The list of email addresses to send the notifications. Email addresses are case sensitive. |
Optional settings
Option | Description |
---|---|
Single email | Send a single email to all email addresses rather than individual emails. |
Optional settings using templates
{{}} You can customize the email subject and main section of the email body, but you can't edit HTML or CSS for visual changes.
In Grafana OSS and Enterprise, you can edit the full email template. However, this is not officially supported because it's an internal API that may change without prior notice. {{}}
Option | Description |
---|---|
Subject | Sets the email subject, replacing the default template. Supports notification templates. |
Message | Sets the main section of the email body, replacing the default template. Supports notification templates. |
{{< figure src="/media/docs/alerting/custom-email-message5.png" caption="Email notification with custom message." max-width="750px" >}}
Optional notification settings
Option | Description |
---|---|
Disable resolved message | Enable this option to prevent notifications when an alert resolves. |