---
kind: ConfigMap
apiVersion: v1
metadata:
  name: rules-config
data:
  rules.yml: |-
    groups:
    - name: AllInstances
      rules:
      - alert: InstanceDown
        expr: up == 0
        for: 1m
        annotations:
            title: 'Instance {{ $labels.instance }} down'
            description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minute.'
        labels:
            severity: 'critical'