Hmm... I'm having issues graphing the data in a useful manner. df is giving me several values for type_instance. root, boot, reserved, used, and free.
If it's root or boot, I get two fields called used and free.
If it's reserved, used, or free, I get one field called value.
And, after some research while writing this post, I figured out that the difference is because of different collectd versions. Ubuntu 12.04 has 4.10.1, and Ubuntu 14.04 has 5.4.0.
CollectD 4.10.1 has the data with the used and free fields.
"_source": {
"host": "hostname",
"@timestamp": "2015-10-23T23:05:14.000Z",
"type_instance": "root",
"plugin": "df",
"collectd_type": "df",
"used": 5152854016,
"free": 14655479808,
"@version": "1",
"type": "collectd"
},
5.4.0 has the data with the value field.
"_source": {
"host": "hostname2",
"@timestamp": "2015-10-23T23:05:08.225Z",
"type_instance": "free",
"plugin": "df",
"plugin_instance": "boot",
"collectd_type": "df_complex",
"value": 58056704,
"@version": "1",
"type": "collectd"
},
So how do I build a decent visualization? I'd like a split line graph that shows the max values for free and used. That's easy to do with data from 4.10. But how do I add in the data from 5.4? It's a separate doc for each free or used value... I could do a version specific visualization for 5.4, but that's rather clunky. Is there a way to use the scripting feature to do this?
Any thoughts?