diff options
author | Ben Kochie <superq@gmail.com> | 2020-02-19 15:52:47 +0100 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2020-02-19 15:52:47 +0100 |
commit | 1a75bc7b5039502641f41382a97031ae459455c5 (patch) | |
tree | 9a187bbd7b5a2dc4277b06b07006f5219418d011 /collector | |
parent | 982853369737e9c81361bf2210f1f9a8cfd1cf14 (diff) | |
download | prometheus_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.go | 1 |
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 | } |