DeploymentHealth, metrics and diagnostics
Health, metrics and diagnostics
Probes for load balancers, Prometheus metrics, the doctor command and error reporting.
Health endpoints
| Endpoint | Meaning | Use for |
|---|---|---|
GET /healthz | The process is alive. | Container restart policies and uptime checks. |
GET /readyz | The process is ready to serve (dependencies reachable). | Load balancer and rolling-deploy gates. |
hydro healthcheck | CLI probe of /healthz (override with HYDRO_HEALTHCHECK_URL). | Docker HEALTHCHECK. |
Metrics
GET /metrics exposes Prometheus metrics. Restrict it at your proxy to your monitoring network. The admin's Telemetry area shows uptime, requests, memory, database and queue statistics, and the busiest paths.
YAML
# prometheus.yml
scrape_configs:
- job_name: hydrogo
metrics_path: /metrics
static_configs:
- targets: ['cms.internal:8080']hydro doctor and validate
BASH
hydro validate --config config.yaml # config and database sanity
hydro doctor --config config.yaml # deeper install checks
hydro doctor --json --config config.yaml
hydro doctor --fix --config config.yaml # apply safe automatic fixesError reporting and tracing
- Set
observability.sentry_dsn(orHYDRO_SENTRY_DSN) to send errors to Sentry or GlitchTip. - On the
distributedprofile, OpenTelemetry export can be enabled withHYDRO_OTEL_ENABLED. - Every response carries
X-Request-ID. Error bodies include it asrequest_id, and the audit trail stores it, so one id links a user report to logs.
Background jobs
Failed background jobs end up in a dead-letter queue. Inspect and manage it from the CLI:
BASH
hydro jobs dead-letter list --limit 20 --json
hydro jobs dead-letter requeue --id JOB_ID --confirm