From c5a89e820168820c667466f182356c71e95d1ee7 Mon Sep 17 00:00:00 2001 From: Michael Salmon Date: Fri, 5 Jun 2015 14:02:28 +0200 Subject: added percen types to swap and df --- plugin/df.json | 20 ++++++++++++++++++++ plugin/swap.json | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) (limited to 'plugin') diff --git a/plugin/df.json b/plugin/df.json index f066dcd..2570163 100644 --- a/plugin/df.json +++ b/plugin/df.json @@ -39,5 +39,25 @@ } }, "legend_format": "%5.1lf%s" + }, + "percent_bytes": { + "title": "Free space percentage ({{PI}}) on {{HOST}}", + "vertical": "Percent", + "type": "stacked", + "legend": { + "reserved": { + "name": "Reserved", + "color": "aaaaaa" + }, + "free": { + "name": "Free", + "color": "00ff00" + }, + "used": { + "name": "Used", + "color": "ff0000" + } + }, + "legend_format": "%5.1lf%%" } } diff --git a/plugin/swap.json b/plugin/swap.json index c443428..15b2768 100644 --- a/plugin/swap.json +++ b/plugin/swap.json @@ -20,6 +20,26 @@ "legend_format": "%5.1lf%s", "base": "1024" }, + "percent": { + "title": "Swap utilization percentage on {{HOST}}", + "vertical": "Percentage", + "type": "stacked", + "legend": { + "free": { + "name": "Free", + "color": "00e000" + }, + "cached": { + "name": "Cached", + "color": "0000ff" + }, + "used": { + "name": "Used", + "color": "ff0000" + } + }, + "legend_format": "%5.1lf%%" + }, "swap_io": { "title": "Swapped I/O pages on {{HOST}}", "vertical": "Pages", -- cgit v1.1