apiVersion: v1
data: {}
kind: Secret
metadata:
  name: alertmanager-main
  namespace: kubesphere-monitoring-system
stringData:
  alertmanager.yaml: |-
    "global":
      "resolve_timeout": "5m"
    "inhibit_rules":
    - "equal":
      - "namespace"
      - "alertname"
      "source_match":
        "severity": "critical"
      "target_match_re":
        "severity": "warning|info"
    - "equal":
      - "namespace"
      - "alertname"
      "source_match":
        "severity": "warning"
      "target_match_re":
        "severity": "info"
    "receivers":
    - "name": "Default"
    - "name": "Watchdog"
    - "name": "Critical"
    - "name": "prometheus"
      "webhook_configs":
      - "url": "http://notification-manager-svc.kubesphere-monitoring-system.svc:19093/api/v2/alerts"
    - "name": "event"
      "webhook_configs":
      - "send_resolved": false
        "url": "http://notification-manager-svc.kubesphere-monitoring-system.svc:19093/api/v2/alerts"
    - "name": "auditing"
      "webhook_configs":
      - "send_resolved": false
        "url": "http://notification-manager-svc.kubesphere-monitoring-system.svc:19093/api/v2/alerts"
    "route":
      "group_by":
      - "namespace"
      - "alertname"
      "group_interval": "5m"
      "group_wait": "30s"
      "receiver": "Default"
      "repeat_interval": "12h"
      "routes":
      - "match":
          "alertname": "Watchdog"
        "receiver": "Watchdog"
      - "match":
          "severity": "critical"
        "receiver": "Critical"
      - "match":
          "alerttype": ""
        "receiver": "prometheus"
      - "group_interval": "30s"
        "match":
          "alerttype": "event"
        "receiver": "event"
      - "group_interval": "30s"
        "match":
          "alerttype": "auditing"
        "receiver": "auditing"
type: Opaque