Alertmanager config issue - notification config name "..." is not unique

24 views
Skip to first unread message

dc3o

unread,
Dec 16, 2020, 5:29:02 AM12/16/20
to Prometheus Users
I'm trying to set receivers section in alertmanager.yaml like this:

- name: alerta
  webhook_configs:
    send_resolved: true
  slack_configs:
    channel: "#DC30-info"
- name: slack
  slack_configs:
    channel: "#DC30-warning"
  webhook_configs:
    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   

L.walid (PowerM)

unread,
Dec 16, 2020, 6:36:51 AM12/16/20
to dc3o, Prometheus Users
Hi,

Can you paste the whole alert config file

Sent from my iPhone

> On Dec 16, 2020, at 11:29 AM, dc3o <deln...@gmail.com> wrote:
>
> FAILED: notification config name
Reply all
Reply to author
Forward
0 new messages