Hi Larry:

On Mon, May 10, 2010 at 7:52 AM, Larry Compton
<lawrence.comp...@gmail.com> wrote:

> I've been looking at options for building custom graphs for a benchmarking
> effort I'm involved in. We're running Ganglia on a set of machines and we
> need to capture basic performance statistics (CPU, memory, network, and disk
> I/O) for the period of time that the benchmark is running. I've looked at
> capturing XML snapshots and using "rrdtool" to fetch the information from
> the RRD files. However, since my goal is to produce graphs, I'd prefer to
> leverage the Ganglia web interface, since it looks like the graph PHP
> scripts can be used as an API.

Take a look at the calendar add-on for ganglia-web -- it might do what
you wanted:

http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=176

(note this is already available in ganglia trunk, so you could just
check out the code from ganglia trunk and build/install just the
ganglia-web portion).

> Are the parameters to the PHP scripts documented anywhere? I've been playing
> around with the URLs to try to reverse engineer the meaning of the
> parameters, but that's not terribly efficient. Also, I see that there are a
> bunch of PHP scripts in the "graph.d" directory that might do what I need
> them to, but they're not documented. The "sample_report.php" script has some
> useful documentation, but I'm not trying to create a custom graph, I just
> want to send my own start and end time to the existing graphs.
>
> Here's a sample URL. What I need is a web page that lists all of the
> parameters and what they mean...
>
> http://localhost/ganglia/graph.php?g=network_report&z=large&c=unspecified&s=descending&hc=4&mc=2&st=1273500000&et=1273501200

While this is far from "documentation", the variable names in
get_context.php in your ganglia document root should give you a better
idea of what each parameter means.

Cheers,

Bernard

------------------------------------------------------------------------------

_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to