Hi Hari.

I've never added new metrics via gmond, always used gmetric and the webfrontend 
requires no modification - new metrics are immediately visible. 

I've added my own iostat-style metrics using gmetric but they are 'per-mounted 
partition'. I access the mount table, that contains the device name<->mount 
point name mapping then I obtain the stats (bytes read/written) via the kstat 
API (Solaris). I also use another system call to get the bytes available on 
each partition just like what you see in 'df'.

The metrics are named just like the partition mount points but I had to 
substitute the backslashes for underscores. It's easy to read because the mount 
point names are instantly recognizable.

I think these metrics are a good candidate for gmetric because I don't need 
them for every monitored host & disk partition.  

----
Yemi

> -----Original Message-----
> From: Hari Pulapaka [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 26, 2004 4:12 PM
> To: ganglia-developers@lists.sourceforge.net
> Subject: [Ganglia-developers] New metric
> 
> Hi,
> 
> I am adding a new metric which shows the number of blocks 
> read and written to a single disk on a node in the cluster 
> (similar to the output of iostat).
> 
> I made the required modifications in gmond, but I am not sure 
> how to display the new metric. I dont know php and as far as 
> I could figure out; the changes that I would need so that 
> when I click on a node, gmetad would throw up a web-page with 
> a plot of blocks_read (similar to
> bytes_in) are:
> 
> 1. show_node.php
> 2. graph.php
> 
> Am I right and/or is there a small document which has details 
> on the web-frontend and structure of the php files?
> 
> Thanks,
> 
> --
> Hari
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Ganglia-developers mailing list
> Ganglia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
> 

Reply via email to