Raft::Metrics
Constants
HISTOGRAM_BUCKETS = [0.0001, 0.0005, 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1.0, 5.0]
Constructors
Instance methods
Locks each metric hash separately. A scrape is not an atomic snapshot across types — gauges, counters, and histograms can advance between the three locks. Acceptable for Prometheus, which treats each line independently.
to_prometheus
Source