Add Immich Prometheus alerts
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: immich
|
||||
namespace: immich
|
||||
spec:
|
||||
groups:
|
||||
- name: immich
|
||||
rules:
|
||||
- alert: ImmichServerUnavailable
|
||||
expr: kube_deployment_status_replicas_available{namespace="immich",deployment="immich-server"} < 1
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: Immich server has no available replicas
|
||||
description: No Immich server pod has been available for five minutes.
|
||||
- alert: ImmichMachineLearningUnavailable
|
||||
expr: kube_deployment_status_replicas_available{namespace="immich",deployment="immich-machine-learning"} < 1
|
||||
for: 15m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: Immich machine-learning service has no available replicas
|
||||
description: Immich machine learning has been unavailable for fifteen minutes.
|
||||
- alert: ImmichValkeyUnavailable
|
||||
expr: kube_deployment_status_replicas_available{namespace="immich",deployment="immich-valkey"} < 1
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: Immich Valkey has no available replicas
|
||||
description: Immich's dedicated Valkey instance has been unavailable for five minutes.
|
||||
- alert: ImmichPostgreSQLMetricsUnavailable
|
||||
expr: absent(cnpg_collector_up{namespace="immich",cluster="immich-postgresql"}) or max(cnpg_collector_up{namespace="immich",cluster="immich-postgresql"}) < 1
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: Immich PostgreSQL is unavailable
|
||||
description: CloudNativePG metrics for the Immich cluster have been unavailable for five minutes.
|
||||
@@ -1,4 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- library-storage.yaml
|
||||
- alerts.yaml
|
||||
- library-storage.yaml
|
||||
|
||||
Reference in New Issue
Block a user