diff options
author | Christopher De Cairos <cade@mozillafoundation.org> | 2015-06-18 15:48:13 -0400 |
---|---|---|
committer | Christopher De Cairos <cade@mozillafoundation.org> | 2015-06-18 15:48:13 -0400 |
commit | 2817933dfc6bcaba670d6ebd7b84a57bd621113b (patch) | |
tree | 6248c25d4590515df7778cb5d99bc5571aa6366d | |
parent | 447a29d6244725467ab214a5daea736e11579e3f (diff) | |
parent | 1fd159e1f800eb0143eaead78ce7aa25fc6b804b (diff) |
Merge pull request #325 from cadecairos/newrelic
Add Newrelic agent
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | sample.env | 11 | ||||
-rw-r--r-- | web/index.js | 1 |
4 files changed, 14 insertions, 0 deletions
@@ -5,3 +5,4 @@ styles.css* public/tests/mocha* .env npm-debug* +newrelic_agent.log diff --git a/package.json b/package.json index 2d555e8..ba1ba2a 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "isomorphic-fetch": "^2.0.1", "joi": "^6.0.8", "jsx-loader": "^0.12.2", + "newrelic": "^1.20.1", "pass-test": "1.0.3", "pg": "^4.3.0", "react": "^0.12.2", @@ -8,3 +8,14 @@ export SECURE_COOKIES=false export URI=http://localhost:1234 export GA_TRACKING_ID= export GA_DEBUG= + +## NewRelic Configuration +## See https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration +export NEW_RELIC_ENABLED=false +export NEW_RELIC_NO_CONFIG_FILE=true +export NEW_RELIC_HOME='./node_modules/newrelic' +export NEW_RELIC_LICENSE_KEY=newrelic license key +export NEW_RELIC_APP_NAME=id.webmaker.org +export NEW_RELIC_CAPTURE_PARAMS=true +export NEW_RELIC_LOG_LEVEL=info +export NEW_RELIC_BROWSER_MONITOR_ENABLE=false diff --git a/web/index.js b/web/index.js index 136cc5f..b2c1cd3 100644 --- a/web/index.js +++ b/web/index.js @@ -1,4 +1,5 @@ require('habitat').load(); +require('newrelic'); var Hoek = require('hoek'); |