prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.56k stars 2.13k forks source link

Filtering in the web interface is not working correctly #3296

Open tdvgit opened 1 year ago

tdvgit commented 1 year ago

I'm applying a filter in "silences", for example

instance!="192.168.88.1"
or
instance=~"192.168.88.+"

I expect to see all other alerts, or alerts matching the condition. Instead, I see nothing but the message: "No silences found".

Environment

simonpasquier commented 1 year ago

The silences UI/API will only filter on silences not on alerts. Moreover if you provide a regex matcher, it will only return the silences that contain this exact matcher. E.g. a silence with instance="192.168.88.1" will not be returned if you enter instance=~"192.168.88.+" in the search box.

image

image

tdvgit commented 1 year ago

Ok, let this be a selection only by silences, but it is not logical not to display silences if they match the condition.
Moreover, conditions like "!=" and "=~" are displayed with green highlighting as correct, but at the same time they do not work in any cases other than an exact match. But searching for an exact match is like looking for a needle in a haystack.