From 1a75bc7b5039502641f41382a97031ae459455c5 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Wed, 19 Feb 2020 15:52:47 +0100 Subject: [PATCH] Fix up Darwin swap metrics * Add a changelog entry. * Remove redundant swap free metric. Signed-off-by: Ben Kochie --- CHANGELOG.md | 1 + collector/meminfo_darwin.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e04c9ad0..188906a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ * [FEATURE] Add new softnet collector #1576 * [FEATURE] Add RAPL collector #1523 * [FEATURE] Add Btrfs collector #1512 +* [FEATURE] Add swap usage on darwin #1508 * [ENHANCEMENT] Collect InfiniBand port state and physical state #1357 * [ENHANCEMENT] Include additional XFS runtime statistics. #1423 * [ENHANCEMENT] Report non-fatal collection errors in the exporter metric. #1439 diff --git a/collector/meminfo_darwin.go b/collector/meminfo_darwin.go index 87f3e5a9..da443cdd 100644 --- a/collector/meminfo_darwin.go +++ b/collector/meminfo_darwin.go @@ -69,7 +69,6 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) { "swapped_out_bytes_total": ps * float64(vmstat.pageouts), "total_bytes": float64(total), "swap_used_bytes": float64(swap.xsu_used), - "swap_free_bytes": float64(swap.xsu_avail), "swap_total_bytes": float64(swap.xsu_total), }, nil }