The Netuitive Rails Agent creates default rails metrics to be sent to NetuitiveD using the netuitive_ruby_api gem. The Netuitive Rails Agent is meant to work in conjunction with the netuitive_ruby_api gem and NetuitiveD to help Netuitive monitor your Ruby applications.
For more information on the Netuitive Rails Agent, see our Ruby agent help docs, or contact Netuitive support at support@netuitive.com.
NetuitiveD must be installed and running.
-
Add
gem 'netuitive_rails_agent'
to your Gemfile. -
Run
bundle install
. -
Restart your rails app.
Included in this project are Docker and Docker Compose files for easy testing of this application. To run an example Rails app with the Netuitive Rails Agent monitoring it perform the following steps:
- Sign Up for a Netuitive account if you don't already have one
- Copy the
example.env
file to.env
and replace theRUBY_KEY
variable with your Ruby API key from the Netuitive Integrations page - Run
docker-compose up -d
- Access the example Rails application by going to http://localhost:3000 (or the IP address of your Docker host)
- View your Netuitive inventory for the new example-rails-application element (the name is configurable in the
docker-compose.yml
file)