Merge pull request #1908 from IvanVlasic/statsd-memory-rss
Add memory rss to statsd storage
This commit is contained in:
commit
189f5b941e
@ -41,6 +41,8 @@ const (
|
|||||||
colMemoryUsage string = "memory_usage"
|
colMemoryUsage string = "memory_usage"
|
||||||
// Working set size
|
// Working set size
|
||||||
colMemoryWorkingSet string = "memory_working_set"
|
colMemoryWorkingSet string = "memory_working_set"
|
||||||
|
// Resident set size
|
||||||
|
colMemoryRSS string = "memory_rss"
|
||||||
// Cumulative count of bytes received.
|
// Cumulative count of bytes received.
|
||||||
colRxBytes string = "rx_bytes"
|
colRxBytes string = "rx_bytes"
|
||||||
// Cumulative count of receive errors encountered.
|
// Cumulative count of receive errors encountered.
|
||||||
@ -80,6 +82,9 @@ func (self *statsdStorage) containerStatsToValues(
|
|||||||
// Working set size
|
// Working set size
|
||||||
series[colMemoryWorkingSet] = stats.Memory.WorkingSet
|
series[colMemoryWorkingSet] = stats.Memory.WorkingSet
|
||||||
|
|
||||||
|
// Resident set size
|
||||||
|
series[colMemoryRSS] = stats.Memory.RSS
|
||||||
|
|
||||||
// Network stats.
|
// Network stats.
|
||||||
series[colRxBytes] = stats.Network.RxBytes
|
series[colRxBytes] = stats.Network.RxBytes
|
||||||
series[colRxErrors] = stats.Network.RxErrors
|
series[colRxErrors] = stats.Network.RxErrors
|
||||||
|
Loading…
Reference in New Issue
Block a user