Skip to main content

Module metrics

Module metrics 

Source
Expand description

Prometheus metrics.

Cardinality note: both requests_total and upstream_ops_total carry a repo label so operators can see per-repo traffic and totals (sum without (repo) (...)). To keep the label set bounded, the real repo name is emitted only for operations that succeeded (a served request, a completed clone/fetch); every failure - failed auth, malformed path, upstream error, a resolved-but-nonexistent repo - uses a - sentinel. The set of successfully served repos is bounded (the repos the fleet actually clones), so a flood of distinct but doomed repo paths cannot inflate the series count.

Structs§

Metrics

Enums§

LfsResult
The result label on lfs_objects_total.
RequestKind
The kind label on requests_total: which client endpoint served the request.
ServeKind
The kind label on serve_duration_seconds.
Status
The result label on requests_total / upstream_ops_total.
UpstreamOp
The op label on upstream_ops_total / upstream_duration_seconds.