Skip to content

Commit

Permalink
Add memory rss to statsd storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlašić committed Mar 20, 2018
1 parent 436d75c commit 030e82a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions storage/statsd/statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 030e82a

Please sign in to comment.