Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Metric names and recorder setup.

Names carry the nomisync_ prefix because the series land in a VictoriaMetrics shared with every other app on the cluster: a bare http_requests_total would collide with anything else exporting the obvious name, and an ad-hoc query without a namespace filter would silently mix them. Keeping the names here as constants means the exporter and any test that asserts on them cannot drift apart.

Constants§

AUTH_THROTTLED
Auth attempts refused by the per-address throttle.
HTTP_REQUESTS
Requests served, labelled by method, matched path and status.
HTTP_REQUEST_DURATION
Request latency in seconds, same labels, bucketed by [LATENCY_BUCKETS].

Functions§

install_recorder
Install the process-wide Prometheus recorder.