Skip to main content

Module probes

Module probes 

Source
Expand description

Module containing Axum routes and handlers for the observability probe endpoints

Functionsยง

database_ready ๐Ÿ”’
Whether the DB connection is established. Logs a warning if it is not.
live_handler ๐Ÿ”’
Handler for GET /status/livez (See https://kubernetes.io/docs/concepts/workloads/pods/probes/#liveness-probe).
nats_ready ๐Ÿ”’
Whether the NATS connection is established. Logs a warning if it is not.
probe_router
Create the observability probe routes. These are meant to be mounted outside the middleware stack, so that they are not traced.
ready_handler ๐Ÿ”’
Handler for GET /status/readyz (See https://kubernetes.io/docs/concepts/workloads/pods/probes/#readiness-probe).
startup_handler ๐Ÿ”’
Handler for GET /status/startupz (See https://kubernetes.io/docs/concepts/workloads/pods/probes/#startup-probe).