Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

prevents sharding avg and avg_over_time for unshardable children#6204

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
owen-d merged 1 commit intografana:mainfromowen-d:bugfix/avg-sharding
May 20, 2022

Conversation

owen-d
Copy link
Member

This fixes a bug in query planning which didn't check if the child-expressions ofavg were shardable, which led to someunimplemented errors on the frontend. It's pretty unlikely to run into this (i.e.avg(avg_over_time({job=~"myapps.*"} |= "stats" | json busy="utilization" | unwrap busy [5m]))).

I've run this in a dev cluster as well, everything looking 👍 .

In the future, we can consider mappingavg_over_time ->sum_over_time / count_over_time 🤔

Closes#6202

@owen-dowen-d requested a review froma team as acode ownerMay 19, 2022 19:39
Copy link
Contributor

@ssncferreirassncferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Overall LGTM, just have a couple of questions ❓

Copy link
Contributor

@kavirajkkavirajk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM 👍

@grafanabot
Copy link
Contributor

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester0%-        distributor-0.3%+            querier0%+ querier/queryrange0%+               iter0%+            storage0%+           chunkenc0%+              logql0%-               loki-0.7%

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@cyriltovenacyriltovenaAwaiting requested review from cyriltovena

2 more reviewers

@ssncferreirassncferreirassncferreira left review comments

@kavirajkkavirajkkavirajk approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Query returns unimplemented error when nestingavg(avg_over_time())

4 participants

@owen-d@grafanabot@kavirajk@ssncferreira

[8]ページ先頭

©2009-2025 Movatter.jp