alertmanager/ui/app
Andrey Kuzmin b0083ec55d
Negative matchers on the Silence form page (#2488)
* Support negative matchers in silence form

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Extract url manipulation from filterBar

This is needed for silence form, where we don't have to
manipulate the url.

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Only show the silence button in the alert list

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Validate matchers

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Improve silence form layout

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Fix for editing existing silence

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Fix for resetting the form

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>

* Update assets_vfsdata.go

Signed-off-by: Andrey Kuzmin <unsoundscapes@gmail.com>
2021-03-01 16:40:32 +01:00
..
lib Add date picker to silence form views (#2262) 2020-07-24 14:52:29 +02:00
src Negative matchers on the Silence form page (#2488) 2021-03-01 16:40:32 +01:00
tests Negative matchers on the Silence form page (#2488) 2021-03-01 16:40:32 +01:00
.gitignore Add filtering based off "active" query param 2019-05-08 12:05:18 -04:00
CONTRIBUTING.md Add signed off to commit (#1766) 2019-02-25 11:04:42 +01:00
Makefile .circleci/config.yml: collect test metadata (#2211) 2020-06-04 09:49:32 +02:00
README.md Add filtering based off "active" query param 2019-05-08 12:05:18 -04:00
elm.json ui: update versions for the Elm components (#2482) 2021-02-09 15:47:54 +01:00
favicon.ico Add favicon (#839) 2017-06-01 10:13:20 +02:00
index.html setting favicon.ico dinamically (#2392) 2020-10-15 11:10:48 +02:00

README.md

Alertmanager UI

This is a re-write of the Alertmanager UI in elm-lang.

Usage

Filtering on the alerts page

By default, the alerts page only shows active (not silenced) alerts. Adding a query string containing the following will additionally show silenced alerts.

http://alertmanager/#/alerts?silenced=true

In order to to show only silenced alerts, update the query string to hide active alerts.

http://alertmanager/#/alerts?silenced=true&active=false

The alerts page can also be filtered by the receivers for a page. Receivers are configured in Alertmanager's yaml configuration file.

http://alertmanager/#/alerts?receiver=backend

Filtering based on label matchers is available. They can easily be added and modified through the UI.

http://alertmanager/#/alerts?filter=%7Bseverity%3D%22warning%22%2C%20owner%3D%22backend%22%7D

These filters can be used in conjunction.

Filtering on the silences page

Filtering based on label matchers is available. They can easily be added and modified through the UI.

http://alertmanager/#/silences?filter=%7Bseverity%3D%22warning%22%2C%20owner%3D%22backend%22%7D

Note on filtering via label matchers

Filtering via label matchers follows the same syntax and semantics as Prometheus.

A properly formatted filter is a set of label matchers joined by accepted matching operators, surrounded by curly braces:

{foo="bar", baz=~"quu.*"}

Operators include:

  • =
  • !=
  • =~
  • !~

See the official documentation for additional information: https://prometheus.io/docs/querying/basics/#instant-vector-selectors