All,

before Alex's supplied custom graph code, I added code to
cluster_view.php that would iterate through all the metrics
apparantly available to the cluster view, then remove "the standard"
metrics, leaving displayed at the cluster view whatever metrics were
in the rrd tree and were not standard. I have the code snippet
at the bottom, although its clunky and not what I would suggest for a
long
term solution.

Alex and I have talked a little about what may be ideal.

My requirement would be best satisfied by being able to
specify sets of custom formatted graphs administratively that would
appear
at the cluster level in a permanent way, not driven or created by end
users,
but by me. One could have Alex's code as an end users "getout" as well.

As we have more than simple fixed computer clusters, I see it desirable
to have custom graphs on a per cluster basis (cluster A has graphs
a,b,c,
and cluster B has x,y,z). I do not see it as desirable to allow users
to dynamically change the views permanently for all users - security
headache.

A profoundly hacked implementation could be to use Alex's interface
to create the (very long) URL that defines the custom graph,
and literally include the URLs in cluster_view.php or the cluster_view
template file,
or its equivalent via a #include mechanism. (As I want cluster specific
custom graphs I really need to do stuff at cluster_view.php level).

If we had an effective data driven or templated graph display system,
graph.php
would be greatly simplified, by removing the low level RRDtool code to
make the
fixed report style graphs.

Is there a concensus on what kind of thing we want to see?

- richard


   $myfirsthost = key($metrics);
   foreach ($metrics[$myfirsthost] as $mmm => $foo)
   {
        if (
        $mmm != "boottime" &&
        $mmm != "bytes_in" &&
        $mmm != "bytes_out" &&
        $mmm != "cpu_aidle" &&
        $mmm != "cpu_idle" &&
        $mmm != "cpu_num" &&
 ... etc ...
        $mmm != "wcache" &&
        $mmm != "bread_sec" &&
        $mmm != "phread_sec" &&
        $mmm != "bwrite_sec" &&
        $mmm != "lwrite_sec" &&
        $mmm != "lread_sec" &&
        $mmm != "swap_total"
        ) {
                 if
(file_exists("$rrds/$grid/__SummaryInfo__/$mmm.rrd")) {

                        $tpl->newBlock('optional_graphs');
                        $tpl->assign('name',$mmm);
                        # Adding units to graph Richard Grevis 2006
                        if ($v[UNITS]) {
                                $encodeUnits =
rawurlencode($foo[UNITS]);
                                $custom_graph_args = $graph_args .
"&vl=$encodeUnits";
                        }
                        $tpl->assign('graph_args',$custom_graph_args);
                }
        }

-----Original Message-----
From: Alex Balk [mailto:[EMAIL PROTECTED] 
Sent: 20 April 2006 15:07
To: Ramon Bastiaans
Cc: [email protected]; Grevis, Richard: IT (LDN)
Subject: Re: [Ganglia-developers] [PATCH] Custom graphs


Ramon,


See my reply below...


Ramon Bastiaans wrote:

> Hi Alex,
>
> This is what I've been looking for a while.
>
> I'm afraid the user interface seems a bit complex for simple users of 
> our Ganglia website. This will probably prevent them from ever 
> making/viewing a custom graph.
>

I tried to keep the interface simple, but I'm afraid I'm far from being
a GUI specialist. Note that you don't have to specify any of the
parameters other than the metrics to display themselves - the existing
defaults (which seemed to me reasonable, but others may have better
ideas) are good enough to render graphs as is. Still, if you have ideas
on how to make the interface better (simpler?), I'd be happy to get an
interface design and modify the existing interface accordingly.

> In addition, as a system administrator, I would like to be able to get

> a overview of these custom graphs for all nodes. Just like graphs are 
> displayed in the cluster overview. However this is not possible with 
> the way you have set it up.
>

You're right - I didn't create these custom graphs for this purpose, but
rather to provide a possibility for graph generation on the fly. The
current graphs displayed in the cluster overview are hardcoded into the
web frontend, so I'm not sure how we could integrate the two interfaces.
Insights on this are most welcome.

> Is it possible/difficult to alter your code with the following?:
> - custom graphs/reports configurable in Ganglia's conf.php
> - these configured custom graphs available in the cluster overview
>

I'm looking into the possibility of saving/loading graph templates, as
I've received a few requests for this and it doesn't seem complicated to
do anyway. While this won't provide with better integration into the
current graph system, it does provide with a "configure once, use many"
functionality.

Thank you for your comments - hopefully with some work we could make
this even more useful for a broader crowd.

Cheers,
Alex

> Kind regards,
> - Ramon.
>
> Alex Balk wrote:
>> Hi all,
>>
>>
>> A bug in custom_graph_interface.php prevented the code from running 
>> correctly in IE.
>>
>> Thanks to Richard Grevis, the issue should now be resolved.
>>
>>
>> The corrected code is available at the URL below.
>>
>>
>> Cheers,
>>
>> Alex
>>
>>
>> Alex Balk wrote:
>>
>>> Silly me...
>>>
>>>
>>> http://wtf.ath.cx/screenshots.html
>>>
>>>
>>>
>>> Eli Stair wrote:
>>>
>>>  
>>>> Do you have a description/doc page, demo or PNG's up showing what 
>>>> the patch does/allows for?
>>>>
>>>> Thanks,
>>>>
>>>> /eli
>>>>
>>>> Alex Balk wrote:
>>>>    
>>>>> Hi all,
>>>>>
>>>>>
>>>>> I've finally finished implementing an interface for generating 
>>>>> customized graphs.
>>>>>
>>>>> A patch against Ganglia 3.0.2 is attached (it should probably work

>>>>> with 3.0.3 as well). You can also grab it at
>>>>> http://wtf.ath.cx/custom_graph.diff
>>>>>
>>>>>
>>>>> I suspect IE won't like the JavaScript in this one, but I didn't 
>>>>> really dig into that.
>>>>>
>>>>>
>>>>> Feedback is most welcome!
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Alex
>>>>>
>>>>>       
>>
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, 
>> security? Get stuff done quickly with pre-integrated technology to 
>> make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Ganglia-developers mailing list
>> [email protected]
>> 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