aboutsummaryrefslogtreecommitdiff
path: root/collector
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2020-02-19 15:52:47 +0100
committerBen Kochie <superq@gmail.com>2020-02-19 15:52:47 +0100
commit1a75bc7b5039502641f41382a97031ae459455c5 (patch)
tree9a187bbd7b5a2dc4277b06b07006f5219418d011 /collector
parent982853369737e9c81361bf2210f1f9a8cfd1cf14 (diff)
downloadprometheus_node_collector-1a75bc7b5039502641f41382a97031ae459455c5.tar.bz2
prometheus_node_collector-1a75bc7b5039502641f41382a97031ae459455c5.tar.xz
prometheus_node_collector-1a75bc7b5039502641f41382a97031ae459455c5.zip
Fix up Darwin swap metrics
* Add a changelog entry. * Remove redundant swap free metric. Signed-off-by: Ben Kochie <superq@gmail.com>
Diffstat (limited to 'collector')
-rw-r--r--collector/meminfo_darwin.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/collector/meminfo_darwin.go b/collector/meminfo_darwin.go
index 87f3e5a..da443cd 100644
--- a/collector/meminfo_darwin.go
+++ b/collector/meminfo_darwin.go
@@ -69,7 +69,6 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) {
69 "swapped_out_bytes_total": ps * float64(vmstat.pageouts), 69 "swapped_out_bytes_total": ps * float64(vmstat.pageouts),
70 "total_bytes": float64(total), 70 "total_bytes": float64(total),
71 "swap_used_bytes": float64(swap.xsu_used), 71 "swap_used_bytes": float64(swap.xsu_used),
72 "swap_free_bytes": float64(swap.xsu_avail),
73 "swap_total_bytes": float64(swap.xsu_total), 72 "swap_total_bytes": float64(swap.xsu_total),
74 }, nil 73 }, nil
75} 74}