Problem
After installing the New Relic Ruby agent, generating some traffic, and waiting five minutes, no data appears in your New Relic UI.
Solution
To troubleshoot missing data:
-
Verify your config file:
- Ensure your config file is installed at
config/newrelic.yml
within your application directory. - Ensure your config file is valid YML.
- To download a clean copy of this file with your license key pre-populated, go to one.newrelic.com > (account dropdown) > Account Settings > Download a clean configuration file.
- Ensure your config file is installed at
- Restart your web server.
- Use New Relic Diagnostics to try to automatically identify the issue.
- Examine the agent's log file at
log/newrelic_agent.log
for any errors or warnings that show up upon restarting your application server processes. If this log file isn't present or isn't being written to, see No log file. - Check the New Relic agent log for an entry that has
INFO : Reporting to:
followed by a URL. Ensure that URL matches the account and application you are viewing in the New Relic UI. - Ensure the New Relic agent is configured to start in the environment you're deploying to. For more information, see Controlling when the Ruby agent starts.
- If no errors are obvious at the
info
level, generate detailed debug logs. - Try updating to the latest version of the newrelic_rpm gem.
- If you are using something other than Rails, set
RACK_ENV
to an environment appearing in thenewrelic.yml
file, such as development or production.