DEV-824: added promeRules for domainmonitoring
parent
ac5c4c96e2
commit
befaed74d0
@ -0,0 +1,24 @@
|
|||||||
|
{{- 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 }}
|
||||||
Loading…
Reference in New Issue