Use Azure Monitor alerts with Grafana

In this guide, you learn how to set up Azure Monitor alerts and use them with Azure Managed Grafana.

Both Azure Monitor and Grafana provide alerting functions.

Note

Grafana alerts are only available for instances in the Standard plan.

Grafana provides an alerting function for a number of supported data sources. Alert rules are processed in your Azure Managed Grafana workspace and they share the same compute resources and query throttling limits with dashboard rendering. For more information about these limits, refer to performance considerations and limitations.

Azure Monitor has its own alert system. It offers many advantages:

  • Scalability: Azure Monitor alerts are evaluated in the Azure Monitor platform that's been architected to autoscale to your needs.
  • Compliance: Azure Monitor alerts and action groups are governed by Azure's compliance standards on privacy, including unsubscribe support.
  • Customized notifications and actions: Azure Monitor alerts use action groups to send notifications by email, SMS, voice, and push notifications. These events can be configured to trigger further actions implemented in Functions, Logic apps, webhook, and other supported action types.
  • Consistent resource management: Azure Monitor alerts are managed as Azure resources. They can be created, updated and viewed using Azure APIs and tools, such as ARM templates, Azure CLI or SDKs.

For any Azure Monitor service, including Azure Monitor Managed Service for Prometheus, you should define and manage your alert rules in Azure Monitor. You can view fired and resolved alerts in the Azure Alert Consumption dashboard included in Azure Managed Grafana.

Important

To set up alerts for Azure Monitor, we recommend you directly use Azure Monitor's native alerting function. Using Grafana alerts with an Azure Monitor service isn't officially supported by Azure.

Create Azure Monitor alerts

Define alert rules in Azure Monitor based on the type of alerts:

Alert Type Description
Managed service for Prometheus Use Prometheus rule groups. A set of predefined Prometheus alert rules and recording rules for AKS is available.
Other metrics, logs, health Create new alert rules.

You can view alert state and conditions using the Azure Alert Consumption dashboard in your Azure Managed Grafana workspace.

Next steps

In this how-to guide, you learned how to set up alerts for Azure Monitor and consume them in Azure Managed Grafana. To learn how to use Grafana alerts for other data sources, see Grafana alerting and setting up email notifications in Azure Managed Grafana.