Alertmanager data source
Grafana includes built-in support for Prometheus Alertmanager. It is presently in alpha and not accessible unless alpha plugins are enabled in Grafana settings. Once you add it as a data source, you can use the Grafana alerting UI to manage silences, contact points as well as notification policies. A drop-down option in these pages allows you to switch between Grafana and any configured Alertmanager data sources.
Prometheus and Cortex (default) implementations of Alertmanager are supported. You can specify implementation in the data source settings page. In case of Prometheus contact points and notification policies are read-only in the Grafana alerting UI, as it does not support updating configuration via HTTP API.
Provision the Alertmanager data source
Configure the Alertmanager data sources by updating Grafana’s configuration files. For more information on how it works and the settings available, refer to the provisioning docs page.
Here is an example for provisioning the Alertmanager data source:
apiVersion: 1 datasources: - name: Alertmanager type: alertmanager url: http://localhost:9090 access: proxy jsonData: implementation: 'prometheus' # alternatively 'cortex' # optionally basicAuth: true basicAuthUser: my_user basicAuthPassword: test_password
Related Grafana resources
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.