From e3e8d8046673ee19fca13f1013217763b5f6f426 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 17 Aug 2015 15:18:57 +0100 Subject: [PATCH] remove non-working metrics from graphite --- libraries/metrics/memory.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/metrics/memory.coffee b/libraries/metrics/memory.coffee index 30f9379fd3..1822b384bb 100644 --- a/libraries/metrics/memory.coffee +++ b/libraries/metrics/memory.coffee @@ -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)