Update README.md
This commit is contained in:
parent
1b416e9394
commit
2243546edf
48
README.md
48
README.md
|
@ -6,27 +6,59 @@ This is a re-write of the Alertmanager UI in [elm-lang](http://elm-lang.org/).
|
|||
|
||||
### Filtering on the alerts page
|
||||
|
||||
By default, the alerts page only shows active (not silenced) alerts. Adding a query string containing will additionally show silenced alerts.
|
||||
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
|
||||
```
|
||||
|
||||
Filter based on label matching are available.
|
||||
|
||||
```
|
||||
http://alertmanager/#/alerts?filter=backend
|
||||
```
|
||||
|
||||
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?filter=severity%3Dwarning%2C%20owner%3Dbackend%2C%20env%3Dstaging
|
||||
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
|
||||
|
||||
|
||||
## Requirements
|
||||
|
||||
- Go installed (https://golang.org/dl/)
|
||||
|
|
Loading…
Reference in New Issue