adding newrelic - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 2861a2c16e5c6aade1cba0c4bc76b820d6367203
(DIR) parent 0f971f44146d48c4f29105a4b7429b591923320d
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
Date: Thu, 6 Jul 2017 20:30:42 +0100
adding newrelic
Diffstat:
A newrelic.js | 26 ++++++++++++++++++++++++++
M package.json | 1 +
2 files changed, 27 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/newrelic.js b/newrelic.js
@@ -0,0 +1,26 @@
+'use strict';
+
+/**
+ * New Relic agent configuration.
+ *
+ * See lib/config.default.js in the agent distribution for a more complete
+ * description of configuration variables and their potential values.
+ */
+exports.config = {
+ /**
+ * Array of application names.
+ */
+ app_name: ['seedlinux'],
+ /**
+ * Your New Relic license key.
+ */
+ license_key: process.env.NR_KEY,
+ logging: {
+ /**
+ * Level at which to log. 'trace' is most useful to New Relic when diagnosing
+ * issues with the agent, 'info' and higher will impose the least overhead on
+ * production applications.
+ */
+ level: 'info'
+ }
+}
(DIR) diff --git a/package.json b/package.json
@@ -20,6 +20,7 @@
"helmet": "^3.6.1",
"mongoose": "4.10.8",
"morgan": "~1.8.1",
+ "newrelic": "^1.40.0",
"parse-torrent": "^5.8.3",
"pug": "^2.0.0-rc.2",
"webtorrent-health": "^1.1.1"