Skip to content

AlertManager donot send alert to webhook #700

Answered by luca-amato
luca-amato asked this question in Q&A
Discussion options

You must be logged in to vote

I found the problem.
When there are more webhook in the alertmanager routes you mast to use match-_re option in this way:

  • match_re:
    alertname: ".*"
    receiver: 'webhook'
    continue: true

one for each webhook destination that you need to manage

I suggest to insert some alertmanager.yml example in the github in order to solve some alertmanager configuration misleading

here is my correct yml

lobal:
smtp_require_tls: true
route:
receiver: 'webhook'
group_by: ['alertname']
group_wait: 30s
group_interval: 1m
repeat_interval: 1m
routes:

  • match_re:
    alertname: ".*"
    receiver: 'srv_notifier'
    continue: true
  • match_re:
    alertname: ".*"
    receiver: 'webhook'
    continue: true
    receivers:
  • name: webhook
    webhook_co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adnanh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant