Align docs/monitoring/METRICS_DATA_FLOW.md with the newly merged stale-reading banners on Proxmox Mail Gateway (#5636), TrueNAS Storage (#5640), and all seven Kubernetes tabs (#5649), and add source-bound regression coverage in scripts/tests/test_alerting_outage_help_docs.py against ProxmoxMailGatewayTable.tsx, TrueNASStorageTopologyTable.tsx, and KubernetesPageSurface.tsx. Contract-Neutral: Documentation and documentation-test update only; no runtime, API, schema, or subsystem contract changes. Change-source: pulse-maintainer
10 KiB
Metrics Data Flow (Bars, Trends and History)
A chart that is still visible does not tell you that new readings are arriving. If a value stops updating or a chart is empty, identify the view before checking polling or storage. Keep the same connection, resource and metric in each view.
| Where you see it | Where the readings come from |
|---|---|
| Bars and live status rows across platform tables | The latest resource state delivered to the page, not a query for stored points. When a provider or agent stops updating, cached rows across Proxmox (including Ceph and replication), Docker (including images, storage, networks, Compose, Swarm, and Active Alerts), TrueNAS (including protection and Health Alerts), Kubernetes (including inventory, record drawers, and Active Alerts), VMware (including Health Signals and Activity), and Physical Disks (Storage tables, Physical Disks & SMART cards, linked pool and guest physical disks, and disk drawers) show an amber Stale data cue (or amber Stale verdict for clear stale disks) and expanded-drawer notice while preserving worse Offline, Degraded, Replace Now, Needs Attention, or alert severity states. Filter-aware warning banners also appear above Proxmox → Mail Gateway (/proxmox/mail-gateway: Some Mail Gateway readings are stale. Affected uptime, mail-flow, quarantine, and queue figures reflect the last successful Mail Gateway poll, not current conditions.) and TrueNAS → Storage (/truenas/storage: Some TrueNAS storage readings are stale. Affected pool, dataset, and disk capacity, health, and temperature figures reflect the last successful TrueNAS poll, not current conditions.), hiding automatically when filters narrow to current-only items or live polling recovers, while Kubernetes (/kubernetes/*) keeps the page-level Some Kubernetes readings are stale warning visible across all seven tabs (including direct bookmarks) whenever any Kubernetes resource reports stale Kubernetes telemetry, excluding pending or agent-only staleness and clearing on live recovery. Stale physical disk temperatures and SSD life stay muted as last known without triggering live Running Hot, and temperature or SMART history charts defer until live reporting recovers. Storage Pools also switch clear stale pools to amber Stale (leaving Healthy, joining Needs attention and warning counts, and sorting ahead of fresh healthy pools), while preserving worse explicit pool states (Faulted, Offline, Critical, Failed, Unavailable, Degraded, Warning) and alert headlines with an inline amber Stale data cue on both desktop and phones while keeping retained usage bars visible. Proxmox Backups (/proxmox/backups) adds a page-level stale telemetry banner naming stale PVE or PBS sources, amber Stale data header cues on Backup health and Backup jobs, and scoped stale cues and drawer notices on affected Coverage rows, By date restore points, and Backup servers while ignoring optional stale host agents when provider polling itself is healthy. Machines (/standalone/machines) surfaces amber Stale data (or Stale · <age>) cues and drawer notices when Pulse Agent telemetry stops updating while preserving offline, degraded, and alert states. Workloads (VMs and containers across the Proxmox, vSphere, Docker, and Kubernetes pages) routes stale running and stopped workloads out of Running into Attention, displays inline Stale cues in rows and node group headers while retaining last-known readings, and shows an amber Readings are stale notice in the guest drawer without flagging fresh hypervisor telemetry when only an optional linked agent is stale. Keep any stale, last-known, or unavailable indication with the value. |
| Trends in a workload or Proxmox node table | A separate server chart read. Workload summaries use /api/charts/workloads and node summaries use /api/charts/infrastructure. Some row previews read history for just that resource. The browser can retain an earlier result for the same selection while it refreshes. |
| Overview charts in a resource drawer (or History on older layouts) | A read of /api/metrics-store/history for the selected resource and range. Check the chart's source label and observation time. A current or recent-only fallback is not stored coverage, and an empty range is not measured zero. |
The summary reads use recent server samples when they cover the requested window. They can supplement shallow coverage with stored readings and, for supported resources, native provider history. There is no fixed two-hour boundary between recent and stored samples. The workload and node summary sparklines do not build a browser history by sampling the live dashboard. The resource drawer has its own range and coverage. No paid plan is needed for metric history. See how to read a History panel and what retention keeps.
If the views disagree
- Bars change but Trends or the drawer do not. Start with the affected history view. Compare the selected range, the most recent observation time if shown, and whether the chart says it could not refresh. This is not by itself evidence that the provider or agent stopped reporting. For example, a newly changed node disk bar and an older stored disk point can both be correct for their own times.
- Several views stop together. A visible line or a working Pulse Health response cannot settle this. Check what is still moving before treating a fresh reading as recovery.
- The header badge shows Updates stalled. On standalone installs, the
dashboard periodically checks
/api/healthwhile signed in and switches the header connection badge to amber Updates stalled (Backend is reachable, but live dashboard state updates are stalled.) wheneverwebsocketStateStalled: trueis reported while the socket is connected or the backend is healthy, clearing automatically when live updates resume. Reconnecting... and Disconnected still take precedence if the backend is unreachable or unhealthy while the socket is down. A green Connected badge only means live updates are connected, not that source readings are fresh, and hosted or multi-tenant deployments omitwebsocketStateStalledfrom public/api/health.
Use the readings already available. Do not restart Pulse, clear history or change polling or retention just to make the views agree. If you report a disagreement, keep the view, metric, range, last visible point time and any source or error label together. Use consistent private aliases and don't post raw API responses or network captures.
Check what is still moving
Record the observation window in UTC, on the same Pulse server and in the affected workspace. Allow for the longest normal interval of the paths you need to check, including registration checks if they were affected. Start a new window if Pulse restarts. You do not need to restart Pulse, send test traffic or change an alert.
Write down the start and end of the shared window separately from when you receive each diagnostic response. For a reading that advances, compare the time of the result itself with that window. A late response can contain a result from before, during or after the window. If you only know when the response arrived, or the clocks cannot be compared, leave the timing unknown.
- Platform polling: Compare recorded poll results
for each affected connection. A newer success for Proxmox VE does not tell
you whether Proxmox Backup Server also completed a poll. Check for a new
partial error before treating all readings on a connection as fresh.
The snapshot comparison's timing labels refer to the two request starts,
not the shared window. Use the actual
lastSuccessor error timestamp to place each result. - Agent collection: Check the same machine or Docker host after any initial burst of reports. Last seen can advance as Pulse works through older readings. If you already scrape Pulse, compare finished requests by route. A successful report request alone does not date the reading it carried.
- Proxmox registration: If registration checks were also stalling,
look for an ordinary check that got a response during the same window.
The
/api/auto-registerline in the request graph includes both checks and registration requests. Movement there alone cannot tell you which finished. Use an existing check result, if available: HTTP 200 withregistered: falsemeans the check returned but Pulse did not count the source as registered. That can happen even with a saved connection if Pulse knows it is disconnected. Neither result proves fresh readings. If no check happened or you only have the route totals, leave check recovery unknown. Don't re-enrol an agent just to get a result. - Alert evaluation: If a threshold alert is already open, compare its observation times. An advancing time shows that rule was evaluated again, even if it did not fire or clear. If there is no suitable alert, mark this check as unknown rather than changing a threshold to create one.
Record which of these advanced in the same window and which you could not check. For example, if Proxmox VE polls and an open rule advance but PBS records only new errors, record failed PBS polls, not fresh PBS data. If a machine's Last seen jumps during a burst of queued reports, note the drain separately and keep fresh agent collection unknown until you can place a new reading in the window. If no registration check was observed, leave it unknown. A green header badge doesn't fill any of those gaps.
For example, if the shared window ends at 12:05 UTC and a Scheduler Health response arrives at 12:07 UTC, a new PBS success at 12:06 UTC does not cover that window. Record it as later progress. A new success at 12:04 UTC is inside the window, even if it was recorded while the response was being assembled. In either case, keep any partial error with the result.
That is evidence for the connections, agents, checks and rule you observed, not for every source or for notification delivery. If readings advance in Pulse but a chart does not, return to the view that disagrees instead of treating the chart as proof that collection stopped again.