0

我的警报管理器配置:

apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
  name: configlinkflowalertmanager
  labels:
    alertmanagerConfig: linkflowAlertmanager
spec:
  route:
    groupBy: ['alertname']
    groupWait: 30s
    groupInterval: 5m
    repeatInterval: 12h
    receiver: 'webhook'
    matchers:
      - name: alertname
        value: KubePodCrashLooping
      - name: namespace
        value: linkflow
  receivers:
  - name: 'webhook'
    webhookConfigs:
    - url: 'http://xxxxx:1194/'

网络显示:命名空间成为监控?为什么?并且只有在监控中的警报才能发出我可以发送其他命名空间或所有命名空间警报吗?

route:
  receiver: Default
  group_by:
  - namespace
  continue: false
  routes:
  - receiver: monitoring-configlinkflowalertmanager-webhook
    group_by:
    - namespace
    match:
      alertname: KubePodCrashLooping
      namespace: monitoring
    continue: true
    group_wait: 30s
    group_interval: 5m
    repeat_interval: 12h
4

0 回答 0