feat: add monitoring resources (alerts, dashboard, service-monitor)

- PrometheusRule with 16 alerts across 6 groups:
  availability, ingest, query, dependencies, resources, errors
- Grafana dashboard (ConfigMap, sidecar auto-discovery):
  8 rows covering overview, ingest pipeline, query perf,
  context retrieval, database, relevance, error breakdown,
  app resources, logs
- ServiceMonitor moved from k8s/app/ to k8s/monitoring/
- Dashboard generator script (Python, matches homelab pattern)
- Separate k8s/monitoring/ path for ArgoCD Application
- sqlx::migrate!() added to server startup for seamless migrations
This commit is contained in:
2026-09-16 11:52:47 +09:00
parent 6d74ba5d93
commit 8902e1b6fa
6 changed files with 614 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: poimen-memory
namespace: monitoring
labels:
release: kube-prometheus-stack
app.kubernetes.io/name: poimen-memory
spec:
namespaceSelector:
matchNames:
- poimen
selector:
matchLabels:
app.kubernetes.io/name: poimen-memory
endpoints:
- port: http
path: /metrics
interval: 30s
scrapeTimeout: 10s