Skip to content
Conor McNamara edited this page May 20, 2015 · 1 revision

Follow these steps to get your local pubstack applications reporting to New Relic:

  1. If you don't already have access to New Relic, request it from our Ops/Support team, including access to the "NBCU - pubstack" account.

  2. Edit your config.yml file to include the following:

...
config:
  newrelic:
    license: REPLACE_ME
    prefix: REPLACE_ME
  ...

The license key is accessible from the account settings for the "NBCU - pubstack" account. Ask another dev for help if you can't find it Also, set prefix to a string unique to you. For example, your computer or GitHub username (i.e. conortm).

  1. Reload and re-provision pubstack. On your host machine, run:
$ vagrant reload --provision
  1. Load any page of one of your pubstack sites in your web browser.

  2. Check the New Relic log on your VM:

$ vagrant ssh
$ tail /var/log/newrelic/newrelic-daemon.log

You should see something like:

...
(TIMESTAMP) info: ['PREFIX - SHORTNAME'] 'Reporting to: https://rpm.newrelic.com/accounts/...'

Where PREFIX and SHORTNAME are from your config.newrelic.prefix and sites[].shortname values, respectively.

  1. After a while, you should see data in the PREFIX - SHORTNAME account in New Relic.
Clone this wiki locally