From 030e82a9f9da63f038e89efc25f4b657e5a9d818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Vla=C5=A1i=C4=87?= Date: Tue, 20 Mar 2018 15:03:22 +0100 Subject: [PATCH] Add memory rss to statsd storage --- storage/statsd/statsd.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/storage/statsd/statsd.go b/storage/statsd/statsd.go index 03f4d015..b9dd3bfb 100644 --- a/storage/statsd/statsd.go +++ b/storage/statsd/statsd.go @@ -41,6 +41,8 @@ const ( colMemoryUsage string = "memory_usage" // Working set size colMemoryWorkingSet string = "memory_working_set" + // Resident set size + colMemoryRSS string = "memory_rss" // Cumulative count of bytes received. colRxBytes string = "rx_bytes" // Cumulative count of receive errors encountered. @@ -80,6 +82,9 @@ func (self *statsdStorage) containerStatsToValues( // Working set size series[colMemoryWorkingSet] = stats.Memory.WorkingSet + // Resident set size + series[colMemoryRSS] = stats.Memory.RSS + // Network stats. series[colRxBytes] = stats.Network.RxBytes series[colRxErrors] = stats.Network.RxErrors