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

feat(alerts): use extrapolated data during creation #53428

Merged
merged 32 commits into from
Jul 31, 2023

Conversation

obostjancic
Copy link
Member

@obostjancic obostjancic commented Jul 24, 2023

Closes: Support chart queries for on-demand metrics#52508

Adds A separate request flow for on-deamnd metric alerts that queries event-stats to check if the on-demand metric matching filters is already present. If it is displays that Timeseries data. If not it repeats the request to event-stats falling back to indexed data, and extrapolates it using the dynamic sampling rate.

image

@obostjancic obostjancic self-assigned this Jul 24, 2023
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jul 24, 2023
@obostjancic obostjancic removed the Scope: Backend Automatically applied to PRs that change backend components label Jul 24, 2023
Co-authored-by: Priscila Oliveira <priscila.oliveira@sentry.io>
Co-authored-by: Priscila Oliveira <priscila.oliveira@sentry.io>
@priscilawebdev
Copy link
Member

shall we create unit/integration tests for this change?

Copy link
Member

@priscilawebdev priscilawebdev left a comment

Choose a reason for hiding this comment

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

left one last comment but it looks good to me! :)

</OnDemandMetricRequest>
);

expect(doEventsRequest).toHaveBeenCalledWith(
Copy link
Member

Choose a reason for hiding this comment

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

done we need to check for the number of calls here too? expect(doEventsRequest).toHaveBeenCalledTimes(2);

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, we can, added in d36fc34

@obostjancic obostjancic enabled auto-merge (squash) July 31, 2023 12:35
@obostjancic obostjancic merged commit 9618626 into master Jul 31, 2023
49 checks passed
@obostjancic obostjancic deleted the ogi/feat/on-demand-alerts-chart-extrapolation branch July 31, 2023 13:22
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support chart queries for on-demand metrics
3 participants