>I believe the graphs should be template driven, somewhat like the
>template pages.

I agree with Jesse that this is rather difficult with current code.

>- whether or not to show stats in the legend

In my graph.php I have (like in trunk):

# Make small graphs (host list) cleaner by removing the too-big
# legend: it is displayed above on larger cluster summary graphs.
if ($size == "small" and ! isset($subtitle))
    $rrdtool_graph['extras'] = "-g";

>- whether or not to strip the domain name from hostnames (currently a
>global setting in conf.php)

In my graph.php I have (like in trunk):

# automatically strip domainname from small graphs where it won't fit
if ($size == "small") {
    $strip_domainname = true;
    # Let load coloring work for little reports in the host list.
    if (! isset($subtitle) and $load_color)
        $rrdtool_graph['color'] = "BACK#'$load_color'";
}

>There are probably other things that could be configured too.

With current code, we can easily add some value like the above without 
requiring users to hack on templates or config files.

>One related issue is that the HTML pages should specify the height and
>width in the IMG tags for graphs - maybe a function is needed to
>generate IMG tags.

In older ganglia, the HTML set the size to values not equal to the image 
generated.  This forced the images to an unnatural size causing fonts to miss 
pixels and other ugly effects.  So sizes were removed to let the browser use 
the actual image size.

-twitham

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to