Skip to content

How to define routes and matchers in AlertmanagerConfigs

Article Number: 000021083

Environment

Rancher 2.x
Rancher Monitoring enabled

Situation

Using the wrong syntax can stop alerts being sent correctly.

Resolution

In a case where we want to :
  * Catch all instances where alertname = foo 
  * Send them to the receiver "myReceiver" the correct syntax would be:

routes:
  - matchers:
    - name: alertname
      value: foo
      receiver: 'myReceiver'
      regex: false