This is documentation for the next version of Grafana documentation. For the latest stable release, go to the latest version.
Alertmanager data source
Grafana includes built-in support for Alertmanager implementations in Prometheus and Grafana Mimir. After you add an Alertmanager data source, you can use the Choose Alertmanager drop-down in Grafana Alerting to view and manage Alertmanager resources such as silences, contact points, and notification policies. You can also enable the Alertmanager to receive Grafana-managed alerts.
Alertmanager implementations
The data source supports the following Alertmanager implementations. You can specify the implementation on the data source’s Settings page.
When using the Prometheus implementation, you can manage silences in the Grafana Alerting UI. Contact points, notification policies, and templates are read-only because the Prometheus Alertmanager API does not support write operations for these resources.
Configure the data source
To add and configure the Alertmanager data source, complete the following steps:
Click Connections in the left-side menu.
Under Your connections, click Data sources.
Enter
Alertmanagerin the search bar.Click Alertmanager.
The Settings tab of the data source is displayed.
Set the data source’s basic configuration options:
Authentication
The data source supports all standard Grafana HTTP authentication methods, including basic auth and TLS. When SigV4 authentication is enabled globally in Grafana, it’s also available for this data source.
For more information about authentication options and connection settings, refer to Data source management.
Verify the connection
Click Save & test to verify the connection. A successful connection returns Health check passed.
Note
If you’re using the Mimir implementation and Mimir Alertmanager hasn’t been configured yet, the health check may still pass. This is expected behavior when Mimir is running in lazy configuration mode.
Provision the data source
You can provision Alertmanager data sources using configuration files or Terraform.
The jsonData fields used across both methods are:
Configuration file
For more information, refer to Provisioning data sources.
apiVersion: 1
datasources:
- name: Alertmanager
type: alertmanager
url: http://localhost:9093
access: proxy
jsonData:
implementation: prometheus
handleGrafanaManagedAlerts: false
basicAuth: true
basicAuthUser: <USERNAME>
secureJsonData:
basicAuthPassword: <PASSWORD>Terraform
To provision the data source with Terraform, use the grafana_data_source resource:
resource "grafana_data_source" "alertmanager" {
name = "Alertmanager"
type = "alertmanager"
url = "http://localhost:9093"
json_data_encoded = jsonencode({
implementation = "prometheus"
handleGrafanaManagedAlerts = false
})
}For all available configuration options, refer to the Grafana provider data source resource documentation.
Troubleshoot Alertmanager data source issues
This section covers common issues when configuring or using the Alertmanager data source.
“Health check failed.”
Symptoms:
- Save & test returns
Health check failed. - The Alertmanager URL may be unreachable or returning an unexpected response.
Possible causes and solutions:
“It looks like you have chosen Prometheus implementation, but detected a Mimir or Cortex endpoint.”
Symptoms:
- Save & test fails with this message when Alertmanager Implementation is set to Prometheus.
Solution:
The URL you entered is a Mimir or Cortex Alertmanager endpoint, not a Prometheus one. Change Alertmanager Implementation to Mimir or Cortex and click Save & test again.
“It looks like you have chosen a Mimir or Cortex implementation, but detected a Prometheus endpoint.”
Symptoms:
- Save & test fails with this message when Alertmanager Implementation is set to Mimir or Cortex.
Solution:
The URL you entered is a Prometheus Alertmanager endpoint. Change Alertmanager Implementation to Prometheus and click Save & test again.
Grafana-managed alerts are not being received
Symptoms:
- Grafana-managed alert instances don’t appear in this Alertmanager.
- The Receive Grafana Alerts toggle is enabled in the data source settings, but no alerts arrive.
Solution:
Enabling Receive Grafana Alerts on the data source alone isn’t enough. You must also enable alert forwarding in Alerting > Administration in the Grafana UI. Both settings must be on for Grafana-managed alerts to be forwarded to this Alertmanager.
Contact points and notification policies are read-only
Symptoms:
- You can view but not edit contact points, notification policies, or templates in the Grafana Alerting UI.
Cause:
You’re using the Prometheus implementation. The Prometheus Alertmanager API doesn’t support write operations for these resources.
Solution:
If you need full read/write access to contact points and notification policies, switch to a Mimir or Cortex Alertmanager and update the Alertmanager Implementation setting.


