You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
744 B
YAML
25 lines
744 B
YAML
{{- if .Values.domainMonitoring.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PrometheusRule
|
|
metadata:
|
|
labels:
|
|
prometheus: kube-prometheus-stack-prometheus
|
|
role: alert-rules
|
|
release: kube-prometheus-stack
|
|
name: domain-monitoring
|
|
spec:
|
|
groups:
|
|
- name: "domain_monitoring.rules"
|
|
rules:
|
|
{{- range $domains := .Values.domainMonitoring.domains }}
|
|
- alert: domain_not_reachable_{{ $domains | trimAll "https://" }}
|
|
for: 5m
|
|
labels:
|
|
team: alerting-nso-mobene
|
|
severity: critical
|
|
expr: probe_success{instance="{{ $domains }}"} != 1
|
|
annotations:
|
|
message: "{{ $domains }} not reachable, plz check"
|
|
{{- end }}
|
|
{{- end }}
|