Scrape Immich PostgreSQL metrics with Prometheus

This commit is contained in:
2026-10-22 10:58:15 +02:00
parent 955146c79d
commit 90c01dea89
3 changed files with 23 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster.yaml
- cluster.yaml
- pod-monitor.yaml
+17
View File
@@ -0,0 +1,17 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: immich-postgresql-prometheus
namespace: immich
labels:
release: prometheus
spec:
namespaceSelector:
matchNames:
- immich
selector:
matchLabels:
cnpg.io/cluster: immich-postgresql
cnpg.io/podRole: instance
podMetricsEndpoints:
- port: metrics
+4
View File
@@ -31,9 +31,13 @@ spec:
kind: Deployment
- group: networking.k8s.io
kind: Ingress
- group: monitoring.coreos.com
kind: PodMonitor
- group: monitoring.coreos.com
kind: ServiceMonitor
- group: postgresql.cnpg.io
kind: Cluster
- group: traefik.io
kind: IngressRoute
- group: traefik.io
kind: ServersTransport