DEV-824: added promeRules for domainmonitoring

cherry-pick-9c6aec87
friedrich goerz 3 years ago
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 }}

@ -1,3 +1,11 @@
domainMonitoring:
enabled: true
domains:
- https://egeld24.de
- https://kfz-wige.thgquotenservice.de
- https://prodnso-keycloak-01.smardigo.digital/auth/
- https://connect-cusprod-prodwork01.smardigo.digital
# minio tenant # minio tenant
tenant: tenant:
tenant: tenant:

Loading…
Cancel
Save