From 21167676e49c553a7072a52dd9a3a2d84d39e44b Mon Sep 17 00:00:00 2001 From: Geezabiscuit <69518121+Geezabiscuit@users.noreply.github.com> Date: Tue, 11 Aug 2020 15:02:27 +0100 Subject: [PATCH] Update node-exporter-freebsd.json Replace 'node_memory_swap_in_bytes_total' with 'node_memory_swap_size_bytes'. Changes the calculation to ((used swap * 100) / swap size), giving used swap as a percentage of the maximum available swap. --- prometheus/node-exporter-freebsd.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/node-exporter-freebsd.json b/prometheus/node-exporter-freebsd.json index c2018af..5ae22d0 100644 --- a/prometheus/node-exporter-freebsd.json +++ b/prometheus/node-exporter-freebsd.json @@ -427,7 +427,7 @@ "pluginVersion": "6.7.3", "targets": [ { - "expr": "(node_memory_swap_used_bytes{instance=\"$node\",job=\"$job\"} * 100) / node_memory_swap_in_bytes_total{instance=\"$node\",job=\"$job\"}", + "expr": "(node_memory_swap_used_bytes{instance=\"$node\",job=\"$job\"} * 100) / node_memory_swap_size_bytes{instance=\"$node\",job=\"$job\"}", "intervalFactor": 1, "refId": "A", "step": 900 @@ -3659,4 +3659,4 @@ "list": [] }, "version": 4 -} \ No newline at end of file +}