alertmanager/ui/app
George Robinson 5979dff9dc
Show muted alerts in Alert Groups API (#3797)
This commit updates /api/v2/alerts/groups to show if an alert is
suppressed from one or more active or mute time intervals. While
the muted by field can be found in /api/v2/alerts, it is not
used here because /api/v2/alerts does not take aggregation
or routing into consideration.

It also updates the UI to support filtering muted alerts via the
Muted checkbox.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-10-23 16:42:21 +01:00
..
lib
review Integrate elm-review in CI (#2555) 2021-04-27 07:14:00 +02:00
src Show muted alerts in Alert Groups API (#3797) 2024-10-23 16:42:21 +01:00
tests Show muted alerts in Alert Groups API (#3797) 2024-10-23 16:42:21 +01:00
.gitignore chore: Let git ignore temporary files for ui/app 2021-10-24 21:17:37 +09:00
CONTRIBUTING.md
Makefile ui: Force using linux/amd64 when using docker (#3807) 2024-04-25 17:39:05 +01:00
README.md chore: remove repetitive words (#3804) 2024-04-25 18:54:53 +02:00
elm.json
favicon.ico
index.html Allow first day of week to be Sunday or Monday (#3093) 2022-10-19 18:01:24 +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 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