The Ruby Agent comprises three Ruby gems–netuitived, netuitive_ruby_api, and netuitive_rails_agent–that work in tandem to monitor the performance of your Ruby applications.
- netuitived: allows metrics to be exported to the Metricly API.
- netuitive_ruby_api: allows for easy integration with
- netuitive_rails_agent: provides default Ruby on Rails metrics and sends them to
The Ruby Agent can also be tuned to help application performance and used to read garbage collection metrics. The flow-chart below details the flow of data from your application to Metricly.
1. Copy API Key From Ruby Integration
- From the top navigation menu, select Integrations.
- Select the Ruby card. The name should be already populated, and Data Collection should be enabled. A unique API key for your account has already been generated.
- Copy the API Key.
2. Install Gems
- Install the netuitived gem using the below command:
gem install netuitived
2. Run the start script once the gem has been installed:
3. Enter the desired element name into the prompt, then type into the prompt the unique API key generated for your account that you copied in step 1.
- Optionally, edit the** netuitived config/agent.yml** file if you wish to update the caching interval, use environment variables, change the host location instead of using the default, or want to adjust the logging configuration options.
4. Add the following line to the Gemfile in your rails application:
6. Inside your rails application project directory, run the following code snippet to install both the netuitive_rails_agent and netuitive_ruby_api gems:
7. Restart your rails application and begin monitoring your data with Metricly.