Skip to content
Puma plugin to export puma stats as prometheus metrics
Ruby
Branch: master
Clone or download
Latest commit 0978e2a Sep 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/puma Release 1.0.3 Sep 20, 2019
test Fixed issue with `metrics_url` not being optional Sep 20, 2018
.overcommit.yml Added initial gemspec; test with travis Sep 11, 2018
.rubocop.yml Release initial version of puma-metrics (#1) Sep 17, 2018
.travis.yml Drop support for ruby 2.2 and 2.3; add support for 2.6 Apr 15, 2019
CHANGELOG.md Release 1.0.3 Sep 20, 2019
Gemfile Added initial gemspec; test with travis Sep 11, 2018
Gemfile.lock
LICENSE Initial commit Sep 11, 2018
README.md Release initial version of puma-metrics (#1) Sep 17, 2018
Rakefile
puma-metrics.gemspec Allow puma 4.0 Sep 20, 2019

README.md

puma-metrics

Build Status

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.

You can’t perform that action at this time.