Rich, this is actually where I see the future direction for gmond - having all metrics configurable.
But if ysou do this you may end up with slightly different "gmonds". We need to find a way to make those work together seamlessly. Cheers Martin --- Richard Mohr <[EMAIL PROTECTED]> wrote: > On Fri, 2007-03-02 at 07:40 -0800, Martin Knoblauch wrote: > > > My vision for the future would include a completely configurable > set > > of core metrics for "gmond". But in a way where different gmonds > still > > can work together in some meaningfull way. > > > > For example we have to rework the metrics array mechanism in > > protocol.x to be much more flexibel. Something that might introduce > > incompatibilities to 3.0.x. > > Is there any reason why most of the sutff in protocol.x can't be > ditched > in favor of treating every metric like a "user defined" metric? In > my > mind, the proper thing to do is to have gmond operate in much the > same > way that gmetric does. > > The gmetric code just parses the command line to determine the > metric's > name, type, slope, etc. The gmond.conf file could maybe support some > syntax like this: > > metric { > name = "cpu_idle" > type = "float" > slope = "both" > format = "%.1f" > value_threshold = "5.0" > } > > Essentially this just moves the ganglia_25_metric_array from > protocol.x > into gmond.conf. > > But probably a better way would be to change the type of value used > by > the functions that collect the metrics. Instead of having them > return > g_val_t (which is nothing more than a union of all possible value > types), they could return something a bit more complex. For example, > just take struct Ganglia_25metric and replace "int key;" with > "g_val_t > value;" Each metric is now responsible for reporting info about > itself, > and gmond doesn't have to care about those details. > > Or maybe I'm just naive, and I don't fully understand some of the XDR > related details.... > > -- > Rick Mohr > Systems Developer > Ohio Supercomputer Center > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Ganglia-developers mailing list > Ganglia-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ganglia-developers > > ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de