Match regex operator broken?

Hello community!

The RegEx expression .* should match anything. While applying this expression in combination with the operator =~ in the New Silence area “Affected alert instances” stays empty. There are definitely alerts firing and these can be matched with the full alertname.

works fine
alertname=FULLALERTNAME
alertname=~FULLALERTNAME
alertname!=WRONGALERTNAME
alertname!~WRONGALERTNAME

do not match
alertname=~.*
alertname=~FULLALERTN.*

Grafana 9.0.2 OSS, Alertmanger 0.24.0

Kind regards

1 Like

Same issue, Grafana 8.5.9


image

Hi,
Any progress? It seams to me that this is still broken in grafana 11 :frowning:

Hi folks! I can’t seem to reproduce this issue on Grafana 11. However, be careful using .* as it also matches missing labels. You want .+.

Facing similar issue for “regex like” silence in grafana, any solution?