stefanprodan / AspNetCoreRateLimit

ASP.NET Core rate limiting middleware
MIT License
3.12k stars 445 forks source link

Admin mode - can I view throttled requests and client ids? #115

Open mexner opened 4 years ago

mexner commented 4 years ago

We have a multi tenant system and have configure our rate limiting with client ids. I’d like to know how we can view/query requests that have been throttled? Right now we know the throttling works well because our customers write in about the limits we’ve imposed. But I’m blind to which tenants are getting throttled and how frequently they are throttled until they contact us.

Is there any way to query for this information?

Love the work here, thank you!

cristipufu commented 4 years ago

You should be able to register a callback delegate whenever a request gets blocked (using the latest released version): https://github.com/stefanprodan/AspNetCoreRateLimit/pull/144

mexner commented 4 years ago

Fantastic @cristipufu - thank you so much!