Hi,
I'm recently working on the gmond python mode. I found that for some
metrics, it will be beneficial if we can return multiple metric values in
the single callback.
For example, if we want to get usage information about disks (total, used,
free), we can get these values via a single statvfs call, but in order to
send these metrics out using python module, we need to call statvfs for 3
times.
There maybe some more time-consuming examples. For example, we may need to
parse a xml to get some values, it would save a lot of efforts if we can
fill the value of multiple metric at the same time.
I thought that maybe OK for python module if we just return
Value1:Values2:Value3, but in that case, we will not be able to get pictures
from ganglia/rrdtools.
Another question about python module is that: for some dynamically changed
metrics (e.g. we may need to handle adding/removing storage devices), could
we add/remove metric entry in pyconf on the fly? I noticed that using "gmond
-m" will be able to get all entries of metrics according to metric_init, is
there any way to let gmond collect metrics according to metric entries given
by metric_init of python script (instead of from conf.d/*.pyconf)? Or we
can go still further to let gmond call metric_init every period of time?
Any comments? Thanks.
Regards,
Hang
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general