feat(metrics): add basic prometheus metrics, cluster scraping

This commit is contained in:
2025-10-30 14:18:55 +01:00
parent 912697b046
commit 99384aeb0a
3 changed files with 34 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: fastapi-servicemonitor
labels:
release: prometheus
spec:
selector:
matchLabels:
app: {{ .Values.app.name }}
endpoints:
- port: 8000
path: /metrics
interval: 15s