mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-26 13:39:47 +00:00
b4be3bd55b
Mock chart history thinned each metric with LTTB on its own. LTTB keeps the points whose values stand out, so cpu, memory and disk of one guest kept different timestamps: on the public demo a 24h container history had eight ~48-point series spread over 162 distinct timestamps. The drawer History panels break a line wherever another series in the panel has a reading this one lacks, so every mock chart drew as dots with a "Missing observations" note. Real history does not do this because the poller writes all of a resource's metrics at the same times. Thin mock series onto an epoch-aligned grid instead: keep the first reading in each bucket plus the newest reading, at their own timestamps. Which readings survive now depends only on when they were taken, so series sampled together keep identical timestamps, values stay real readings, and point targets are unchanged. The synthetic generator no longer pre-thins to 500 points, since every caller thins onto the grid.