Metrics for monitoring Grape endpoints.
Add this line to your application's Gemfile:
gem 'yabeda-grape'
# Then add monitoring system adapter, e.g.:
# gem 'yabeda-prometheus'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yabeda-grape
# initializers/yabeda.rb
Yabeda::Grape.bind_metrics
grape_requests_total
- Total requests receivedgrape_request_duration_seconds
- Request duration (in seconds)abs(irate(grape_requests_total[5m]))
- Requests per second (for every endpoint)Bug reports and pull requests are welcome on GitHub at https://github.com/efigence/yabeda-grape.