summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher De Cairos <cade@mozillafoundation.org>2015-06-18 15:48:13 -0400
committerChristopher De Cairos <cade@mozillafoundation.org>2015-06-18 15:48:13 -0400
commit2817933dfc6bcaba670d6ebd7b84a57bd621113b (patch)
tree6248c25d4590515df7778cb5d99bc5571aa6366d
parent447a29d6244725467ab214a5daea736e11579e3f (diff)
parent1fd159e1f800eb0143eaead78ce7aa25fc6b804b (diff)
Merge pull request #325 from cadecairos/newrelic
Add Newrelic agent
-rw-r--r--.gitignore1
-rw-r--r--package.json1
-rw-r--r--sample.env11
-rw-r--r--web/index.js1
4 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 30fdf9c..0f1a8e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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",
diff --git a/sample.env b/sample.env
index 9b2ff56..ef75cd0 100644
--- a/sample.env
+++ b/sample.env
@@ -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');
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback