Expand description
Archiver metrics in Prometheus format, for any Prometheus-compatible scraper.
Served on an address inside the monitoring tunnel. The HTTP here is
minimal: one path, /metrics, no keep-alive, the whole response at once.
A heavy web server is not needed for one scrape every 15 seconds.
Metrics matter, but the archive matters more: if the address is not up yet (the tunnel starts after the archiver) or is taken, the metrics server keeps retrying while recording continues.
Structs§
Constants§
- ACTIVE_
LEDGERS 🔒 - A validator counts as active if its last validation is no more than this many ledgers behind the current one (about 30 seconds).
- FORGET_
LEDGERS 🔒 - Keys silent for longer are forgotten: the validator pool keeps changing.
Functions§
- answer 🔒
- lock
- A poisoned mutex is no reason to crash here: metrics are counters, not invariants, and they can still be served after a panic elsewhere.
- serve
- unl_
last_ 🔒success - Last successful poll of each publisher, from the tail of the collector’s log. With polls every 10 minutes for two publishers, a 32 KB tail covers more than a day.