diff --git a/.gitignore b/.gitignore index c93797d..54df373 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ examples/config.test.json build dist pymonitor.egg-info +testenv diff --git a/README.md b/README.md index da91a73..f1a3d59 100644 --- a/README.md +++ b/README.md @@ -96,3 +96,10 @@ Roadmap * Complete API docs * More builtin monitors * Local logging in case ES can't be reached + +Changelog +--------- + +*0.1.0:* renamed fields with names containing dots for elasticsearch 2.0 compatibility +*0.0.1:* initial release! + diff --git a/pymonitor/__init__.py b/pymonitor/__init__.py index f102a9c..3dc1f76 100644 --- a/pymonitor/__init__.py +++ b/pymonitor/__init__.py @@ -1 +1 @@ -__version__ = "0.0.1" +__version__ = "0.1.0" diff --git a/pymonitor/daemon.py b/pymonitor/daemon.py index 4431181..92bb2ad 100755 --- a/pymonitor/daemon.py +++ b/pymonitor/daemon.py @@ -82,7 +82,7 @@ class Backend: Fetch generic system info that is sent with every piece of monitoring data """ self.sysinfo["hostname"] = sysinfo.hostname() - self.sysinfo["hostname.raw"] = self.sysinfo["hostname"] + self.sysinfo["hostname_raw"] = self.sysinfo["hostname"] self.sysinfo["ipaddr"] = sysinfo.ipaddr() def get_index_name(self): @@ -106,7 +106,7 @@ class Backend: "hostname": { "type": "string" }, - "hostname.raw": { + "hostname_raw": { "type" : "string", "index" : "not_analyzed" } diff --git a/pymonitor/monitors/diskio.py b/pymonitor/monitors/diskio.py index 26608cb..813f4c9 100644 --- a/pymonitor/monitors/diskio.py +++ b/pymonitor/monitors/diskio.py @@ -11,7 +11,7 @@ def diskio(disks=[]): continue stats = { "disk": disk, - "disk.raw": 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), @@ -31,7 +31,7 @@ mapping = { "disk": { "type": "string" }, - "disk.raw": { + "disk_raw": { "type": "string", "index" : "not_analyzed" }, diff --git a/pymonitor/monitors/diskspace.py b/pymonitor/monitors/diskspace.py index 4179bf8..b2dae50 100644 --- a/pymonitor/monitors/diskspace.py +++ b/pymonitor/monitors/diskspace.py @@ -6,7 +6,7 @@ def diskspace(filesystems=[]): info = { "fs": fs, - "fs.raw": fs, + "fs_raw": fs, "diskfree": stats.f_bsize * stats.f_bavail, "diskused": (stats.f_blocks-stats.f_bavail) * stats.f_bsize, "disksize": stats.f_bsize * stats.f_blocks, @@ -44,7 +44,7 @@ mapping = { "fs": { "type": "string" }, - "fs.raw": { + "fs_raw": { "type" : "string", "index" : "not_analyzed" }, diff --git a/requirements.txt b/requirements.txt index 8a705a7..e8420ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -elasticsearch==2.1.0 +elasticsearch==2.2.0 psutil==3.3.0 PyYAML==3.11