Add memory rss to statsd storage

This commit is contained in:
Ivan Vlašić 2018-03-20 15:03:22 +01:00
parent 436d75ce8d
commit 030e82a9f9

View File

@ -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