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

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/52672130-29a3-4959-a025-a7ee3e513c0dn%40googlegroups.com.

Reply via email to