Skip to main content

Module recorder

Module recorder 

Source
Expand description

Prometheus recorder, series names and the /metrics listener shared by the binaries.

Names carry the nomisync_ prefix because the series land in a VictoriaMetrics shared with every other app on the cluster.

Structs§

PrometheusHandle
Handle for accessing metrics stored via [PrometheusRecorder].

Constants§

DB_POOL_ACQUIRE_FAILURES
Failed pool acquisitions, labelled pool and reason.
DB_POOL_CONNECTIONS
Database pool connections, labelled pool and state.
EVAL_DURATION
Evaluation latency in seconds.
EVAL_REQUESTS
Evaluations, labelled outcome ok / error / refused.
FORM_REQUESTS
Client-form requests, labelled form, action and outcome.
HTTP_REQUEST_DURATION
Web request latency in seconds.
SCRIPT_BATCH_ITEMS
Script batch items, labelled outcome committed / refused / failed.
SSH_SESSIONS_ACTIVE
Open SSH sessions.
SSH_SESSIONS_TOTAL
SSH sessions opened since start.

Functions§

build_recorder
A recorder with the shared bucket configuration, not installed globally.
install_recorder
Installs the process-wide Prometheus recorder.
serve_metrics
Serves GET /metrics from handle on listener; accept failures are logged and retried.