-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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): Support apdex alerts for anomaly detection #76960
base: master
Are you sure you want to change the base?
Conversation
start, end, project, alert_rule.organization, granularity | ||
) | ||
|
||
elif "apdex" in snuba_query.aggregate: | ||
generator = get_stats_generator(use_discover=True, remove_on_demand=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is pulled from the metrics-estimation-endpoint
here which then gets called in in organization_events.py
here. I think this is all that's needed for the type of apdex metric alert you can create from the UI, and all the other stuff is for Discover queries (and I support custom metric type metric alerts?).
snuba_query = SnubaQuery.objects.get(id=alert_rule.snuba_query_id) | ||
result = fetch_historical_data(alert_rule, snuba_query, self.project) | ||
assert result | ||
assert {"time": int(self.time_1_ts), "count": 1} in result.data.get("data") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't gotten this to pass yet as I'm not sure what I need to store in order for a count
to show up in the results
❌ 2 Tests Failed:
View the top 2 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
fca3c9d
to
18b6a4c
Compare
18b6a4c
to
a1292d1
Compare
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you add the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Add support for apdex type metric alerts for anomaly detection
Closes https://getsentry.atlassian.net/browse/ALRT-245