Skip to content

Extensible metrics for monitoring Grape API endpoints

Notifications You must be signed in to change notification settings

efigence/yabeda-grape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • grape_requests_total - Total requests received
  • grape_request_duration_seconds - Request duration (in seconds)

PromQL examples:

  • abs(irate(grape_requests_total[5m])) - Requests per second (for every endpoint)

Contributing

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

About

Extensible metrics for monitoring Grape API endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •