Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Maestrano Nex!™ PaaS can be used to deploy core applications as well as connector. It provides an out-of-the-box module for NewRelic for server and application monitoring.

3.1 - Server Monitoring

To activate server monitoring it is only required to pass the NewRelic License Key to the Nex!™ configuration when deploying the Nex!™ orchestrator. Upon detecting a NewRelic License Key Nex!™ will automatically install the NewRelic agent on all servers.

...

Code Block
languageruby
# NewRelic Configuration
newrelic_license_key: somekey
newrelic_app_name: core-nex-production

You will need to restart the nex service if it's already running.

3.2 - Application Monitoring

For application monitoring it is only required to add the newrelic_app_name and newrelic_license_key environment variables to the application on deployment. This can be achieved using the nex-cli tool.

Code Block
languagebash
# Add NewRelic configuration
nex-cli apps:vars myapp -a newrelic_app_name=somename,newrelic_license_key=somekey


# Restart the application
nex-cli apps:restart myapp


4 - Manual configuration

If you are deploying the Maestrano components without using any of the patterns above you will want to manually configure NewRelic for servers and applications.

4.1 - Server Monitoring

TODO

Application Monitoring

TODO

New Relic Configuration

New Relic server agent

Config file: /etc/newrelic/nrsysmond.cfgThe NewRelic article below explains how to install the NewRelic Server agent for linux distributions (Ubuntu, RHEL/CentOS etc.)

https://docs.newrelic.com/docs/servers/new-relic-servers-linux/installation-configuration/servers-installation-ubuntu-debian
https://docs.newrelic.com/docs/serversgetting-started/new-relic-servers-linux/installation-configuration/servers-installation-redhat-centos

New Relic Torquebox

...

New Relic MongoDB plugin

Config file: /etc/newrelic/newrelic-plugin-agent.cfg
Start agent:
/usr/local/bin/newrelic-plugin-agent -c /etc/newrelic/newrelic-plugin-agent.cfglinux#installation

You will need to add your NewRelic License Key in the NewRelic agent configuration file. This file is usually located at: /etc/newrelic/nrsysmond.cfg

4.2 - Application Monitoring

For each core application and connector you deploy you will need to pass the newrelic_app_name and newrelic_license_key environment variable to the application. You can do this by exporting these environment variables in the application service script (Upstart, Systemd, Init) or by adding these variables into the config/application.yml file of the application:

Code Block
languageruby
# NewRelic Configuration
newrelic_license_key: somekey
newrelic_app_name: core-appname-production