apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: lidarr2 namespace: {{ .Release.Namespace }} labels: app.kubernetes.io/name: lidarr2 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: lidarr2 rules: - alert: ExportarrAbsent annotations: description: Lidarr Exportarr has disappeared from Prometheus service discovery. summary: Exportarr is down. expr: | absent(up{job=~".*lidarr2.*"} == 1) for: 5m labels: severity: critical - alert: LidarrDown annotations: description: Lidarr service is down. summary: Lidarr is down. expr: | lidarr_system_status{job=~".*lidarr2.*"} == 0 for: 5m labels: severity: critical