Therefore you need to include your webhook receiver in some routes too.
Here's one option:
routes:
# Send everything to webhook
- receiver: 'webhook'
continue: true
- match:
severity: warning
receiver: 'mail'
- match:
severity: critical
receiver: 'all'
Or maybe you only want webhook to be used for alerts which *don't* match
the E-mail, in which case you can move "receiver: webhook" to the end.
Another option is to put your webhook_config under other receivers as
appropriate:
receivers:
- name: 'default'
webhook_configs:
- url: 'http://127.0.0.1:9000'
- name: 'mail'
email_configs:
- send_resolved: true
to: [email protected] ##fill in your email
require_tls: false
webhook_configs:
- url: 'http://127.0.0.1:9000'
- name: 'all'
email_configs:
- send_resolved: true
to: [email protected] ##fill in your email
require_tls: false
- send_resolved: true
to: "[email protected]" ##fill in your phonenumbers
require_tls: false
webhook_configs:
- url: 'http://127.0.0.1:9000'
--
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/4a649acd-793d-464b-be1b-4e92f3e2d357%40googlegroups.com.