Scrape Immich PostgreSQL metrics with Prometheus
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster.yaml
|
||||
- cluster.yaml
|
||||
- pod-monitor.yaml
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user