0.1
There's a lot of open issues
A long-lived project that still receives updates
Puma plugin to export puma stats as prometheus metrics
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

puma-metrics

Release

A puma plugin to export Puma's internal statistics as Prometheus metrics.

Installation

Add this line to your application's Gemfile:

gem 'puma-metrics'

And then execute:

$ bundle

Or install it yourself as:

$ gem install puma-metrics

Usage

Add following lines to your puma config.rb (see Configuration File):

# config/puma.rb
# Load the metrics plugin
plugin 'metrics'

# Bind the metric server to "url". "tcp://" is the only accepted protocol.
#
# The default is "tcp://0.0.0.0:9393".
# metrics_url 'tcp://0.0.0.0:9393'

Credits

The gem is inspired by the following projects:

License

The gem is available as open source under the terms of the MIT License.