Hello all !
I am using prometheus and alert manager for more than one year now and totally appreciated it.
I'm trying to override default alert email by creating specific routes like this :
route:
group_by: ['alertname']
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'email'
routes:
- match_re:
alertname: WEBLOGIC-wls_threadpool_hogging_thread_count
instance: (ljade)*
receiver: mailJADE
- match_re:
alertname: LINUX-node_filesystem_nfs_used_percent
instance: ljade*
receiver: mailJADE
receivers:
- name: 'email'
email_configs:
- to: mymail
- name: 'mailJADE'
email_configs:
- to: 'mymail, othersemail'
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'dev', 'instance']
The alerts arrive only on the main mail 'email' and never on 'mailJADE' while alerts with an instance name beginning with ljade are generated
I tried different syntax with parenthesis and also old version match deprecated without success.
Thanks in advance for your help
Regards
Frederic