Skip to main content

Module metrics

Module metrics 

Source

Statics§

ACTIVE_CONNECTIONS
Number of currently open TCP/QUIC connections.
ERRORS_TOTAL
Requests that caused an application-level error (app.execute returned Err).
REQUESTS_TOTAL
Total HTTP requests handled across all connections and protocols.
SERVER_READY
Set to true after crate::server::Server::setup completes. The /readyz controller returns 503 until this is true. Set back to false when a shutdown signal is received so that Kubernetes stops routing traffic before the pod exits.

Functions§

connection_close
connection_open
prometheus_text
Returns a Prometheus text-format snapshot of all metrics.
record_error
record_request