mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
Mock mode seeded rich in-memory chart history but passed a nil store to the seeder and the live tick, so the sqlite metrics store held almost nothing: vmware/truenas/docker resources got one row per poll from the platform ingestion paths and mock Proxmox guests got nothing at all (the unified sync skips every resource in mock mode). Performance reports rendered "Data Points: 0" for PVE guests and "Samples: 1" elsewhere, with no charts. Re-enable store seeding behind an explicit PULSE_MOCK_SEED_METRICS_STORE opt-in that scripts/hot-dev.sh and scripts/toggle-mock.sh export exactly where they point PULSE_DATA_DIR at the isolated tmp/mock-data dir. Without the opt-in (a production install flipping PULSE_MOCK_MODE on its real data dir) the store stays untouched, which is what the old nil guard protected. Replace the dormant dense seeding policy (every in-memory timestamp written to both hourly and daily tiers, ~11M rows at current fixture scale) with tier-correct backfill driven by the deterministic mock.SampleMetric runtime: daily 30d at 4h spacing, hourly 7d at 2h, minute 24h at 15m, raw left to the live tick (now also store-connected under the opt-in). Timestamps sit on the spacing grid and a new Store.MaxTimestampsForTier coverage query fills only the gap since the previous boot, so restarts neither duplicate rows nor re-pay the seed: a fresh seed wrote 264,960 rows in 8.4s (71MB) and a restart wrote only the gap plus fixture series whose mock IDs are not boot-stable (k8s pod names, ceph FSID, a pre-existing generator defect). Verified live in mock mode: 30-day PDF reports for a mock PVE VM (checkout-web-01), a vSphere VM, the TrueNAS host, and a Docker container now show 1260/1260/1260/540 data points with rendered time-series charts. |
||
|---|---|---|
| .. | ||
| agents | ||
| aicontracts | ||
| audit | ||
| auth | ||
| cloudauth | ||
| db | ||
| discovery | ||
| extensions | ||
| fsfilters | ||
| licensing | ||
| metrics | ||
| pbs | ||
| pmg | ||
| proxmox | ||
| pulsecli | ||
| reporting | ||
| securityutil | ||
| server | ||
| tlsutil | ||