On Tue, Jul 01, 2008 at 08:36:20AM -0600, Brad Nicholes wrote: > <[EMAIL PROTECTED]> wrote: > > > > Just a few questions about the multi-disk module implemented in Python: > > > > http://ganglia.svn.sourceforge.net/viewvc/ganglia/trunk/monitor-core/gmo > > nd/python_modules/disk/multidisk.py?revision=846&view=markup > > > > - The code seems to be intended for Linux - what is the intended > > strategy for handling multiple architectures (e.g. Linux and Solaris)? > > Currently, there really isn't any kind of strategy.
and the fact that is supported in Linux (and only some versions of them) is reflected implicitly by the fact that `make install` won't install any of the python modules. > > Should a single module handle all architectures, or should there be a > > different module for each architecture? Also, does gmond have some way > > Ideally a single module should be able to handle all architectures. > Practically, this may not be possible with some metrics. My guess is that > for some modules like multi-disk, there will probably have to be different > modules for each architecture or at least for architectures that are > different enough to make it impractical for a single implementation. a custom metric module (and specially a python one) is meant to be customized to extract a specific metric out of a system in a maintainable way (instead of having to integrate your application with gmetric or having scheduled gmetric calls through cron) and so IMHO it should be better kept simple and specific to the platform/system it is targeting (so it will be also faster and lighter). there is nothing that prevents you having different implementations in different systems with the same metric name, or a single implementation that will be able to support all platforms you are interested on, but if the metric is referenced in the configuration (which means it was added by you) it is expected to work there. Carlo ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Ganglia-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-developers
