Opt-in to Grafana alerting
Note: If you are an existing Grafana Cloud user and want to explore unified alerting, contact Grafana Support. They will enable unified alerting for your Cloud stack.
For older OSS installations that use legacy dashboard alerts, unified alerting is still an opt-in feature. This topic describes how to opt-in to Grafana alerting if you have an existing Grafana installation and the rules and restrictions that govern the migration of existing dashboard alerts to the new alerting system. You can disable Grafana alerts and use the legacy dashboard alerting if needed.
Before you begin, we recommend that you backup Grafana’s database. If you are using PostgreSQL as the backend database, then the minimum required version is 9.5.
To enable Grafana alerts:
- Set the property to
true
. - Next, for legacy dashboard alerting, set the
enabled
flag tofalse
. - Restart Grafana for the configuration changes to take effect.
Before v8.2, notification logs and silences were stored on a disk. If you did not use persistent disks, you would have lost any configured silences and logs on a restart, resulting in unwanted or duplicate notifications. We no longer require the use of a persistent disk. Instead, the notification logs and silences are stored regularly (every 15 minutes). If you used the file-based approach, Grafana reads the existing file and persists it eventually.
When Grafana alerting is enabled or Grafana is upgraded to version 8.3, existing legacy dashboard alerts migrate in a format compatible with the Grafana alerting. In the Alerting page of your Grafana instance, you can view the migrated alerts alongside new alerts.
Read and write access to legacy dashboard alerts and Grafana alerts are governed by the permissions of the folders storing them. During migration, legacy dashboard alert permissions are matched to the new rules permissions as follows:
- If alert’s dashboard has permissions, it will create a folder named like
Migrated {"dashboardUid": "UID", "panelId": 1, "alertId": 1}
to match permissions of the dashboard (including the inherited permissions from the folder). - If there are no dashboard permissions and the dashboard is under the General folder, then the rule is linked to the folder, and the rule inherits the default permissions.
Since and Sensu
notification channels are no longer supported, legacy alerts associated with these channels are not automatically migrated to Grafana alerting. Assign the legacy alerts to a supported notification channel so that you continue to receive notifications for those alerts. Silences (expiring after one year) are created for all paused dashboard alerts.
Grafana alerting system can retrieve rules from all available Prometheus, Loki, and Alertmanager data sources. It might not be able to fetch alerting rules from all other supported data sources at this time.
To disable Grafana alerts and enable legacy dashboard alerts:
- In your custom configuration file ($WORKING_DIR/conf/custom.ini), go to the Grafana alerting section.
- Set the
enabled
property tofalse
. - For , set the
enabled
flag totrue
.