1.9 KiB
aliases | description | keywords | menuTitle | title | weight | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Guide for using Alertmanager as a data source in Grafana |
|
Alertmanager | Alertmanager data source | 150 |
Alertmanager data source
Grafana includes built-in support for Alertmanager implementations in Prometheus and Mimir. Once you add it as a data source, you can use the Grafana Alerting UI to manage silences, contact points, and notification policies. To switch between Grafana and any configured Alertmanager data sources, you can select your preference from a drop-down option in those databases' data source settings pages.
Alertmanager implementations
The data source supports Prometheus and Grafana Mimir (default) implementations of Alertmanager. You can specify the implementation in the data source's Settings page. When using Prometheus, contact points and notification policies are read-only in the Grafana Alerting UI, because it doesn't support updates to the configuration using HTTP API.
Provision the Alertmanager data source
You can provision Alertmanager data sources by updating Grafana's configuration files. For more information on provisioning, and common settings available, refer to the [provisioning docs page]({{< relref "../../administration/provisioning/#datasources" >}}).
Here is an example for provisioning the Alertmanager data source:
apiVersion: 1
datasources:
- name: Alertmanager
type: alertmanager
url: http://localhost:9093
access: proxy
jsonData:
# Options for implementation include prometheus and mimir
implementation: prometheus
# optionally
basicAuth: true
basicAuthUser: my_user
secureJsonData:
basicAuthPassword: test_password