AlertManager Silence Regex

866 views
Skip to first unread message

Adso Castro

unread,
Apr 4, 2020, 12:54:47 PM4/4/20
to Prometheus Users

Hi all,

I'm trying to create a silence using regex from the AlertManager UI and I want to silence alarms from deployments (from my Kubernetes cluster) like below:

new-batch-stream-g1343
super-batch-pipeline-g1273

The match would be the word "batch". I've tried a few times using the UI, but the preview didn't catch any active alert, so, I might be doing something wrong.

Here's the UI I'm talking about and thank you in advance:

36153375-54baf550-10ce-11e8-8de7-2dd2efd1f16b.png

Christian Hoffmann

unread,
Apr 4, 2020, 1:00:30 PM4/4/20
to Adso Castro, Prometheus Users
Hi,

On 4/4/20 6:54 PM, Adso Castro wrote:
> I'm trying to create a silence using regex from the AlertManager UI and
> I want to silence alarms from deployments (from my Kubernetes cluster)
> like below:
>
> *new-batch-stream-**g1343*
> *super-batch-pipeline-g1273*
> *
> *
> The match would be the word "batch". I've tried a few times using the
> UI, but the preview didn't catch any active alert, so, I might be doing
> something wrong.
>
> Here's the UI I'm talking about and thank you in advance:
From the screenshot I don't see what you are trying to match. So I'm
guessing:

Name: stream
Value: .*batch.*
Regex: [x]

If this doesn't work, then we'd need some more details what you've tried
exactly.

Kind regards,
Christian


Reply all
Reply to author
Forward
0 new messages