Chuck,

out of interest, when you say you use the gmetric interface, are
you still doing XDR binary encoding for the core metrics, or are
you having all the metrics as sets of strings (ala gmetric)?

kind regards,
richard

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chuck Simmons
Sent: 28 July 2006 20:22
To: ganglia-developers@lists.sourceforge.net
Subject: Re: [Ganglia-developers] Ganglia-developers Digest, Vol 2,
Issue 17


With respect to the discussions on gmond plugins and sample rates for 
/proc files... I use a slightly different approach than is being
discussed.

I ripped all (well, most) of the metric gathering code out of 'gmond'.  
I then implemented code that uses the 'gmetric' interface to publish 
metrics.  [In some sense, I use 'gmetric' as the plug-in interface.]

I organized the metric gathering code around /proc files.  This is 
roughly equivalent to collection groups.  The basic idea is to read in a

/proc file, parse the entire contents into a set of metrics, and publish

the metrics that need publishing.

It's my belief that structuring the code to process a /proc file at a 
time (instead of processing a metric from a cached /proc file) reduces 
the number of lines of code.  Additionally, this type of approach may be

advantageous for handling variable length /proc files such as publishing

network statistics per interface or disk I/O statistics per disk drive.

Cheers, Chuck



------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers
------------------------------------------------------------------------
For more information about Barclays Capital, please visit our web site at 
http://www.barcap.com.

Internet communications are not secure and therefore the Barclays Group does 
not accept legal responsibility for the contents of this message.  Although the 
Barclays Group operates anti-virus programmes, it does not accept 
responsibility for any damage whatsoever that is caused by viruses being 
passed.  Any views or opinions presented are solely those of the author and do 
not necessarily represent those of the Barclays Group.  Replies to this email 
may be monitored by the Barclays Group for operational or business reasons.
------------------------------------------------------------------------

Reply via email to