Skip to content

Commit f33fe4f

Browse files
committed
refactor: change serMemorySocketMemory -> serMemorySocket
Signed-off-by: Christina Sørensen <[email protected]>
1 parent 43a2842 commit f33fe4f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cmd/internal/storage/influxdb/influxdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const (
6969
// Size of memory mapped files in bytes
7070
serMemoryMappedFile string = "memory_mapped_file"
7171
// Size of socket memory in bytes
72-
serMemorySocketMemory string = "memory_socket_memory"
72+
serMemorySocket string = "memory_socket_memory"
7373
// Working set size
7474
serMemoryWorkingSet string = "memory_working_set"
7575
// Total active file size
@@ -261,7 +261,7 @@ func (s *influxdbStorage) memoryStatsToPoints(
261261
// Size of memory mapped files in bytes
262262
points = append(points, makePoint(serMemoryMappedFile, stats.Memory.MappedFile))
263263
// Size of socket memory in bytes
264-
points = append(points, makePoint(serMemorySocketMemory, stats.Memory.SocketMemory))
264+
points = append(points, makePoint(serMemorySocket, stats.Memory.SocketMemory))
265265
// Working Set Size
266266
points = append(points, makePoint(serMemoryWorkingSet, stats.Memory.WorkingSet))
267267
// Total Active File Size

cmd/internal/storage/influxdb/influxdb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func TestContainerStatsToPoints(t *testing.T) {
259259
assertContainsPointWithValue(t, points, serMemoryRss, stats.Memory.RSS)
260260
assertContainsPointWithValue(t, points, serMemorySwap, stats.Memory.Swap)
261261
assertContainsPointWithValue(t, points, serMemoryMappedFile, stats.Memory.MappedFile)
262-
assertContainsPointWithValue(t, points, serMemorySocketMemory, stats.Memory.SocketMemory)
262+
assertContainsPointWithValue(t, points, serMemorySocket, stats.Memory.SocketMemory)
263263
assertContainsPointWithValue(t, points, serMemoryUsage, stats.Memory.Usage)
264264
assertContainsPointWithValue(t, points, serMemoryWorkingSet, stats.Memory.WorkingSet)
265265
assertContainsPointWithValue(t, points, serMemoryTotalActiveFile, stats.Memory.TotalActiveFile)

cmd/internal/storage/statsd/statsd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const (
5656
// Size of memory mapped files in bytes
5757
serMemoryMappedFile string = "memory_mapped_file"
5858
// Size of socket memory in bytes
59-
serMemorySocketMemory string = "memory_socket_memory"
59+
serMemorySocket string = "memory_socket_memory"
6060
// Working set size
6161
serMemoryWorkingSet string = "memory_working_set"
6262
// Total active file size
@@ -164,7 +164,7 @@ func (s *statsdStorage) memoryStatsToValues(series *map[string]uint64, stats *in
164164
// Size of memory mapped files in bytes
165165
(*series)[serMemoryMappedFile] = stats.Memory.MappedFile
166166
// Size of socket memory in bytes.
167-
(*series)[serMemorySocketMemory] = stats.Memory.SocketMemory
167+
(*series)[serMemorySocket] = stats.Memory.SocketMemory
168168
// Working Set Size
169169
(*series)[serMemoryWorkingSet] = stats.Memory.WorkingSet
170170
// Total Active File Size

cmd/internal/storage/stdout/stdout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const (
5858
// Size of memory mapped files in bytes
5959
serMemoryMappedFile string = "memory_mapped_file"
6060
// Size of socket memory in bytes
61-
serMemorySocketMemory string = "memory_socket_memory"
61+
serMemorySocket string = "memory_socket_memory"
6262
// Working set size
6363
serMemoryWorkingSet string = "memory_working_set"
6464
// Total active file
@@ -169,7 +169,7 @@ func (driver *stdoutStorage) memoryStatsToValues(series *map[string]uint64, stat
169169
// Size of memory mapped files in bytes
170170
(*series)[serMemoryMappedFile] = stats.Memory.MappedFile
171171
// Size of socket memory in bytes
172-
(*series)[serMemorySocketMemory] = stats.Memory.SocketMemory
172+
(*series)[serMemorySocket] = stats.Memory.SocketMemory
173173
// Working Set Size
174174
(*series)[serMemoryWorkingSet] = stats.Memory.WorkingSet
175175
// Total Active File

0 commit comments

Comments
 (0)