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§
- Prometheus
Handle - Handle for accessing metrics stored via [
PrometheusRecorder].
Constants§
- DB_
POOL_ ACQUIRE_ FAILURES - Failed pool acquisitions, labelled
poolandreason. - DB_
POOL_ CONNECTIONS - Database pool connections, labelled
poolandstate. - EVAL_
DURATION - Evaluation latency in seconds.
- EVAL_
REQUESTS - Evaluations, labelled
outcomeok / error / refused. - FORM_
REQUESTS - Client-form requests, labelled
form,actionandoutcome. - HTTP_
REQUEST_ DURATION - Web request latency in seconds.
- SCRIPT_
BATCH_ ITEMS - Script batch items, labelled
outcomecommitted / 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 /metricsfromhandleonlistener; accept failures are logged and retried.