Skip to content

Commit 189f5b9

Browse files
authored
Merge pull request #1908 from IvanVlasic/statsd-memory-rss
Add memory rss to statsd storage
2 parents 436d75c + 030e82a commit 189f5b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

storage/statsd/statsd.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const (
4141
colMemoryUsage string = "memory_usage"
4242
// Working set size
4343
colMemoryWorkingSet string = "memory_working_set"
44+
// Resident set size
45+
colMemoryRSS string = "memory_rss"
4446
// Cumulative count of bytes received.
4547
colRxBytes string = "rx_bytes"
4648
// Cumulative count of receive errors encountered.
@@ -80,6 +82,9 @@ func (self *statsdStorage) containerStatsToValues(
8082
// Working set size
8183
series[colMemoryWorkingSet] = stats.Memory.WorkingSet
8284

85+
// Resident set size
86+
series[colMemoryRSS] = stats.Memory.RSS
87+
8388
// Network stats.
8489
series[colRxBytes] = stats.Network.RxBytes
8590
series[colRxErrors] = stats.Network.RxErrors

0 commit comments

Comments
 (0)