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: incorrect alert description and summary for prom rules #4190

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

srikanthccv
Copy link
Member

Summary

The current logic concatenates the threshold value (0.4) and target unit text (%). This is fine for units such as data (10 gbytes) and time but the percentages need conversion. The fix is to use a formatter that cares about such details.

Fixes https://github.com/SigNoz/engineering-pod/issues/1132.

@github-actions github-actions bot added the bug Something isn't working label Dec 7, 2023
Copy link

github-actions bot commented Dec 7, 2023

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

@srikanthccv
Copy link
Member Author

@ankitnayan easy one. please review.

Copy link
Collaborator

@ankitnayan ankitnayan left a comment

Choose a reason for hiding this comment

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

@srikanthccv
Copy link
Member Author

Yes, this is the correct usage. When the issue was originally reported we only fixed it for the builder in this PR #4047. The same issue existed in PromQL queries till now. It should be working now for all types of queries.

@srikanthccv srikanthccv merged commit fd9566d into develop Dec 11, 2023
11 checks passed
@srikanthccv srikanthccv deleted the issue-1132 branch December 11, 2023 10:39
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.

2 participants