efigence / yabeda-grape

Extensible metrics for monitoring Grape API endpoints
4 stars 1 forks source link

Yabeda::Grape

Metrics for monitoring Grape endpoints.

Installation

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

Usage

# initializers/yabeda.rb

Yabeda::Grape.bind_metrics

Metrics

PromQL examples:

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/efigence/yabeda-grape.