0

I'm using the next config:

apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
  name: slack-alertmanager
  labels:
    alertmanagerConfig: slack
  namespace: default
spec:
  route:
    continue: false
    groupBy: ['alertname']
    groupWait: 30s
    groupInterval: 5m
    repeatInterval: 12h
    receiver: 'slack-notifications-staging'
    matchers:
      - name: severity
        regex: true
        value: "warning|critical"
  receivers:
  - name: 'slack-notifications-staging'
    slackConfigs:
    - sendResolved: true
      apiURL:
        name: slack-staging
        key: url
      channel: '#alert-notifications-staging'
      iconURL: https://avatars3.githubusercontent.com/u/3380462
      title: '{{ template "slack_alert_title" . }}'
      text: '{{ template "slack_alert_text" . }}'

But as output I'm getting this:

  routes:
  - receiver: default/slack-alertmanager/slack-notifications-staging
    group_by:
    - alertname
    match_re:
      severity: warning|critical
    matchers:
    - namespace="default"
    continue: true
    group_wait: 30s
    group_interval: 5m
    repeat_interval: 12h

Is there any option to to set reciever/continue to false? Because of that all my alerts to specific namespace going to the next alert chain

Roman
  • 359
  • 4
  • 7

0 Answers0