mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 02:58:00 -05:00
The ElastiCache metrics reference gives system.network.io.rate and system.network.packet.rate as exponential histograms: "The interface is sampled once a second, and each datapoint is the distribution of those per-second rates". Each running node's container is now sampled through its Docker stats stream, which sends a sample about once a second. Each sample and the one before it give the bytes and packets per second in each direction, summed over the container's interfaces. A rate metric's data point drains the rates sampled since its previous one: on the minute when vended, on every quarter when selected. A node that misses a tick leaves its rates to its next data point. The OTLP model Floci emits its own metrics through gains an exponential histogram instrument. Values are bucketed at the greatest scale, from 20, that holds them in 160 buckets, with zeros in the zero count, and emitted with delta temporality. The table now maps ExponentialHistogram to that instrument.