kind: ConfigMap
apiVersion: v1
metadata:
  name: prometheus-example-rules
data:
  test.rules.yaml: |+
    groups:
    - name: ./test.rules
      rules:
      - alert: TestAlert
        expr: vector(0)
        for: 5m
        labels:
          severity: '{{ if eq $labels.severity "" }}warning{{ else }}{{ $labels.severity }}{{ end }}'
        annotations:
          description: "check failed"
