Sometimes a large spike can ruin a graph, because the graph then scales to the max size of the spike, so the rest of the graph isn't very readable as it is now scrunched down to almost a flat line. Is it possible to have an option for Hobbits larrding so that you can define a maximum threshold not to extend past?
This would be helpful, as I have a server whose load average shot up to over 100 because of a problem. Only lasted a few mins, but now my load average graph looks like a tall weed growing in the middle of a golf green :-)
-Charles
On Tue, Feb 01, 2005 at 05:10:38PM -0700, Charles Jones wrote:
Sometimes a large spike can ruin a graph, because the graph then scales to the max size of the spike, so the rest of the graph isn't very readable as it is now scrunched down to almost a flat line. Is it possible to have an option for Hobbits larrding so that you can define a maximum threshold not to extend past?
Yes, but it's actually a feature that exists in RRDtool, which is used to generate the graphs. Just change hobbitgraph.cfg's [la] definition:
[la] ... some lines ... CDEF:la=avg,100,/ --upper-limit 3.0 --rigid .... more lines ...
The --upper-limit sets the value for the top of the graph; the --rigid makes this setting "rigid" so even if there are larger values in the dataset, the graph will not adapt to show these.
It might be an idea to let this upper value be determined by the CGI so you can adjust it dynamically. I'll have a look at that.
Henrik
On Tue, Feb 01, 2005 at 05:10:38PM -0700, Charles Jones wrote:
Sometimes a large spike can ruin a graph, because the graph then scales to the max size of the spike, so the rest of the graph isn't very readable as it is now scrunched down to almost a flat line. Is it possible to have an option for Hobbits larrding so that you can define a maximum threshold not to extend past?
I've worked on this a bit, and so far I've come up with the solution that you can see on my site - e.g. if you go to http://www.hswn.dk/hobbit/servers/ , pick the "cpu" display for the first host, and click the graph to see the 4 periodic graphs.
Direct link: http://www.hswn.dk/hobbit-cgi/hobbitgraph.sh?host=voodoo.hswn.dk&service=la
At the bottom of the page you can define the lower- and upper-limit for the graph, and which periodic graph you want to see. E.g enter "0.5" in the upper-limit, click "View" and you'll get graphs that cut off spikes at load 0.5.
Something like that you had in mind ?
Henrik
Hi,
Cacti does this a cool way (with php/gd); a demo site : http://www.bigspring.k12.pa.us/cacti/graph_view.php?action=tree&tree_id=31&l... click on the magnifying glass and then select in the graph what you want to zoom on...
Olivier
Selon Henrik Stoerner <henrik at hswn.dk>:
On Tue, Feb 01, 2005 at 05:10:38PM -0700, Charles Jones wrote:
Sometimes a large spike can ruin a graph, because the graph then scales to the max size of the spike, so the rest of the graph isn't very readable as it is now scrunched down to almost a flat line. Is it possible to have an option for Hobbits larrding so that you can define a maximum threshold not to extend past?
I've worked on this a bit, and so far I've come up with the solution that you can see on my site - e.g. if you go to http://www.hswn.dk/hobbit/servers/ , pick the "cpu" display for the first host, and click the graph to see the 4 periodic graphs.
Direct link: http://www.hswn.dk/hobbit-cgi/hobbitgraph.sh?host=voodoo.hswn.dk&service=la
At the bottom of the page you can define the lower- and upper-limit for the graph, and which periodic graph you want to see. E.g enter "0.5" in the upper-limit, click "View" and you'll get graphs that cut off spikes at load 0.5.
Something like that you had in mind ?
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Olivier Beau
On Sun, Feb 06, 2005 at 09:57:09AM +0100, olivier at qalpit.com wrote:
Hi,
Cacti does this a cool way (with php/gd); a demo site : http://www.bigspring.k12.pa.us/cacti/graph_view.php?action=tree&tree_id=31&l... click on the magnifying glass and then select in the graph what you want to zoom
Agreed, that *is* cool.
It seems they are also using rrdtool as the back-end, so it shouldn't be too hard to implement something similar in Hobbit.
For now, I'll leave it "as-is" - but this looks like one of those "wow" features that are very nice to have when you're trying to convince someone to use Hobbit :-) So I'll get back to it later, unless someone else would like to contribute code for it.
Henrik
participants (3)
-
henrik@hswn.dk
-
jonescr@cisco.com
-
olivier@qalpit.com