https://github.com/basecamp/yabeda-rack-ratelimit
Yabeda plugin for Rack::Ratelimit
https://github.com/basecamp/yabeda-rack-ratelimit
Last synced: 11 months ago
JSON representation
Yabeda plugin for Rack::Ratelimit
- Host: GitHub
- URL: https://github.com/basecamp/yabeda-rack-ratelimit
- Owner: basecamp
- License: mit
- Created: 2023-07-25T14:28:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T21:42:51.000Z (almost 3 years ago)
- Last Synced: 2025-07-29T03:23:53.940Z (11 months ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 19
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yabeda-rack-ratelimit

[](https://rubygems.org/gems/yabeda-rack-ratelimit)
[Yabeda] plugin to collect metrics for [Rack::Ratelimit].
## Get started
To install the latest version using [Bundler][bundler]:
```ruby
gem "yabeda-rack-ratelimit"
```
## Metrics
| Metric | Type | Tags | Description |
|-------------------|-------------|-----------------------------|--------------------------------------------------------------------|
| `requests_total` | counter | name | The total number of requests considered for rate limiting for a named ratelimit |
| `exceeded_requests_total` | counter | name | The total number of requests that exceeded a named rate limit |
| `clients_total` | counter | name | The total number of clients considered for rate limiting for a named ratelimit |
| `exceeded_clients_total` | counter | name | The total number of clients that exceeded a named rate limit |
| `quota_consumed_ratio` | gauge | name | The ratio of quota consumed to quota available for a named rate limit |
## Acknowledgments
yabeda-rack-ratelimit is [MIT-licensed](LICENSE.md) open-source software from [37signals](https://37signals.com/), the creators of [Ruby on Rails](https://rubyonrails.org).
---
© 2023 37signals, LLC.
[Yabeda]: https://github.com/yabeda-rb/yabeda
[Rack::Ratelimit]: https://github.com/jeremy/rack-ratelimit
[bundler]: https://bundler.io
[rubygems]: https://rubygems.org