Health Endpoints
Strait exposes two health endpoints for infrastructure orchestration:Liveness: GET /health
Returns 200 if the process is alive. Use as Kubernetes liveness probe.
Readiness: GET /health/ready
Returns 200 when all dependencies are ready. Returns 503 with details when not ready.
apps/strait/internal/health/registry.go) where subsystems register their health check functions.
Kubernetes Configuration
Prometheus Metrics
Metrics exposed atGET /metrics:
Monitoring Assets
Use the monitoring assets inpackages/monitoring/ as a baseline:
grafana-authz-rbac-dashboard.jsonalerts-authz-rbac.yaml
Core Signals
- HTTP authz failures (
401,403) - Permission cache hits/misses/evictions
- RBAC control-plane mutation rate
- Audit event insert errors
- Webhook delivery failures
- Worker pool utilization
- Database connection pool saturation
- Analytics query latency spikes
- Bulk operation failure rate
Recommended SLO Checks
- 403 rate remains near baseline after RBAC or policy changes
- Permission cache hit ratio >= 0.80 under normal load
- Audit event write error rate = 0
- Webhook terminal failure rate stays within agreed threshold
- Health endpoint responds within 1s
- Worker pool active/capacity ratio < 0.9
- Analytics query p95 < 2s
- Bulk cancel success rate >= 99%