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
```ruby # 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: * https://github.com/puma/puma * https://github.com/puma/puma-heroku
The gem is available as open source under the terms of the MIT License.