seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit bc421bdc69ae97f893bc140da1cce77b3b34da16
parent fb544b9a9fb0779e943aa9d055cba9f798404b3f
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Thu,  6 Jul 2017 20:30:42 +0100

adding newrelic

Diffstat:
Anewrelic.js | 26++++++++++++++++++++++++++
Mpackage.json | 1+
2 files changed, 27 insertions(+), 0 deletions(-)

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' + } +} 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"