Connection
newrelic-admin status
Check if the New Relic agent is connected to the server and reporting data
newrelic-admin validate-config
Validate the New Relic configuration file
newrelic-admin license-key
Display the configured license key
Configuration
Edit newrelic.ini
Edit the main configuration file for the Python agent
Edit newrelic.yml
Edit the main configuration file for the Ruby/Java agent
newrelic-admin generate-config YOUR_LICENSE_KEY newrelic.ini
Generate a default configuration file
Troubleshooting
newrelic-admin run-python script.py
Run a Python script with New Relic instrumentation
NEW_RELIC_LOG_LEVEL=debug
Set environment variable to increase logging detail
newrelic-admin record-deploy
Record a deployment in New Relic
Instrumentation
newrelic.agent.register_hook()
Register a custom instrumentation hook
newrelic.agent.record_custom_event()
Record custom event data
newrelic.agent.record_custom_metric()
Record custom metric data
Browser Monitoring
newrelic_browser_timing_header()
Insert the JavaScript timing header
newrelic_browser_timing_footer()
Insert the JavaScript timing footer