New Relic is an application performance monitoring tool (amongst other things).
To use with ArchivesSpace you must:
- Signup for an account at newrelic (there is a free tier and paid plans)
- Edit
config.rbto:- activate the
newrelicplugin - add the New Relic license key
- User menu -> API Keys -> Create a key -> Key type: Ingest - License
- add an application name to identify the ArchivesSpace instance in the New Relic dashboard
- activate the
For example, in config.rb:
## You may have other plugins
AppConfig[:plugins] = ['local', 'newrelic']
AppConfig[:newrelic_key] = "enteryourkeyhere"
AppConfig[:newrelic_app_name] = "ArchivesSpace"- Install the New Relic agent library by initializing the plugin:
## For Linux/OSX
$ scripts/initialize-plugin.sh newrelic
## For Windows
% scripts\initialize-plugin.bat newrelic- Start, or restart ArchivesSpace to pick up the configuration.
Within a few minutes the application should be visible in the New Relic dashboard with data being collected.
For advanced configuration the New Relic agent can be configured very conveniently using environment variables.
For example:
NEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT=trueNEW_RELIC_LOG_LEVEL=debug
This allows you to configure the agent without having to directly modify newrelic.yml.