Merge pull request #1908 from IvanVlasic/statsd-memory-rss

Add memory rss to statsd storage
This commit is contained in:
David Ashpole 2018-03-20 09:30:04 -07:00 committed by GitHub
commit 189f5b941e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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