Report Shoryuken metrics to StatsD or to DogStatsD
Using standard StatsD (and the statsd-ruby
gem):
Shoryuken.configure_server do |config|
# configure middleware, if any, first, then:
reporter = Shoryuken::StatsD::StatsDReporter.new Statsd.new('localhost', 9125)
Shoryuken::StatsD.register shoryuken_config: config, reporter: reporter
end
For use with Datadog and DogStatsD (and the dogstatsd-ruby
gem):
require 'datadog/statsd'
Shoryuken.configure_server do |config|
# configure middleware, if any, first, then:
reporter = Shoryuken::StatsD::DogStatsDReporter.new Datadog::Statsd.new('localhost', 8125)
Shoryuken::StatsD.register shoryuken_config: config, reporter: reporter
end