Skip to main content

Module metrics

Module metrics 

Source
Expand description

The webserver’s metrics (see archive/PROJECT.md, Observability), registered in the process’s registry and served on the ops port: requests by route template (never a raw path, which holds IDs) and status, and why the log proxy couldn’t serve a log.

Structs§

ApiMetrics
The webserver’s metrics (cheap to clone; clones share them).
LogErrorLabels
Why a log couldn’t be served.
RequestLabels
A request’s route template and its answer’s status.

Constants§

METRICS
The webserver’s metrics, as registered (under schedr_).

Functions§

count_requests
Middleware counting each request by its route template and status, those the version check refuses included.