9f8349f9a32bce9e1db0e659fe6fef36acee5d65
[demo.git] / vnfs / DAaaS / operator / charts / prometheus-operator / templates / prometheus / 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 # Do not change in-place! In order to change this file first read following link:
3 # https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
4 {{- if and .Values.defaultRules.create .Values.defaultRules.rules.general }}
5 apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
6 kind: PrometheusRule
7 metadata:
8   name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "general.rules" | trunc 63 | trimSuffix "-" }}
9   labels:
10     app: {{ template "prometheus-operator.name" . }}
11 {{ include "prometheus-operator.labels" . | indent 4 }}
12 {{- if .Values.defaultRules.labels }}
13 {{ toYaml .Values.defaultRules.labels | indent 4 }}
14 {{- end }}
15 {{- if .Values.defaultRules.annotations }}
16   annotations:
17 {{ toYaml .Values.defaultRules.annotations | indent 4 }}
18 {{- end }}
19 spec:
20   groups:
21   - name: general.rules
22     rules:
23     - alert: TargetDown
24       annotations:
25         message: '{{`{{ $value }}`}}% of the {{`{{ $labels.job }}`}} targets are down.'
26       expr: 100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10
27       for: 10m
28       labels:
29         severity: warning
30     - alert: Watchdog
31       annotations:
32         message: 'This is an alert meant to ensure that the entire alerting pipeline is functional.
33
34           This alert is always firing, therefore it should always be firing in Alertmanager
35
36           and always fire against a receiver. There are integrations with various notification
37
38           mechanisms that send a notification when this alert is not firing. For example the
39
40           "DeadMansSnitch" integration in PagerDuty.
41
42           '
43       expr: vector(1)
44       labels:
45         severity: none
46 {{- end }}