Skip to content

Fix inconsistencies in collector instance counts#26109

Draft
thll wants to merge 2 commits into
masterfrom
fix/instance-count-inconsistencies
Draft

Fix inconsistencies in collector instance counts#26109
thll wants to merge 2 commits into
masterfrom
fix/instance-count-inconsistencies

Conversation

@thll
Copy link
Copy Markdown
Contributor

@thll thll commented May 22, 2026

Counting total and online instances was done by running separate MongoDB queries. If registrations happened between these two queries, the count for online instances could turn out to be higher than the total.

We are now re-using the existing aggregation which groups by fleet and calculates counts coherently.

Fixes #25648

Counting `total` and `online` instances was done by
running separate MongoDB queries. If registrations
happened between these two queries, the count for online
instances could turn out to be higher than the total.

We are now re-using the existing aggregation which
groups by fleet and calculates counts coherently.
@thll thll added the collector label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-atomic MongoDB count queries produce inconsistent collector statistics across UI and telemetry

1 participant