[EMAIL PROTECTED] wrote:
> Also, people are requesting 3, 6 and 12 hour time intervals. Is it
> possible to alter this as well?
You can modify gmetad.conf to add more RRAs to each RRD for different
intervals. Here is what I am currenty using:
# RRAs "RRA:AVERAGE:0.5:1:240" "RRA:AVERAGE:0.5:24:240"
"RRA:AVERAGE:0.5:168:240" "RRA:AVERAGE:0.5:672:240" \
# "RRA:AVERAGE:0.5:5760:370"
#
RRAs "RRA:AVERAGE:0.5:1:240" "RRA:AVERAGE:0.5:2:240" "RRA:AVERAGE:0.5:8:240" \
"RRA:AVERAGE:0.5:24:240" "RRA:AVERAGE:0.5:30:240" "RRA:AVERAGE:0.5:72:240"
\
"RRA:AVERAGE:0.5:168:240" "RRA:AVERAGE:0.5:240:240"
"RRA:AVERAGE:0.5:672:240" \
"RRA:AVERAGE:0.5:1440:370" "RRA:AVERAGE:0.5:2880:370"
"RRA:AVERAGE:0.5:5760:370"
(the commented out definition is the default)
This adds intervals for 2 hours, 8 hours, 30 hours, 3 days, 10 days,
2 months, 6 months. You also need to define these intervals in conf.php
in ganglia-web so they can be viewed in the web interface:
# Time ranges
# Each value is the # of seconds in that range.
#
$time_ranges = array(
'hour'=>3600,
'2hour'=>3600*2,
'8hour'=>3600*8,
'day'=>86400,
'30hour'=>108000,
'3day'=>86400*3,
'week'=>604800,
'10day'=>864000,
'month'=>2419200,
'2month'=>86400*60,
'6month'=>86400*180,
'year'=>31449600
);
Note 1: Adding RRAs in gmetad.conf only affects NEW metrics, it will
not update any existing RRD files! If you add a new gmetric, it will
have the new resolutions for all hosts; if you add a new host, it will
have the new resolutions for all metrics (since all its RRD files are
new). If you *delete* your history for existing metrics, new RRDs
will be created with the new resolutions.
In theory, it should be possible to use rrdtool to dump and modify
existing RRDs. You can't add new RRAs this way, but you can extend
the queue sizes of existing RRAs, which should achieve your goal less
efficiently... but when I've tried to do this it has failed, and
gmetad wouldn't read my newly constructed RRD files. So don't depend
on being able to do this unless you try it first.
Note 2: You can actually add any viewing time ranges you want to
conf.php and Ganglia will generate graphs with those ranges. It will
use whichever RRA has the highest resolution, that covers the entire
range. So for example, if you try to view 8 hours using the default
set of RRAs, you'll get an 8 hour graph, but using date from the 1 day
RRA, whose resolution isn't quite good enough, so your graph will be a
bit blocky. If you try to view 2 hours using the default RRAs, it'll
be much much worse, and effectively useless. However, a 12 hour graph
drawing from the RRA intended for 1 day would be passable.
So, for old metrics that you don't have the new RRAs in, you'll still
be able to view all the new time ranges you define, but the data will
be blocky, to the best resolution available. Over time as you add new
servers and remove old servers, you'll eventually have the better data
resolution for all of them.
... or you could just choose to dump all of your history and start
anew, and get full resolution for everything.
-- Cos
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general