apiVersion: 1
contactPoints:
  - orgId: 1
    name: system-monitor-default
    receivers:
      - uid: system-monitor-default
        type: email
        settings:
          addresses: root@localhost
  - orgId: 1
    name: agent-guard
    receivers:
      - uid: agent-guard
        type: webhook
        settings:
          url: http://127.0.0.1:9099/
          httpMethod: POST
disableResolveMessage: false
policies:
  - orgId: 1
    receiver: system-monitor-default
    group_by:
      - grafana_folder
      - alertname
    group_wait: 30s
    group_interval: 5m
    repeat_interval: 4h
    routes:
      - receiver: agent-guard
        group_by:
          - alertname
        group_wait: 30s
        group_interval: 5m
        repeat_interval: 6h
        object_matchers:
          - ['notify', '=', 'desktop']
