From 5f39d2c35b522bd0f6fc33f5722af282960c9982 Mon Sep 17 00:00:00 2001 From: Dave Pedu Date: Wed, 9 Dec 2015 21:51:18 -0800 Subject: [PATCH] store disk name unanalyzed too --- pymonitor/monitors/diskio.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymonitor/monitors/diskio.py b/pymonitor/monitors/diskio.py index 3669995..c36dc70 100644 --- a/pymonitor/monitors/diskio.py +++ b/pymonitor/monitors/diskio.py @@ -11,6 +11,7 @@ def diskio(disks=[]): continue stats = { "disk": disk, + "disk.raw": disk, "reads_ps": round(stats.read_count/uptime, 2), "writes_ps":round(stats.write_count/uptime, 2), "read_ps": round(stats.read_bytes/uptime, 2), @@ -30,6 +31,10 @@ mapping = { "disk": { "type": "string" }, + "disk.raw": { + "type": "string", + "index" : "not_analyzed" + }, "reads_ps": { "type": "double" },