Fix Collection Service Helm charts package
[demo.git] / vnfs / DAaaS / prometheus-operator / templates / alertmanager / rules / general.rules.yaml
1 # Generated from 'general.rules' group from https://raw.githubusercontent.com/coreos/prometheus-operator/master/contrib/kube-prometheus/manifests/prometheus-rules.yaml
2 {{- if and .Values.defaultRules.create }}
3 apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
4 kind: PrometheusRule
5 metadata:
6   name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "general.rules" | trunc 63 | trimSuffix "-" }}
7   labels:
8     app: {{ template "prometheus-operator.name" . }}
9 {{ include "prometheus-operator.labels" . | indent 4 }}
10 {{- if .Values.defaultRules.labels }}
11 {{ toYaml .Values.defaultRules.labels | indent 4 }}
12 {{- end }}
13 {{- if .Values.defaultRules.annotations }}
14   annotations:
15 {{ toYaml .Values.defaultRules.annotations | indent 4 }}
16 {{- end }}
17 spec:
18   groups:
19   - name: general.rules
20     rules:
21     - alert: TargetDown
22       annotations:
23         message: '{{`{{ $value }}`}}% of the {{`{{ $labels.job }}`}} targets are down.'
24       expr: 100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10
25       for: 10m
26       labels:
27         severity: warning
28     - alert: DeadMansSwitch
29       annotations:
30         message: This is a DeadMansSwitch meant to ensure that the entire alerting pipeline is functional.
31       expr: vector(1)
32       labels:
33         severity: none
34 {{- end }}