Skip to main content

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.
The health check system uses a component registry (apps/strait/internal/health/registry.go) where subsystems register their health check functions.

Kubernetes Configuration

Prometheus Metrics

Metrics exposed at GET /metrics:

Monitoring Assets

Use the monitoring assets in packages/monitoring/ as a baseline:
  • grafana-authz-rbac-dashboard.json
  • alerts-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
  • 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%