import torrus 1.0.9
[freeside.git] / torrus / xmlconfig / generic / collector-periods.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (C) 2003 Shawn Ferry
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18
19    Shawn Ferry <sferry at sevenspace dot com > <lalartu at obscure dot org>
20
21 $Id: collector-periods.xml,v 1.1 2010-12-27 00:04:30 ivan Exp $
22 @(#) 10/18/03 collector-periods.xml 1.8 (10/16/03 23:44:25) sferry
23
24 -->
25
26 <!--
27   Template(s) to override the default periods and RRA definitions.
28 -->
29
30 <configuration>
31   <datasources>
32     <!--
33       Two mandatory parameters define the collector schedule.
34       The collector runs at moments defined by formula:
35         time + period - (time mod period) + timeoffset
36
37       Each period requires RRAs to be defined for that period
38       RRAs use the following syntax   RRA:CF:xff:steps:rows
39       as the calculation of setps and rows is period dependent
40     -->
41
42     <!-- ONE MINUTE PERIOD -->
43     <template name="one-minute-period">
44       <param name="collector-period"      value="60"/>
45       <param name="collector-timeoffset"  value="10"/>
46       <!--
47         Round-robin arrays to be created, separated by space.
48         RRA:CF:xff:steps:rows
49         We keep: (step = 60 )
50           1-minute avg details for 1 week,
51           30-minute ave/min/max details for 6 weeks,
52           1-day ave/min/max for 2 years
53       -->
54       <param name="rrd-create-rra">
55         RRA:AVERAGE:0:1:10080
56         RRA:LAST:0:1:1
57         RRA:AVERAGE:0.17:30:2688 RRA:MIN:0.17:30:2688 RRA:MAX:0.17:30:2688
58         RRA:AVERAGE:0.042:1440:732
59         RRA:MIN:0.042:1440:732   RRA:MAX:0.042:1440:732
60       </param>
61       <param name="rrd-create-heartbeat" value="300"/>
62
63       <!-- Optional Holt-Winters season length.
64            Default is one-day (1440 1-minute intervals) -->
65       <param name="rrd-create-hw-season" value="1440" />
66
67       <!-- Mandatory length of the Holt-Winters archives.
68            Same length as main 1-minutes RRA -->
69       <param name="rrd-create-hw-rralen" value="10080" />
70     </template>
71
72
73     
74     <!-- FIVE MINUTE PERIOD -->
75     <template name="five-minute-period">
76       <param name="collector-period"      value="300"/>
77       <param name="collector-timeoffset"  value="20"/>
78       <!-- Round-robin arrays to be created, separated by space.
79            RRA:CF:xff:steps:rows
80            We keep: (step = 300 )
81              5-minute avg for 2 weeks,
82              30-minute ave/min/max details for 6 weeks,
83              1-day ave/min/max for 2 years
84       -->
85       <param name="rrd-create-rra">
86         RRA:AVERAGE:0:1:4032
87         RRA:AVERAGE:0.17:6:2016   RRA:MAX:0.17:6:2016   RRA:MIN:0.17:6:2016
88         RRA:AVERAGE:0.042:288:732 RRA:MAX:0.042:288:732 RRA:MIN:0.042:288:732
89       </param>
90       <param name="rrd-create-heartbeat" value="900"/>
91     </template>
92
93   </datasources>
94 </configuration>