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: ch queries sending builder as query type in query range api for exceptions alerts #4941

Merged
merged 3 commits into from
May 1, 2024

Conversation

vikrantgupta25
Copy link
Member

@vikrantgupta25 vikrantgupta25 commented Apr 30, 2024

Summary

  • the logic in the alerts was based on datasource from query hence the exceptions alerts were not working as expected as it always routed to trace based alerts.
  • refactored the logic to include the alertType as query params to maintain the sanity
  • if the query param alertType is not present we will extract the same from staged query like we are doing currently to support backwards compatibility

Related Issues / PR's

Screenshots

Logs -> Alerts
Dashboard (Traces / Logs / Metrics ) -> Alerts

Screen.Recording.2024-05-01.at.2.34.57.PM.mov

Alerts UI navigation

Screen.Recording.2024-04-30.at.5.28.35.PM.mov

Affected Areas and Manually Tested Areas

@vikrantgupta25 vikrantgupta25 changed the title fix: ch queries sending builder as query type in query range api for … fix: ch queries sending builder as query type in query range api for exceptions alerts Apr 30, 2024
@github-actions github-actions bot added the bug Something isn't working label Apr 30, 2024
Copy link

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

1 similar comment
Copy link

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

@vikrantgupta25 vikrantgupta25 marked this pull request as ready for review April 30, 2024 11:58
@vikrantgupta25 vikrantgupta25 requested a review from YounixM as a code owner April 30, 2024 11:58
Copy link

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

1 similar comment
Copy link

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

SagarRajput-7
SagarRajput-7 previously approved these changes Apr 30, 2024
SagarRajput-7
SagarRajput-7 previously approved these changes Apr 30, 2024
@vikrantgupta25 vikrantgupta25 force-pushed the alerts-exceptions-fix branch from 7876a0d to bdf5a73 Compare May 1, 2024 07:49
Copy link

github-actions bot commented May 1, 2024

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

1 similar comment
Copy link

github-actions bot commented May 1, 2024

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

@vikrantgupta25 vikrantgupta25 merged commit b3d5831 into develop May 1, 2024
11 of 14 checks passed
@vikrantgupta25 vikrantgupta25 deleted the alerts-exceptions-fix branch May 1, 2024 09:09
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