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: promql alert expr formatting for composite queries with join/unless #3784

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

srikanthccv
Copy link
Member

For expressions such as

count(process_cpu_time{process_command_line=~"/usr/local/cqonline", host_name=~"cq"} offset 5m) by (host_name) unless count(process_cpu_time{process_command_line=~"/usr/local/cqonline", host_name=~"cq"}) by (host_name)

The current comparison isn't done against the whole query result but the right side of it which is incorrect.

@github-actions
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the bug Something isn't working label Oct 23, 2023
@srikanthccv srikanthccv marked this pull request as ready for review October 23, 2023 13:27
@srikanthccv
Copy link
Member Author

This fixes the issue mentioned here: https://signoz-team.slack.com/archives/C05GQNXL3FG/p1697723383400099?thread_ts=1695994015.677219&cid=C05GQNXL3FG. I would like to get it merged and deployed to them.

@srikanthccv
Copy link
Member Author

Please include this in the release along with the line chart issue.

@ankitnayan ankitnayan merged commit c55be0e into develop Oct 25, 2023
11 checks passed
@ankitnayan ankitnayan deleted the prom-expr-bug branch October 25, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants