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") }}
8 name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "general.rules" | trunc 63 | trimSuffix "-" }}
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 }}
15 {{- if .Values.defaultRules.annotations }}
17 {{ toYaml .Values.defaultRules.annotations | indent 4 }}
25 message: '{{`{{ $value }}`}}% of the {{`{{ $labels.job }}`}} targets are down.'
26 expr: 100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10
32 message: 'This is an alert meant to ensure that the entire alerting pipeline is functional.
34 This alert is always firing, therefore it should always be firing in Alertmanager
36 and always fire against a receiver. There are integrations with various notification
38 mechanisms that send a notification when this alert is not firing. For example the
40 "DeadMansSnitch" integration in PagerDuty.