mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-17 11:44:51 -04:00
stats: Add http500, memoryUsage, pendingEdits gauges
and turn edits metric into a timer instead of a simple meter
This commit is contained in:
parent
387091c5c9
commit
3ad4b1b837
3 changed files with 14 additions and 2 deletions
|
@ -23,10 +23,15 @@
|
|||
|
||||
var log4js = require('log4js')
|
||||
, async = require('async')
|
||||
, stats = require('./stats')
|
||||
;
|
||||
|
||||
log4js.replaceConsole();
|
||||
|
||||
stats.gauge('memoryUsage', function() {
|
||||
return process.memoryUsage().rss
|
||||
})
|
||||
|
||||
var settings
|
||||
, db
|
||||
, plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue