A puma plugin to export Puma's internal statistics as Prometheus metrics.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install puma-metrics
Add following lines to your puma
# 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'
The gem is inspired by the following projects:
The gem is available as open source under the terms of the MIT License.