This is an implementation of an Alertmanager plugin for Grafana version 7.0 and up.
The Prometheus Alertmanager handles alerts sent by client applications such as the Prometheus server.
It is very helpful to use it as a data source for grafana.
This data-source implementation support both the alertmanager V2 API and the new Grafana 7.0 API.
Typically, an alert would have a severity label. The implementation does not make any assumption on the severity label, but if all values of the label are number, it will be reported as a number, which means that if you stick to numbers, you can use it with graphs and not only with tables. There are no number-to-text mapping done in this plugin. Instead, you can do it on the Dashboard.
- Install dependencies
yarn install
- Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
- Build plugin in production mode
yarn build
Currently, the only plugin configuration is the alertmanger address (ip and port).
Currently, you can only have one filter in the query.