Bring key health metrics for your Ruby on Rails app(s) into SignalFx with the
scout_signalfx gem. The gem extends the Scout Ruby gem, which gathers detailed performance on every web request, and sends those metrics direct to SignalFx.
A Scout account isn't required, but it certainly makes performance investigations more fun.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install scout_signalfx
config/initializers/scout_signalfx.rb file to your Rails app:
SIGNAL_FX_CLIENT = SignalFx.new("[SIGNAL_FX_TOKEN]") ScoutSignalfx.configure(SIGNAL_FX_CLIENT)
Your SignalFx API access token can be obtained from the SignalFx organization you want to report data into.
config/scout_apm.yml file to your Rails app:
common: &defaults monitor: true development: <<: *defaults monitor: false # set to true to test in your development environment production: <<: *defaults
This step isn't required if you're an existing Scout customer.
See the Scout docs for advanced configuration instructions.
The Scout gem auto-magically instruments your controller-actions. There's no more steps!
The following metrics are reported once per-minute:
Each metric has the following dimensions:
- app - The name of the app
- host - The hostname of the running app
- transaction - The name of the transaction. For example,
Bug reports and pull requests are welcome on GitHub at https://github.com/scoutapp/scout_signalfx_ruby.
The gem is available as open source under the terms of the MIT License.