remove non-working metrics from graphite

This commit is contained in:
Brian Gough 2015-08-17 15:18:57 +01:00
parent d2af7b24a0
commit e3e8d80466

View file

@ -70,14 +70,14 @@ module.exports = MemoryMonitor =
Metrics.gauge("memory.heaptotal", mem.heapTotal)
Metrics.gauge("memory.heapused", mem.heapUsed)
Metrics.gauge("memory.gc-interval", gcInterval)
Metrics.gauge("memory.cpu-time-bucket", CpuTimeBucket)
#Metrics.gauge("memory.cpu-time-bucket", CpuTimeBucket)
if global.gc? && readyToGc()
gcTime = (executeAndTime global.gc).toFixed(2)
memAfterGc = inMegaBytes process.memoryUsage()
deltaMem = updateMemoryStats(memBeforeGc, memAfterGc)
logger.log {gcTime, memBeforeGc, memAfterGc, deltaMem, gcInterval, CpuTimeBucket}, "global.gc() forced"
Metrics.timing("memory.gc-time", gcTime)
#Metrics.timing("memory.gc-time", gcTime)
Metrics.gauge("memory.gc-rss-freed", -deltaMem.rss)
Metrics.gauge("memory.gc-heaptotal-freed", -deltaMem.heapTotal)
Metrics.gauge("memory.gc-heapused-freed", -deltaMem.heapUsed)