bug(ui): analytics dashboards take a long time to hydrate/render #597
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar#597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub.
Original GitHub issue: #1853
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1853
Original created: 2025-10-22T16:22:49Z
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Imported GitHub comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1853#issuecomment-3433285081
Original created: 2025-10-22T16:42:02Z
Implemented aggregated analytics fetches so the dashboard now executes 10 SRQL calls instead of 22. Counts now come from countIf rollups with tighter limits, plus a vitest adds coverage for the new dataService wiring. Bazel pushed ghcr.io/carverauto/serviceradar-web:sha-a61bd0b57240dc8e7a38c2d08187250d7b85d6d6 and the demo web deployment is updated to that tag.
Imported GitHub comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1853#issuecomment-3433409877
Original created: 2025-10-22T17:20:19Z
Follow-up: reverted the analytics counters to their original SRQL shape (no more countIf) so totals/offline devices line up again, and moved the slow-trace list to a background fetch so the dashboard renders immediately while that query finishes. Bazel rebuilt/pushed ghcr.io/carverauto/serviceradar-web:sha-0f0e530eccbf and the demo deployment is running that digest now.
Imported GitHub comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1853#issuecomment-3433497260
Original created: 2025-10-22T17:44:26Z
Trimmed the remaining duplicate otel_trace_summaries calls by switching to a single stats query that rolls up total/error/slow counts via sum(if(...)). Only the slow-trace list still hits that stream separately (now fetched async), so the dashboard issues 19 primary SRQL queries plus one background fetch. Deployed ghcr.io/carverauto/serviceradar-web:sha-9f6d9b04bebe to demo.
Imported GitHub comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1853#issuecomment-3433549679
Original created: 2025-10-22T17:58:13Z
Also consolidated the remaining widget trace counters onto the same aggregated SRQL call (useTraceCounts now parses sum(if(...)) results), so the analytics dashboard only makes a single synchronous request into otel_trace_summaries plus the async slow-trace fetch. Latest demo build: ghcr.io/carverauto/serviceradar-web:sha-71f597e11f8d.