Observability
The backend emits OpenTelemetry metrics and traces and, optionally, serves a Prometheus scrape endpoint. Both channels carry the same instruments; the exporter choice is deployment policy, not application behaviour. The meters, instruments, traces, logs and alert rules are described in operations: observability.
Channels
| Channel | Transport | Configuration |
|---|---|---|
| Metrics | OTLP over HTTP/protobuf | OpenTelemetry:MetricsEndpoint (default empty: no OTLP metrics exporter) |
| Traces | OTLP over HTTP/protobuf | OpenTelemetry:TracesEndpoint (default empty; tracing is not registered until configured) |
| Metrics | Prometheus text exposition at GET /metrics |
Metrics:PrometheusEnabled (default false) |
A blank endpoint means that channel is off. Each metrics channel is its own reader with its own copy of every stream, so enable only the ones something consumes.
Metrics:BearerToken, when non-empty, requires Authorization: Bearer <token> on /metrics; without it the
endpoint answers 401. OpenTelemetry:EnableRedisInstrumentation adds Redis client spans when tracing is enabled and
defaults to false.
Health endpoints
| Endpoint | Contract | Purpose |
|---|---|---|
GET /health/live |
200 text/plain Healthy |
Liveness: healthy whenever the process runs |
GET /health/ready |
200 when every ready check passes, else 503 |
Readiness: PostgreSQL, safe mode and the replica's cluster state |
GET /health/details |
200 application/json. Anonymous: { status, safeMode, checks[{ name, status }] }. With home.manage: { status, duration, safeMode, safeModeReason, unresolvedSecretReferenceCount, unresolvedSecretReferencesAsOf, checks[{ name, status, description, duration }] } |
Report for monitors and dashboards, including checks that do not affect readiness. A caller who is unauthenticated or lacks home.manage gets the anonymous form, never a 401 or 403. The secret count is per replica; null means that replica's scan failed or has not completed |
A replica in safe mode, or one that is fenced or not yet admitted by the cluster library, fails readiness. Redis,
discovery, the read replica, secret providers and observation replication only degrade /health/details. The
checks and their tags are listed in operations: health checks.
Unmatched routes, a bare /health included, return an RFC 7807 application/problem+json document carrying a
trace id, not a health response.