Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count() result is inaccurate #5461

Closed
slim-bean opened this issue Feb 23, 2022 · 1 comment · Fixed by #5474
Closed

count() result is inaccurate #5461

slim-bean opened this issue Feb 23, 2022 · 1 comment · Fixed by #5474

Comments

@slim-bean
Copy link
Collaborator

Describe the bug

When comparing the number of returned series from a query to the same query with count() wrapped around it the results are different.

The same count query sent directly to a querier and bypassing the query-frontend returns the correct result.

@cyriltovena
Copy link
Contributor

logfmt will returns labels that will be the same across different shard
the only way to fix it is to shard the sum but not the count.

count is distinct count so you can’t have it once you mutate labels across shards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants