I think what Michael just gave me is good enough for now. This response also implicitely answered some of my questions, such as whether this is doable, whether this is commonly done, on top of more explicitely providing an example of how one should go about doing this with C. I'll relay this information to the coder, thanks!
-----Original Message----- From: Michael Perzl [mailto:[email protected]] Sent: Friday, September 10, 2010 11:32 PM To: Bernard Li Cc: Stevens, Weston J; [email protected] Subject: Re: [Ganglia-general] Adding new metrics to existing groups Hi Weston, I would assume you need to set group correctly to one of the existing ones in your metric init routine. I have done this a couple of times and it works. For instance, for the ibmpower module in routine + static int ibmpower_metric_init ( apr_pool_t *p ) you need to set the group to "ibmpower" to get a new group with that name. + for (i = 0; ibmpower_module.metrics_info[i].name != NULL; i++) + { + /* Initialize the metadata storage for each of the metrics and then + * store one or more key/value pairs. The define MGROUPS defines + * the key for the grouping attribute. */ + MMETRIC_INIT_METADATA( &(ibmpower_module.metrics_info[i]), p ); + MMETRIC_ADD_METADATA( &(ibmpower_module.metrics_info[i]), MGROUP, "ibmpower" ); + } If you want an existing group you need to put the name of the existing group. But as Bernard said, more details and presumably some code might be required..... Regards, Michael On 09/10/2010 11:36 PM, Bernard Li wrote: > Hi Weston: > > On Fri, Sep 10, 2010 at 1:26 PM, Stevens, Weston J > <[email protected]> wrote: > > >> We have tried installing new metrics and experienced an array of problems, >> and one of the modules involves adding metrics to an existing group, and >> we're exploring an array of culprits, some of them based on pure speculation >> like this one here. >> > If you could provide more details about the problems you are > experiencing, we may be able to help you further. > > >> We just want to know if adding metrics to existing groups, for instance >> adding additional process metrics to the 'processes' group, is a good idea. >> Or if new metrics should have their own groups. Is there any conflicts that >> could result from this? Does it have to be done a certain way? >> >> We are actually using C DSOs not Python written by a contractor, and >> he has wondered this himself, and I'm basically relaying his >> question. Version of Ganglia is 3.1.7 >> > I am not aware of any issues of adding metrics to existing groups, > unless this is specific to C DSO. You might want to get your > contractor to send you additional information or even make the post > himself as it would be better to hear it straight from the horse's > mouth. > > Regards, > > Bernard > > ---------------------------------------------------------------------- > -------- Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and accelerate > your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Ganglia-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ganglia-general > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

