Currently, multidisk python module must be configured manually. As
3.1.6 and above supports name_match, I tried name_match for this
module.

There are some details to note:
1. The original code use <dev-name-by-path>-disk_{used,total} for
metric name, this is fine for tranditional naming scheme, but bad for
device name such as
/dev/disk/by-uuid/0e6ebeb8-e5ea-46fb-b1a1-8633f142b5a3;
2. Generally, we want to know the mounted filesystem name, not the device name;

So I change the metrics naming scheme to
disk_{used,total}-<filesystem-mount-path>. The '/' is replace with
'-', and specially, root filesystem is replaced by 'rootfs'.

Patch is attached.

Attachment: multidisk.patch
Description: Binary data

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to