#52086·fleet

"Hosts online" and "Vulnerability exposure" charts return no data when filtering by Linux platform

Author: AdamBaaliCreated Aug 28, 2026Updated Sep 23, 2026
Labelsbugcustomer-interkosmos#g-orchestration

Fleet versions

  • Discovered: 4.89.2
  • Reproduced: 4.90.1 and Fleet dogfood

Web browser and operating system: any


Actual behavior

Filtering the "Hosts online" chart by the Linux platform returns no data. Every cell in the heatmap renders as "No data" across the full window, on an instance where the same hosts render correctly with no filter applied.

The API confirms this is server-side. On a 398-host, Linux-only instance:

GET /api/latest/fleet/charts/uptime?days=31&tz_offset=360&platforms=darwin,windows,linux,chrome

json
"total_hosts": 0,
"filters": { "platforms": ["darwin","windows","linux","chrome"] }

All 248 three-hour buckets are returned with value: 0. total_hosts: 0 shows the server resolved the platform filter to an empty host set — the frontend is rendering exactly what it received.

The "Vulnerability exposure" chart behaves identically, so this affects the shared chart filter handling rather than one chart.

️ Expected behavior

Filtering by Linux shows activity for Linux hosts, matching the result of filtering by an equivalent Linux label.

‍ Steps to reproduce

These steps:

  • Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
  • Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
  1. On a Fleet instance with Linux hosts, go to Dashboard.
  2. Open the Hosts online chart settings (gear icon).
  3. Set Platforms to Linux. The chart renders every cell as "No data".
  4. Set Platforms back to All. Data returns.
  5. Clear the platform filter and instead filter by a Linux label (e.g. "Ubuntu Linux" or "RPM-based Linux"). Data returns correctly.
  6. Repeat steps 2–4 on the Vulnerability exposure chart — same result.

️ More info (optional)

Suspected cause: hosts.platform stores distro-specific values (ubuntu, rhel, debian, etc.), never the literal string linux. The hosts list expands linux into the known Linux OS set before querying; the charts query appears not to, so the platform predicate matches zero rows. darwin, windows, and chrome are stored literally and are unaffected, which is why this only surfaces for Linux.

Supporting evidence: label filters and specific-host filters both work correctly on the same hosts. Both resolve to host IDs and bypass the platform predicate, which confirms the underlying chart data exists and isolates the fault to platform filter resolution.

Version history: in 4.89.x the default filter included linux, so Linux-only fleets saw a permanently blank chart on page load with no explanation. #47661 removed the default platform filter in 4.90, which masks the problem on load, but anyone filtering to Linux still gets nothing. Reproduced on 4.90.1.

Secondary issue: an empty filter result returns fully-populated buckets of value: 0 rather than signalling that no hosts matched. The chart paints this as a grid of "No data" cells, which is indistinguishable from "collection hasn't started yet". Worth considering an empty-state message — the ambiguity is why this needed a network capture to diagnose.

Test coverage: the QA Wolf flow covering this path ("Dashboard widgets – Hosts Active UI and Filters") was marked DNI on 6 Jul and again on 25 Aug, so it has had no working automated coverage for roughly two months.