Skip to content

Commit

Permalink
IN-3502: collect node memory available (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsnyder788 authored May 6, 2021
1 parent a5ad214 commit a5c9b4a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.2 as build
FROM golang:1.16.3 as build
ENV DOCKER_BUILD=1
ADD . /home/do-agent
WORKDIR /home/do-agent
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ go = docker run --rm -i \
-e "GOCACHE=$(docker_dir)/target/.cache/go" \
-v "$(CURDIR):$(docker_dir)" \
-w "$(docker_dir)" \
golang:1.16.2 \
golang:1.16.3 \
go
else
go = GOOS=$(GOOS) \
Expand Down
1 change: 1 addition & 0 deletions pkg/collector/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var metricWhitelist = []string{
"node_network_transmit_bytes_total",

"node_memory_memtotal_bytes",
"node_memory_memavailable_bytes",
"node_memory_memfree_bytes",
"node_memory_cached_bytes",
"node_memory_swapcached_bytes",
Expand Down
1 change: 1 addition & 0 deletions pkg/decorate/compat/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var nameConversions = map[string]string{
"node_memory_memtotal_bytes": "sonar_memory_total",
"node_memory_memfree_bytes": "sonar_memory_free",
"node_memory_cached_bytes": "sonar_memory_cached",
"node_memory_memavailable_bytes": "sonar_memory_available",
"node_memory_swapcached_bytes": "sonar_memory_swap_cached",
"node_memory_swapfree_bytes": "sonar_memory_swap_free",
"node_memory_swaptotal_bytes": "sonar_memory_swap_total",
Expand Down

0 comments on commit a5c9b4a

Please sign in to comment.