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

Feature request: Mail notification if rate limit is reached #18903

Open
marbon87 opened this issue May 19, 2020 · 3 comments
Open

Feature request: Mail notification if rate limit is reached #18903

marbon87 opened this issue May 19, 2020 · 3 comments
Labels
Sync: Jira apply to auto-create a Jira shadow ticket Type: User Feedback

Comments

@marbon87
Copy link
Contributor

marbon87 commented May 19, 2020

Summary

An email should be sent to the configured admin email, if a rate limit is configured and reached.

Motivation

If the rate limit is reached because one application A sends too much events to sentry, all projects in sentry are affected.
It can happen that critical events / issues from another project B are not saved in sentry because application A floods the system.
An admin should be notified in such situations.

┆Issue is synchronized with this Jira Improvement by Unito

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2021

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 label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@marbon87
Copy link
Contributor Author

marbon87 commented Jan 7, 2021

@BYK do you think this is worth to be implemented in the future?

@PickledChris
Copy link

PickledChris commented Dec 22, 2022

For the benefit of anyone who finds this, there is an internal API that you can alert from, it's the one that populates the graph on this page:
settings/{org}/projects/{slug}/keys/{key}/

We have a script that alerts on:
api/0/projects/{org}/{slug}/keys/{key}/stats/?resolution=1d&since={unix time in seconds}&until={unix time in seconds}

This returns a list of objects such as:

{
"ts": {unix time in seconds},
"total": 5303,
"dropped": 48,
"accepted": 5255,
"filtered": 0
},

Dropped = rate limited, not sure about filtered

@sdzhong sdzhong added the Sync: Jira apply to auto-create a Jira shadow ticket label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sync: Jira apply to auto-create a Jira shadow ticket Type: User Feedback
Projects
None yet
Development

No branches or pull requests

5 participants