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

Filter Alerts by [time of day] and [day of week] #70310

Open
mark-langer opened this issue May 6, 2024 · 5 comments
Open

Filter Alerts by [time of day] and [day of week] #70310

mark-langer opened this issue May 6, 2024 · 5 comments

Comments

@mark-langer
Copy link

Problem Statement

We'd like to get informed on slow average query times, but only in certain time ranges.

We know from our previous APM tool that many alerts came in unnecessarily because the average response time of our servers was very high because of very few requests at night.
E.g. a single customer generating two documents at 3 am in the morning drove up the average time altough it wasn't overburdening our servers; it just takes 10-15 seconds to generate each one.

Solution Brainstorm

We'd like to filter alerts so that they are only triggered if...

  • ...the average response time is > 2000 ms and
  • ...this occurs between 7am and 8pm on a weekday

Product Area

Alerts

@getsantry
Copy link
Contributor

getsantry bot commented May 6, 2024

Assigning to @getsentry/support for routing ⏲️

@getsantry
Copy link
Contributor

getsantry bot commented May 6, 2024

Routing to @getsentry/product-owners-alerts for triage ⏲️

@Dhrumil-Sentry
Copy link

@mark-langer thanks a lot for this feedback. It seems like you basically want to get rid of daily/weekly seasonality based false positives from these alerts i.e. Sentry should be smart enough to see a drop and know this drop happens every evening.

Is that accurate?

@mark-langer
Copy link
Author

mark-langer commented May 7, 2024 via email

@Dhrumil-Sentry
Copy link

We're considering building anomaly detection-based alerts in Sentry. Could you please share what type of metrics you get alerted on beyond response times?

Also do you setup alerting for specific endpoints or response times for all your APIs/pages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants