- Add ServiceMonitors for Traefik, ArgoCD, and Longhorn - Enable cert-manager ServiceMonitor via helm values - Deploy Grafana Tempo for distributed tracing (single-binary, Longhorn PVC) - Add Tempo datasource with trace-to-logs and trace-to-metrics correlation - Instrument API with OpenTelemetry SDK (Prometheus metrics + OTLP traces) - Replace console.log with pino structured logging + pino-http middleware - Add Grafana dashboards for Traefik, API overview, and PostgreSQL (CNPG)
45 lines
920 B
YAML
45 lines
920 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: argocd-server
|
|
namespace: argocd
|
|
labels:
|
|
app.kubernetes.io/part-of: argocd
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-server
|
|
endpoints:
|
|
- port: metrics
|
|
interval: 30s
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: argocd-repo-server
|
|
namespace: argocd
|
|
labels:
|
|
app.kubernetes.io/part-of: argocd
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-repo-server
|
|
endpoints:
|
|
- port: metrics
|
|
interval: 30s
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: argocd-application-controller
|
|
namespace: argocd
|
|
labels:
|
|
app.kubernetes.io/part-of: argocd
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-application-controller
|
|
endpoints:
|
|
- port: metrics
|
|
interval: 30s
|