alertmanager/ui/app
masataka b33a9366dd Textarea with auto resize in UI (#1893)
* textarea with auto resize

Signed-off-by: mizukoshi-m <mizukoshi@mfeed.ad.jp>

* implement resize textarea on type

Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>

* remove scrollHeight

Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>

* Add new function for textarea field

Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>

* remove unnecessary code

Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>
2019-06-12 08:54:16 +02:00
..
lib Use elm reactor for dev assets (#1133) 2017-12-10 21:59:15 +01:00
src Textarea with auto resize in UI (#1893) 2019-06-12 08:54:16 +02:00
tests update Tests to account for "active" param 2019-05-10 09:57:27 -04: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 set ELM_HOME for the elm-env container 2019-03-11 10:45:45 -05:00
README.md Add filtering based off "active" query param 2019-05-08 12:05:18 -04:00
elm.json ui: Move /status & /silences to API v2 2018-11-15 13:24:26 +01:00
favicon.ico Add favicon (#839) 2017-06-01 10:13:20 +02:00
index.html Properly serialize boolean 2019-05-11 20:28:33 +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