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

fix query builder for alerting rules #137

Merged
merged 5 commits into from
Jan 30, 2024
Merged

fix query builder for alerting rules #137

merged 5 commits into from
Jan 30, 2024

Conversation

dmitryk-dk
Copy link
Contributor

@dmitryk-dk dmitryk-dk commented Jan 29, 2024

This PR fixed behavior of the query editor which produces a bug for alerting rule evaluation

Related issue: #134

Signed-off-by: dmitryk-dk d.kozlov@victoriametrics.com

@dmitryk-dk dmitryk-dk marked this pull request as ready for review January 29, 2024 12:11
@dmitryk-dk dmitryk-dk changed the title Issue 134 fix query builder for alerting rules Jan 29, 2024
Copy link
Contributor

@Loori-R Loori-R left a comment

Choose a reason for hiding this comment

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

LGTM!

@hagen1778
Copy link
Contributor

hagen1778 commented Jan 29, 2024

Hey @dmitryk-dk could you please elaborate more on what this PR does? What was the reason of errors and how it was addressed?

@dmitryk-dk
Copy link
Contributor Author

Hey @dmitryk-dk could you please elaborate more on what this PR does? What was the reason of errors and how it was addressed?

We run onRunQuery function which is used for the Explore tab, and in that case for the /api/v1/eval grafana missed the query for the A expression. The request body presents only B and C conditions, but Grafana awaits requests with A conditions. And that behavior produces the issue. Also, there was a problem with render, which started to make infinite requests to the /api/v1/eval API.
In another case, we made two requests when using query search field, so this behavior was prevented too.

@hagen1778 hagen1778 merged commit 6fae1df into main Jan 30, 2024
9 checks passed
@hagen1778 hagen1778 deleted the issue-134 branch January 30, 2024 08:57
@hagen1778
Copy link
Contributor

Thanks @dmitryk-dk !

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 this pull request may close these issues.

3 participants