Expand description
Loader metrics in Prometheus format, for any Prometheus-compatible scraper.
Beyond what a history server usually reports (requests, latency, load progress), these say how far the data can be trusted: how many validators signed the last confirmed ledger and how many were needed, which UNL lists are in effect and when they expire, how proofs were built, and what part of history is served, with state, and with tree history for state proofs.
The HTTP side is minimal, like the archiver’s: one path /metrics, no
keep-alive, the whole response at once. If the address is not up yet (the
tunnel starts later), the metrics server keeps retrying while loading goes on.
Structs§
- Api
- Requests to the Clio-compatible API. Methods and statuses come from a
bounded set (the server folds unknown ones into
other), so the series stay few. - Coverage
- What the server holds, refreshed every minute.
- Metrics
- UnlList
- A publisher’s latest UNL list.
Constants§
- LATENCY_
BUCKETS - Upper bounds of the API latency buckets, seconds.
Functions§
- dir_
bytes - Total size of all files in a directory, including subdirectories.
- lock
- A poisoned mutex is no reason to crash: these are counters, not invariants.
- serve
- unix_
of_ ripple - Converts XRPL-epoch seconds to Unix time; 0 stays 0.