-
Notifications
You must be signed in to change notification settings - Fork 8
New Relic
Conor McNamara edited this page May 20, 2015
·
1 revision
Follow these steps to get your local pubstack applications reporting to New Relic:
-
If you don't already have access to New Relic, request it from our Ops/Support team, including access to the "NBCU - pubstack" account.
-
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
).
- Reload and re-provision pubstack. On your host machine, run:
$ vagrant reload --provision
-
Load any page of one of your pubstack sites in your web browser.
-
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.
- After a while, you should see data in the
PREFIX - SHORTNAME
account in New Relic.