> I'm not sure what you are looking for. The purpose of the code that I > referred to was to show how a module would generate the metric definitions > during the initialization phase of gmond. Basically what happens is that > when gmond is started it loads each module and calls the metric_init function > for each module. At that point each module has the opportunity to tell gmond > what metrics it supports by passing back an array of metric definitions. > That is how gmond determines which module supports which metrics. The > contents of the metric definition array is completely up to the module > itself. However once the module returns the list of metric definitions, that > list can not be changed until the next time that gmond stops and restarts. > There is no way to alter the list of metrics that gmond is monitoring on the > fly during normal gmond operation. If the latter is what you are looking > for, gmond does not support on-the-fly functionality yet. > > >
I don't want to change anything after a module starts. Changes to which metrics are being collected can wait until a restart. But- every time gmond restarts- this module may be collecting a different number of standard metrics. So I don't need to change the metadata of the metrics themselves- I just need to say at start: "OK we are collecting these X metrics"-where X is variable and will change only at a restart- but varies between restarts. No changes need be made after initialization. I hope this clarifies things a bit. Thanks, Sylvester ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers