I don't THINK you can do this with a simple call to ganglia's existing
graph.php but I'd have to examine the source code before I could say
definitively.

However, if you have all the relevant RRAs available at the same
place, you can generate the graph you're talking about with a single
call to rrdtool. You can invoke it and have it displayed on demand in
a web browser with one line of PHP code provided you have the right
function call. I'm attaching files with the relevant code.

Rich(ard)

On Tue, Jul 14, 2009 at 2:57 PM, Josh Blender<[email protected]> wrote:
> I've been looking high and low for a solution to this, but haven't found
> anything.  I'm sure somebody has had this requirement before:
> I want to create custom graphs (reports) that include 1 metric from each
> server in the cluster.
> For example, if I have a custom metric that samples MySQL queries per
> second, I need this report to show the QPS from each individual server
> (rather than the average or total of all the servers in the cluster).  The
> key really is that it needs to basically add a line for each server in the
> cluster automatically.  When we deploy a new server, all we do is make sure
> gmond is configured to use the proper multicast channel, and it gets
> automatically added to the cluster.  It needs to also get automatically
> added to this graph, rather than statically adding a field to the rrdtool
> command inside the php code.
> I figure I could do this with some pretty complex PHP code, but I'm sure
> somebody has tackled this problem before, and maybe there's a better
> solution?
> Thanks,
> Josh
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
>



-- 
Richard Edward Horner
Engineer / Composer / Electric Guitar Virtuoso
richhorner.com | rhosts.net | sabayonlinux.org

<<attachment: output_graph.php>>

<<attachment: index.php>>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to