Health & Metrics
The server can expose health, readiness, liveness, metrics, and profiling endpoints.
Endpoints
server.health_check_path(default/health): runs every registered check; 503 if any fails<health path>/ready: the same checks, reported as readiness<health path>/live: always 200 while the process serves requests/metricswhenserver.metrics_enabledis true: reports uptime only/infowhenserver.info_endpointis true (default false): app name, version, environment, debug flag and uptime/debugprofiling, only when bothserver.enable_profilingandapp.debugare true
No check is registered by default, so /health and /ready return 200 even
when the database is unreachable. Register one with
server.RegisterHealthCheckFunc; the deployment guide
shows a database check.