2022-11-01 23:22:06 +08:00
---
aliases:
2022-12-10 00:36:04 +08:00
- ../data-sources/alertmanager/
- ../features/datasources/alertmanager/
2022-11-01 23:22:06 +08:00
description: Guide for using Alertmanager as a data source in Grafana
keywords:
- grafana
- prometheus
- alertmanager
- guide
- queries
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
2022-11-01 23:22:06 +08:00
menuTitle: Alertmanager
title: Alertmanager data source
weight: 150
2024-05-28 22:17:49 +08:00
refs:
alerting:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/
2024-12-27 17:16:31 +08:00
configure-alertmanager:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/set-up/configure-alertmanager/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/set-up/configure-alertmanager/
2024-05-28 22:17:49 +08:00
data-sources:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/provisioning/#datasources
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/provisioning/#datasources
2022-11-01 23:22:06 +08:00
---
# Alertmanager data source
2022-12-05 21:01:12 +08:00
Grafana includes built-in support for Alertmanager implementations in Prometheus and Mimir.
2022-11-01 23:22:06 +08:00
2024-12-27 17:16:31 +08:00
Once you add an Alertmanager as a data source, you can use the `Choose Alertmanager` drop-down on [Grafana Alerting ](ref:alerting ) to view and manage Alertmanager resources, such as silences, contact points, and notification policies. Additionally, you can enable the Alertmanager to receive Grafana-managed alerts.
2022-11-01 23:22:06 +08:00
2024-12-27 17:16:31 +08:00
For more details about using other Alertmanagers, refer to [Alertmanagers in the Grafana Alerting documentation ](ref:configure-alertmanager ).
2022-11-01 23:22:06 +08:00
2024-12-27 17:16:31 +08:00
## Alertmanager implementations
2023-02-24 20:48:58 +08:00
2024-12-27 17:16:31 +08:00
The data source supports [Prometheus ](https://prometheus.io/ ) and [Grafana Mimir ](/docs/mimir/latest/ ) (default) implementations of Alertmanager. You can specify the implementation in the data source's Settings page.
2023-04-07 00:45:45 +08:00
2024-12-27 17:16:31 +08:00
When using Prometheus, you can manage silences in the Grafana Alerting UI. However, other Alertmanager resources such as contact points, notification policies, and templates are read-only because the Prometheus Alertmanager HTTP API does not support updates for these resources.
2023-04-07 00:45:45 +08:00
2024-12-27 17:16:31 +08:00
## Configure the data source
2023-04-07 00:45:45 +08:00
2024-12-27 17:16:31 +08:00
To configure basic settings for the data source, complete the following steps:
2023-04-07 00:45:45 +08:00
2024-12-27 17:16:31 +08:00
{{< docs / shared lookup = "alerts/add-alertmanager-ds.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2023-02-24 20:48:58 +08:00
2022-12-05 21:01:12 +08:00
## Provision the Alertmanager data source
2022-11-01 23:22:06 +08:00
2022-12-05 21:01:12 +08:00
You can provision Alertmanager data sources by updating Grafana's configuration files.
2024-05-28 22:17:49 +08:00
For more information on provisioning, and common settings available, refer to the [provisioning docs page ](ref:data-sources ).
2022-11-01 23:22:06 +08:00
2022-12-05 21:01:12 +08:00
Here is an example for provisioning the Alertmanager data source:
2022-11-01 23:22:06 +08:00
```yaml
apiVersion: 1
datasources:
- name: Alertmanager
type: alertmanager
url: http://localhost:9093
access: proxy
jsonData:
2023-02-24 20:48:58 +08:00
# Valid options for implementation include mimir, cortex and prometheus
2022-12-05 21:01:12 +08:00
implementation: prometheus
2023-02-24 20:48:58 +08:00
# Whether or not Grafana should send alert instances to this Alertmanager
handleGrafanaManagedAlerts: false
2022-11-01 23:22:06 +08:00
# optionally
basicAuth: true
basicAuthUser: my_user
secureJsonData:
basicAuthPassword: test_password
```