Files
homelab/k8s-ng/core/prom-stack/service-monitors.yaml
T

31 lines
698 B
YAML
Raw Normal View History

2026-10-07 18:35:17 +01:00
# Monitors for core services that already exist before this stack is installed.
# Later application waves keep their ServiceMonitors next to the applications.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: auth-proxy
namespace: keycloak
spec:
selector:
matchLabels:
app: auth-proxy
endpoints:
- port: http
path: /metrics
interval: 30s
scrapeTimeout: 10s
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: postgresql
namespace: psql
spec:
selector:
matchLabels:
cnpg.io/cluster: main
podMetricsEndpoints:
- port: metrics
path: /metrics
interval: 30s
scrapeTimeout: 10s