On Tue, Oct 21, 2008 at 01:19:15PM +0800, utopia zh wrote: > 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.
Another option would be to just cache the values in global variables and only regenerate the statistics from the underlying statvfs() if a certain threshold is passed (5 seconds, 60 seconds, whatever suits your needs) > 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? I want this feature as well. I don't think there is any way to do this currently. mh ------------------------------------------------------------------------- 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

