>>> On 11/2/2007 at 2:18 PM, in message
<[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
wrote:
> Quoting Brad Nicholes <[EMAIL PROTECTED]>:
> 
>> 2-* Add a GROUP attribute (comma delimited) to the XDR data
>>     This would allow metrics to declare the category that they   
>> belong to. The category should be added at the metric definition   
>> level within the metric module rather than a directive in the .conf   
>> file.  Again if there were a more flexible way to add extra metric   
>> metadata to the XDR package, that would be the preferred method.    
>> Short of that, I just plan to add an attribute that would hold a   
>> comma delimited list of group names that a metric can belong to.
> 
> I think that adding group names as multiple entities in their own  
> right, rather than a CSV list, would make it much easier to find  
> metrics that are part of a given group.
> 
> <GANGLIA_XML>
>    <CLUSTER>
>      <HOST>
>        <METRIC name='queries_per_second'>
>          <GROUP>mysql</GROUP>
>          <GROUP>other-group</GROUP>
>        </METRIC>
>      </HOST>
>    </CLUSTER>
> </GANGLIA_XML>
> 
> With something like that, it's easy to find all metrics which are in a  
> group with a simple XPath query.
> 
> $query = "/GANGLIA_XML/CLUSTER/HOST/METRIC[GROUP='mysql']"
> 
> With the csv list approach, you'd have to select all metrics and do  
> extra string processing on the 'GROUP' attribute to find the ones you  
> wanted.
> 
> Just my 2 cents,
> alex


Right.  The comma delimited reference is just they way that XDR will transport 
the group data.  When the group data is rendered in XML, it will look just like 
you described.

Brad


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to