Fix up Darwin swap metrics

* Add a changelog entry.
* Remove redundant swap free metric.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2020-02-19 15:52:47 +01:00
parent 9828533697
commit 1a75bc7b50
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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
}