When i put my config in the routing tree editor and try some routes they
almost always point to default instead of the one i want.
My config:
global:
smtp_hello: 'localhost'
route:
group_by: [instance,severity,job]
receiver: 'default'
routes:
- match:
alertname: 'MaintenanceMode'
receiver: 'blackhole'
- match:
alertname: 'TriggerWebhook'
#receiver: 'webhook'
receiver: 'sms-waard'
- match:
severity: warning
job: PAT
receiver: 'pat'
- match:
severity: warning
job: PROD
receiver: 'prod'
continue: true
- match:
severity: warning
job: PROD
receiver: 'webhook'
- match:
severity: critical
job: PAT
receiver: 'pat-crit'
- match:
severity: critical
job: PROD
receiver: 'prod-crit'
continue: true
- match:
severity: critical
job: PROD
receiver: 'sms-waard'
continue: true
- match:
severity: critical
job: PROD
receiver: 'webhook'
- match:
severity: info
receiver: 'info'
- match:
severity: atombomb
receiver: 'webhook'
receivers:
- name: 'default'
email_configs:
- to: 'danny.de.waard@somemaildomain' ##fill in your email
from: '[email protected]'
smarthost: 'localhost:25'
require_tls: false
- name: 'pat'
email_configs:
- to: 'danny.de.waard@somemaildomain' ##fill in your email
from: '[email protected]'
smarthost: 'localhost:25'
require_tls: false
- name: 'prod'
email_configs:
- to: 'functional.mailbox@somemaildomain, danny.de.waard@somemaildomain'
##fill in your email
from: '[email protected]'
smarthost: 'localhost:25'
require_tls: false
- name: 'pat-crit'
email_configs:
- to: 'somenamed@somemaildomain, 55536361@somemaildomain' ##fill in
your email
from: '[email protected]'
smarthost: 'localhost:25'
require_tls: false
- name: 'prod-crit'
email_configs:
- to: 'functional.mailbox@somemaildomain, danny.de.waard@somemaildomain'
##fill in your email
from: '[email protected]'
smarthost: 'localhost:25'
require_tls: false
- name: 'info'
email_configs:
- to: 'functional.mailbox@somemaildomain' ##fill in your email
from: '[email protected]'
smarthost: 'localhost:25'
require_tls: false
- name: 'sms-waard'
email_configs:
- to: '55536361@somemaildomain' ##fill in your email
from: somename@somemaildomain'
smarthost: 'localhost:25'
text: 'This is an example test for the sms-alert'
require_tls: false
- name: 'webhook'
webhook_configs:
- url: 'http://127.0.0.1:9000/hooks/sm9-inc'
- name: 'blackhole'
inhibit_rules:
- source_match:
alertname: MaintenanceMode
target_match_re:
severity: 'warning|critical'
If i put in the label set *{job="PROD" severity="critical"}* i would
suspect it will route to prod-crit, sms-waardd and webhook but it falls
back to default
--
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/cb1202d2-2256-4cac-8b54-65944d4ad3ce%40googlegroups.com.