Skip to main content

Module metrics

Module metrics 

Source
Expand description

Prometheus metrics (GET /metrics, text exposition format 0.0.4).

Off unless TEAMCRAFT_METRICS_TOKEN is set; the scraper sends it as a bearer token. Counts are kept in memory since the start of the process. Labels are never taken from the request (no path or user), so the number of series is fixed.

Structs§

Metrics

Constants§

BUCKETS
Upper bounds (seconds) of the latency histogram.

Functions§

token_matches
Compares the presented bearer token with the configured one without stopping at the first difference. The scheme name is case-insensitive (RFC 7235), so bearer … works as well.