Using regex in alert conditions


I created an alert that notifies me when I have unhealhy AWS load balancers. What I want is to use a regex so that I do not get notified when a preproduction load balancer is unhealthy. One idea is to filter on the LoadBalancerName variable.

I can do just that when creating a silence.


Do you know how I can do that when creating/editing an alert ? It seems filter doesn’t have the regex option…

I would prefer not to rely on silences because I have to renew them.

Any help would be greatly appreciated !