tirumal-

the simplest way to add new metrics is to use gmetric.

% gmetric --help

or read the documentation on gmetric.  gmetric is a commandline tool that 
creates a special multicast message and sends it to all hosts in the 
cluster.

---

if you want to build in a custom metric, you will have to recompile gmond.
here is how to do it (all call the metric "pants" for this example).
1.  cd ./gmond
2.  open metric.h and add "pants" to the metric array (it is well 
    commented for help)
3.  add the line
       extern g_val_t pants(void)
    to metric.h as well.
4.  cd ./machines
5.  add a function called "pants" in the file for your architecture...
    e.g. "linux.c" or "hpux.c"
6.  cd .. && make

good luck.  ganglia 3 will allow you to create custom plugins that will 
make this process easier.
-- 
matt

Yesterday, tirumal b wrote forth saying...

> hello,
> 
> i wanted to add some of the metrics but i am confused.
> i can place probably the metrics i want to add with
> the built in metrics but where are the functions
> defined in metric.h written. i haven't found them. so
> if i include my metrics where should i write the func
> though i will define it in metric.h
> 
> Thank you,
> 
> Tirumala Rao Balumuri
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Ganglia-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
> 


Reply via email to