convert to app template

This commit is contained in:
2024-06-22 22:29:26 -05:00
parent cb979c1004
commit c851083d67
34 changed files with 1066 additions and 420 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: radarr5
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: radarr5
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
groups:
- name: radarr5
rules:
- alert: ExportarrAbsent
annotations:
description: Radarr5 Exportarr has disappeared from Prometheus
service discovery.
summary: Exportarr is down.
expr: |
absent(up{job=~".*radarr5.*"} == 1)
for: 5m
labels:
severity: critical
- alert: Radarr5Down
annotations:
description: Radarr5 service is down.
summary: Radarr5 is down.
expr: |
radarr5_system_status{job=~".*radarr5.*"} == 0
for: 5m
labels:
severity: critical