Regex - escaped characters not matching in alert manager

This issue has been tracked since 2022-02-01.

Hi,

We upgraded to 0.95 this morning, and following on from #3881, we're now seeing silences not matching correctly when special chars are escaped in the regex.

Example - Top matcher is an expired alert, and bottom is a new remaking of it that's failing to match:

image

erachenko23 wrote this answer on 2022-02-01

Have some problem with character escrape:

Alert:

image

Trying to create silence:

image

Check alert in alertmanager:

image

smbambling wrote this answer on 2022-02-02

Same issues as above, this unfortunately total breaks the usage of silences management for us as we have many labels with - or . in them that get escaped.

xkilian wrote this answer on 2022-02-02

Same here, reverting to 0.94.

prymitive wrote this answer on 2022-02-02

Should be fixed via #3945

heapdavid wrote this answer on 2022-02-03

Thanks, we've upgraded to v0.96 and given it a try.

While new silences seem to work well, recreating expired silences still seems to have the same problem.

smbambling wrote this answer on 2022-02-03

@heapdavid with this issue being closed this comment might be lost. If you still have .96 deployed would you mind creating another issue and linking this ?

If not I'll try to deploy and instance and write up a new issue for tracking.

prymitive wrote this answer on 2022-02-03

#3947 should fix editing

heapdavid wrote this answer on 2022-02-09

@prymitive Thanks for sorting that out, we've had no problems with new or edited silences until today, a colleague uses the filtering in the top bar to create silences and that still seems to have the issue:

image

image

image

image

It also looks to be adding an extra .* either side of the regex that we're entering, but that may be a different issue.

prymitive wrote this answer on 2022-02-13

#3980 should fix that

heapdavid wrote this answer on 2022-02-18

Hi, thanks for all the work on this so far - I'm now seeing edited/recreated alerts failing again with v0.98:

image

prymitive wrote this answer on 2022-02-19

Raised another PR - #3997

More Details About Repo
Owner Name prymitive
Repo Name karma
Full Name prymitive/karma
Language TypeScript
Created Date 2018-09-09
Updated Date 2023-03-17
Star Count 1921
Watcher Count 33
Fork Count 166
Issue Count 2

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date