Of course:)
First - sample output from one of servers I manage:
http://bostjan.a2o.si/tmp/ganglia-sample.png

In gmetad.conf, add:
------------------------------------------------------
RRAs \
  "RRA:AVERAGE:0.5:1:1200" \
  "RRA:MIN:0.5:1:1200" \
  "RRA:MAX:0.5:1:1200" \
  "RRA:AVERAGE:0.5:7:1200" \
  "RRA:MIN:0.5:7:1200" \
  "RRA:MAX:0.5:7:1200" \
  "RRA:AVERAGE:0.5:50:1200" \
  "RRA:MIN:0.5:50:1200" \
  "RRA:MAX:0.5:50:1200" \
  "RRA:AVERAGE:0.5:400:1200" \
  "RRA:MIN:0.5:400:1200" \
  "RRA:MAX:0.5:400:1200" \
  "RRA:AVERAGE:0.5:3000:3600" \
  "RRA:MIN:0.5:3000:3600" \
  "RRA:MAX:0.5:3000:3600"
------------------------------------------------------
You need to recreate all of your RRDs to take advantage of this, as it
only applies to newly created ones. Dump and reimport your data if
necessary. BTW I have 10s collection interval.


In PHP frontent, in graph.d/metric.php, it should be something along
these lines:
---------------------------------------------------------
    $series  = '';
    $series .= "DEF:'max'='$rrd_dir/$metricname.rrd:sum':MAX ";
    $series .= "DEF:'avg'='$rrd_dir/$metricname.rrd:sum':AVERAGE ";
    $series .= "DEF:'min'='$rrd_dir/$metricname.rrd:sum':MIN ";
    $series .= " AREA:'max'#$default_metric_color_max_area: ";
    $series .= " AREA:'min'#$default_metric_color_min_area: ";
    $series .= " LINE1:'min'#$default_metric_color_min_line: ";
    $series .= " LINE1:'max'#$default_metric_color_max_line: ";
    $series .= " LINE1:'avg'#$default_metric_color_avg:'$subtitle_one
AVERAGE' ";
------------------------------------------------------------
Those color variables should be defined, I changed default metric
colors to green and the whole outlook of graphs is inspired by
collectd's default settings (min/max/avg areas with accented
min/max/avg lines).

Tool:
Nope, nothing handy. I deleted my old rrds.


On 17 December 2010 04:30, Robin Humble <[email protected]> wrote:
> On Fri, Dec 17, 2010 at 02:31:01AM +0100, Bostjan Skufca wrote:
>>I have my RRAs defined with avg, min and max values and full
>>resolution is not necessary for 2 whole weeks because of that. Minimum
>>and maximum values get preserved and I can still see when spikes or
>>dips have occured.
>
> nice!
> can you give an example of how to set up min/max/ave?
>
> I presume migration from an 'ave' only setup would be to copy all old
> db ave data into the min/max fields.
> is there a tool to do that, or should I break out a few lines of python?
>
> cheers,
> robin
>

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to