diff options
author | Marcel Klehr <mklehr@gmx.net> | 2013-10-27 21:43:32 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2013-10-27 21:43:32 +0100 |
commit | 3ad4b1b837729ba68127fe31f4db847ecf75519b (patch) | |
tree | 8663f0cdcd89c9fca8c797db03904bba957a7dd7 /src/node/hooks/express/errorhandling.js | |
parent | 387091c5c9f15bb39075ebfaedd0239cd3c29416 (diff) | |
download | etherpad-lite-3ad4b1b837729ba68127fe31f4db847ecf75519b.zip |
stats: Add http500, memoryUsage, pendingEdits gauges
and turn edits metric into a timer instead of a simple meter
Diffstat (limited to 'src/node/hooks/express/errorhandling.js')
-rw-r--r-- | src/node/hooks/express/errorhandling.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node/hooks/express/errorhandling.js b/src/node/hooks/express/errorhandling.js index 825c5f3b..087dd50e 100644 --- a/src/node/hooks/express/errorhandling.js +++ b/src/node/hooks/express/errorhandling.js @@ -1,5 +1,6 @@ var os = require("os"); var db = require('../../db/DB'); +var stats = require('ep_etherpad-lite/node/stats') exports.onShutdown = false; @@ -40,6 +41,7 @@ exports.expressCreateServer = function (hook_name, args, cb) { // allowing you to respond however you like res.send(500, { error: 'Sorry, something bad happened!' }); console.error(err.stack? err.stack : err.toString()); + stats.meter('http500').mark() }) //connect graceful shutdown with sigint and uncaughtexception |