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 .

Note: Currently, the Cortex implementation of Prometheus Alertmanager is required to edit rules.

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:

  1. apiVersion: 1
  2. datasources:
  3. - name: Alertmanager
  4. type: alertmanager
  5. url: http://localhost:9090
  6. access: proxy
  7. # optionally
  8. basicAuth: true
  9. basicAuthUser: my_user
  10. basicAuthPassword: test_password