I'm trying to set receivers section in alertmanager.yaml like this:

*- name: alerta*
*  webhook_configs:*
*  - url: https://alerta/api/webhooks/prometheus*
*    send_resolved: true*
*  slack_configs:*
*  - api_url: https://hooks.slack.com/abc123 *
*    channel: "#DC30-info"*

*- name: slack*
*  slack_configs:*
*  - api_url: https://hooks/slack/def456 *
*    channel: "#DC30-warning"*

*  webhook_configs:*
*  - url: https://alerta/api/webhooks/prometheus*
*    send_resolved: true*

*- name: pagerduty*
*  routing_key: ...*

In routing section than:











*  routes:  - match:      severity: info    receiver: alerta  - match:      
severity: critical    receiver: pagerduty  - match:     severity: warning  
 receiver: slack*
Amtool config check is repoprting this 
error  FAILED: notification config name "alerta" is  not unique

Main reason for not using  *continue* in routes section is duplication of 
alerts in alertmanager webui and this article  
https://www.robustperception.io/sending-alert-notifications-to-multiple-destinations
  

Thanks   

-- 
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/b59dcbea-7c97-41ce-8ea2-93b9dabfa33dn%40googlegroups.com.

Reply via email to