Files
infrastructure/clusters/cl01tl/applications/radarr5/templates/prometheus-rule.yaml
2025-02-25 12:28:58 -06:00

35 lines
1.0 KiB
YAML

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