Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 31s
32 lines
698 B
YAML
32 lines
698 B
YAML
# 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
|