Skip to main content
HydroGo
DeploymentHealth, metrics and diagnostics

Health, metrics and diagnostics

Probes for load balancers, Prometheus metrics, the doctor command and error reporting.

Health endpoints

EndpointMeaningUse for
GET /healthzThe process is alive.Container restart policies and uptime checks.
GET /readyzThe process is ready to serve (dependencies reachable).Load balancer and rolling-deploy gates.
hydro healthcheckCLI 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 fixes

Error reporting and tracing

  • Set observability.sentry_dsn (or HYDRO_SENTRY_DSN) to send errors to Sentry or GlitchTip.
  • On the distributed profile, OpenTelemetry export can be enabled with HYDRO_OTEL_ENABLED.
  • Every response carries X-Request-ID. Error bodies include it as request_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