kind: ConfigMap
apiVersion: v1
metadata:
    name: alertmanager-config
    namespace: openfaas
    selfLink: /api/v1/namespaces/openfaas/configmaps/alertmanager-config
    uid: 48044016-3986-11ea-b115-42010a8001d6
    resourceVersion: '2007013'
    creationTimestamp: '2020-01-18T00:05:48Z'
    labels:
        app: openfaas
        chart: openfaas-5.4.1
        component: alertmanager-config
        heritage: Helm
        release: openfaas
data:
    alertmanager.yml: |
        route:
          group_by: ['alertname', 'cluster', 'service']
          group_wait: 5s
          group_interval: 10s
          repeat_interval: 30s
          receiver: scale-up
          routes:
          - match:
              service: gateway
              receiver: scale-up
              severity: major

        inhibit_rules:
        - source_match:
            severity: 'critical'
          target_match:
            severity: 'warning'
          equal: ['alertname', 'cluster', 'service']

        receivers:
        - name: 'scale-up'
          webhook_configs:
            - url: http://gateway.openfaas:8080/system/alert
              send_resolved: true
              http_config:
                basic_auth:
                  username: admin
                  password_file: /var/secrets/basic-auth-password

