1 RRDCREATE(1) rrdtool RRDCREATE(1)
6 rrdcreate - Set up a new Round Robin Database
9 r\brr\brd\bdt\bto\boo\bol\bl c\bcr\bre\bea\bat\bte\be _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be [-\b--\b-s\bst\bta\bar\brt\bt|-\b-b\bb _\bs_\bt_\ba_\br_\bt _\bt_\bi_\bm_\be] [-\b--\b-s\bst\bte\bep\bp|-\b-s\bs _\bs_\bt_\be_\bp]
10 [D\bDS\bS:\b:_\bd_\bs_\b-_\bn_\ba_\bm_\be:\b:_\bD_\bS_\bT:\b:_\bd_\bs_\bt _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs] [R\bRR\bRA\bA:\b:_\bC_\bF:\b:_\bc_\bf _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]
13 The create function of RRDtool lets you set up new Round Robin Database
21 -\b--\b-s\bst\bta\bar\brt\bt|\b|-\b-b\bb _\bs_\bt_\ba_\br_\bt _\bt_\bi_\bm_\be (\b(d\bde\bef\bfa\bau\bul\blt\bt:\b: n\bno\bow\bw -\b- 1\b10\b0s\bs)\b)
22 Specifies the time in seconds since 1970-01-01 UTC when the first value
24 before or at the time specified.
27 documentation for other ways to specify time.
29 -\b--\b-s\bst\bte\bep\bp|\b|-\b-s\bs _\bs_\bt_\be_\bp (\b(d\bde\bef\bfa\bau\bul\blt\bt:\b: 3\b30\b00\b0 s\bse\bec\bco\bon\bnd\bds\bs)\b)
30 Specifies the base interval in seconds with which data will be fed into
33 D\bDS\bS:\b:_\bd_\bs_\b-_\bn_\ba_\bm_\be:\b:_\bD_\bS_\bT:\b:_\bd_\bs_\bt _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs
35 example incoming and outgoing traffic on a specific communication line.
40 source from an R\bRR\bRD\bD. A _\bd_\bs_\b-_\bn_\ba_\bm_\be must be 1 to 19 characters long in the
41 characters [a-zA-Z0-9_].
44 source entry depend on the data source type. For GAUGE, COUNTER,
45 DERIVE, and ABSOLUTE the format for a data source entry is:
47 D\bDS\bS:\b:_\bd_\bs_\b-_\bn_\ba_\bm_\be:\b:_\bG_\bA_\bU_\bG_\bE _\b| _\bC_\bO_\bU_\bN_\bT_\bE_\bR _\b| _\bD_\bE_\bR_\bI_\bV_\bE _\b| _\bA_\bB_\bS_\bO_\bL_\bU_\bT_\bE:\b:_\bh_\be_\ba_\br_\bt_\bb_\be_\ba_\bt:\b:_\bm_\bi_\bn:\b:_\bm_\ba_\bx
49 For COMPUTE data sources, the format is:
51 D\bDS\bS:\b:_\bd_\bs_\b-_\bn_\ba_\bm_\be:\b:_\bC_\bO_\bM_\bP_\bU_\bT_\bE:\b:_\br_\bp_\bn_\b-_\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn
53 In order to decide which data source type to use, review the
54 definitions that follow. Also consult the section on "HOW TO MEASURE"
55 for further insight.
58 is for things like temperatures or number of people in a room or
59 the value of a RedHat share.
62 is for continuous incrementing counters like the ifInOctets counter
64 decreases, except when a counter overflows. The update function
65 takes the overflow into account. The counter is stored as a per-
66 second rate. When the counter overflows, RRDtool checks if the
67 overflow happened at the 32bit or 64bit border and acts accordingly
68 by adding an appropriate value to the result.
71 will store the derivative of the line going from the last to the
72 current value of the data source. This can be useful for gauges,
73 for example, to measure the rate of people entering or leaving a
74 room. Internally, derive works exactly like COUNTER but without
75 overflow checks. So if your counter does not reset at 32 or 64 bit
76 you might want to use DERIVE and combine it with a MIN value of 0.
80 by Don Baarda <don.baarda@baesystems.com>
82 If you cannot tolerate ever mistaking the occasional counter reset
83 for a legitimate counter wrap, and would prefer "Unknowns" for all
84 legitimate counter wraps and resets, always use DERIVE with min=0.
85 Otherwise, using COUNTER with a suitable max will return correct
86 values for all legitimate counter wraps, mark some counter resets
87 as "Unknown", but can mistake some counter resets for a legitimate
88 counter wrap.
90 For a 5 minute step and 32-bit counter, the probability of
91 mistaking a counter reset for a legitimate wrap is arguably about
92 0.8% per 1Mbps of maximum bandwidth. Note that this equates to 80%
93 for 100Mbps interfaces, so for high bandwidth interfaces and a
94 32bit counter, DERIVE with min=0 is probably preferable. If you are
95 using a 64bit counter, just about any max setting will eliminate
96 the possibility of mistaking a reset for a counter wrap.
99 is for counters which get reset upon reading. This is used for fast
100 counters which tend to overflow. So instead of reading them
101 normally you reset them after every read to make sure you have a
102 maximum time available before the next overflow. Another usage is
103 for things you count like number of messages since the last update.
106 is for storing the result of a formula applied to other data
108 update, but rather its Primary Data Points (PDPs) are computed from
109 the PDPs of the data sources according to the rpn-expression that
110 defines the formula. Consolidation functions are then applied
111 normally to the PDPs of the COMPUTE data source (that is the rpn-
112 expression is only applied to generate PDPs). In database software,
113 such data sets are referred to as "virtual" or "computed" columns.
115 _\bh_\be_\ba_\br_\bt_\bb_\be_\ba_\bt defines the maximum number of seconds that may pass between
116 two updates of this data source before the value of the data source is
121 be regarded as _\b*_\bU_\bN_\bK_\bN_\bO_\bW_\bN_\b*. If you do not know or care about min and max,
122 set them to U for unknown. Note that min and max always refer to the
124 the maximum and minimum data-rate expected from the device.
126 _\bI_\bf _\bi_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bo_\bn _\bm_\bi_\bn_\bi_\bm_\ba_\bl_\b/_\bm_\ba_\bx_\bi_\bm_\ba_\bl _\be_\bx_\bp_\be_\bc_\bt_\be_\bd _\bv_\ba_\bl_\bu_\be_\bs _\bi_\bs _\ba_\bv_\ba_\bi_\bl_\ba_\bb_\bl_\be_\b, _\ba_\bl_\bw_\ba_\by_\bs
127 _\bs_\be_\bt _\bt_\bh_\be _\bm_\bi_\bn _\ba_\bn_\bd_\b/_\bo_\br _\bm_\ba_\bx _\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b. _\bT_\bh_\bi_\bs _\bw_\bi_\bl_\bl _\bh_\be_\bl_\bp _\bR_\bR_\bD_\bt_\bo_\bo_\bl _\bi_\bn _\bd_\bo_\bi_\bn_\bg _\ba
128 _\bs_\bi_\bm_\bp_\bl_\be _\bs_\ba_\bn_\bi_\bt_\by _\bc_\bh_\be_\bc_\bk _\bo_\bn _\bt_\bh_\be _\bd_\ba_\bt_\ba _\bs_\bu_\bp_\bp_\bl_\bi_\be_\bd _\bw_\bh_\be_\bn _\br_\bu_\bn_\bn_\bi_\bn_\bg _\bu_\bp_\bd_\ba_\bt_\be_\b.
130 _\br_\bp_\bn_\b-_\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn defines the formula used to compute the PDPs of a
131 COMPUTE data source from other data sources in the same <RRD>. It is
133 to that manual page for a list and description of RPN operations
134 supported. For COMPUTE data sources, the following RPN operations are
135 not supported: COUNT, PREV, TIME, and LTIME. In addition, in defining
136 the RPN expression, the COMPUTE data source may only refer to the names
137 of data source listed previously in the create command. This is similar
138 to the restriction that C\bCD\bDE\bEF\bFs must refer only to D\bDE\bEF\bFs and C\bCD\bDE\bEF\bFs
139 previously defined in the same graph command.
147 the length defined with the -\b-s\bs option, thus becoming a _\bp_\br_\bi_\bm_\ba_\br_\by _\bd_\ba_\bt_\ba
151 archive. There are several consolidation functions that consolidate
152 primary data points via an aggregate function: A\bAV\bVE\bER\bRA\bAG\bGE\bE, M\bMI\bIN\bN, M\bMA\bAX\bX, L\bLA\bAS\bST\bT.
154 AVERAGE
155 the average of the data points is stored.
157 MIN the smallest of the data points is stored.
159 MAX the largest of the data points is stored.
161 LAST
162 the last data points is used.
164 Note that data aggregation inevitably leads to loss of precision and
165 information. The trick is to pick the aggregate function such that the
166 _\bi_\bn_\bt_\be_\br_\be_\bs_\bt_\bi_\bn_\bg properties of your data is kept across the aggregation
167 process.
171 R\bRR\bRA\bA:\b:_\bA_\bV_\bE_\bR_\bA_\bG_\bE _\b| _\bM_\bI_\bN _\b| _\bM_\bA_\bX _\b| _\bL_\bA_\bS_\bT:\b:_\bx_\bf_\bf:\b:_\bs_\bt_\be_\bp_\bs:\b:_\br_\bo_\bw_\bs
175 regarded as known. It is given as the ratio of allowed _\b*_\bU_\bN_\bK_\bN_\bO_\bW_\bN_\b* PDPs
176 to the number of PDPs in the interval. Thus, it ranges from 0 to 1
177 (exclusive).
179 _\bs_\bt_\be_\bp_\bs defines how many of these _\bp_\br_\bi_\bm_\ba_\br_\by _\bd_\ba_\bt_\ba _\bp_\bo_\bi_\bn_\bt_\bs are used to build a
180 _\bc_\bo_\bn_\bs_\bo_\bl_\bi_\bd_\ba_\bt_\be_\bd _\bd_\ba_\bt_\ba _\bp_\bo_\bi_\bn_\bt which then goes into the archive.
183 Obviously, this has to be greater than zero.
185 A\bAb\bbe\ber\brr\bra\ban\bnt\bt B\bBe\beh\bha\bav\bvi\bio\bor\br D\bDe\bet\bte\bec\bct\bti\bio\bon\bn w\bwi\bit\bth\bh H\bHo\bol\blt\bt-\b-W\bWi\bin\bnt\bte\ber\brs\bs F\bFo\bor\bre\bec\bca\bas\bst\bti\bin\bng\bg
186 In addition to the aggregate functions, there are a set of specialized
188 Winters forecasting algorithm), confidence bands, and the flagging
189 aberrant behavior in the data source time series:
191 · R\bRR\bRA\bA:\b:_\bH_\bW_\bP_\bR_\bE_\bD_\bI_\bC_\bT:\b:_\br_\bo_\bw_\bs:\b:_\ba_\bl_\bp_\bh_\ba:\b:_\bb_\be_\bt_\ba:\b:_\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd[:\b:_\br_\br_\ba_\b-_\bn_\bu_\bm]
193 · R\bRR\bRA\bA:\b:_\bM_\bH_\bW_\bP_\bR_\bE_\bD_\bI_\bC_\bT:\b:_\br_\bo_\bw_\bs:\b:_\ba_\bl_\bp_\bh_\ba:\b:_\bb_\be_\bt_\ba:\b:_\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd[:\b:_\br_\br_\ba_\b-_\bn_\bu_\bm]
195 · R\bRR\bRA\bA:\b:_\bS_\bE_\bA_\bS_\bO_\bN_\bA_\bL:\b:_\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd:\b:_\bg_\ba_\bm_\bm_\ba:\b:_\br_\br_\ba_\b-
196 _\bn_\bu_\bm[:\b:s\bsm\bmo\boo\bot\bth\bhi\bin\bng\bg-\b-w\bwi\bin\bnd\bdo\bow\bw=\b=_\bf_\br_\ba_\bc_\bt_\bi_\bo_\bn]
198 · R\bRR\bRA\bA:\b:_\bD_\bE_\bV_\bS_\bE_\bA_\bS_\bO_\bN_\bA_\bL:\b:_\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd:\b:_\bg_\ba_\bm_\bm_\ba:\b:_\br_\br_\ba_\b-
199 _\bn_\bu_\bm[:\b:s\bsm\bmo\boo\bot\bth\bhi\bin\bng\bg-\b-w\bwi\bin\bnd\bdo\bow\bw=\b=_\bf_\br_\ba_\bc_\bt_\bi_\bo_\bn]
201 · R\bRR\bRA\bA:\b:_\bD_\bE_\bV_\bP_\bR_\bE_\bD_\bI_\bC_\bT:\b:_\br_\bo_\bw_\bs:\b:_\br_\br_\ba_\b-_\bn_\bu_\bm
203 · R\bRR\bRA\bA:\b:_\bF_\bA_\bI_\bL_\bU_\bR_\bE_\bS:\b:_\br_\bo_\bw_\bs:\b:_\bt_\bh_\br_\be_\bs_\bh_\bo_\bl_\bd:\b:_\bw_\bi_\bn_\bd_\bo_\bw _\bl_\be_\bn_\bg_\bt_\bh:\b:_\br_\br_\ba_\b-_\bn_\bu_\bm
208 confidence bounds, a matched set of SEASONAL, DEVSEASONAL, DEVPREDICT,
209 and either HWPREDICT or MHWPREDICT must exist. Generating smoothed
212 FAILURES, DEVSEASONAL, SEASONAL, and either HWPREDICT or MHWPREDICT.
214 The predicted, or smoothed, values are stored in the HWPREDICT or
216 the Holt-Winters method. They are interchangeable. Both attempt to
217 decompose data into three components: a baseline, a trend, and a
218 seasonal coefficient. HWPREDICT adds its seasonal coefficient to the
219 baseline to form a prediction, whereas MHWPREDICT multiplies its
220 seasonal coefficient by the baseline to form a prediction. The
221 difference is noticeable when the baseline changes significantly in the
222 course of a season; HWPREDICT will predict the seasonality to stay
223 constant as the baseline changes, but MHWPREDICT will predict the
224 seasonality to grow or shrink in proportion to the baseline. The proper
225 choice of method depends on the thing being modeled. For simplicity,
226 the rest of this discussion will refer to HWPREDICT, but MHWPREDICT may
227 be substituted in its place.
229 The predicted deviations are stored in DEVPREDICT (think a standard
230 deviation which can be scaled to yield a confidence band). The FAILURES
232 failure; that is, the number of confidence bounds violations in the
233 preceding window of observations met or exceeded a specified threshold.
235 appears in rrdgraph.
238 the Holt-Winters forecasting algorithm and the seasonal deviations,
239 respectively. There is one entry per observation time point in the
240 seasonal cycle. For example, if primary data points are generated every
241 five minutes and the seasonal cycle is 1 day, both SEASONAL and
242 DEVSEASONAL will have 288 rows.
244 In order to simplify the creation for the novice user, in addition to
245 supporting explicit creation of the HWPREDICT, SEASONAL, DEVPREDICT,
246 DEVSEASONAL, and FAILURES R\bRR\bRA\bAs\bs, the R\bRR\bRD\bDt\bto\boo\bol\bl create command supports
247 implicit creation of the other four when HWPREDICT is specified alone
251 that there is a one-to-one correspondence between primary data points
253 than the _\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd. If the DEVPREDICT R\bRR\bRA\bA is implicitly created,
256 _\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd argument of the HWPREDICT R\bRR\bRA\bA. Of course, the R\bRR\bRD\bDt\bto\boo\bol\bl
258 the creator wishes to avoid explicit creations of the other specialized
261 _\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd specifies the number of primary data points in a
262 seasonal cycle. If SEASONAL and DEVSEASONAL are implicitly created,
264 specified by HWPREDICT. If they are explicitly created, the creator
265 should verify that all three _\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd arguments agree.
268 coefficient in the Holt-Winters forecasting algorithm. See rrdtool for
270 value closer to 1 means that more recent observations carry greater
271 weight in predicting the baseline component of the forecast. A value
272 closer to 0 means that past history carries greater weight in
273 predicting the baseline component.
278 predicted linear trend.
281 Holt-Winters forecasting algorithm (HWPREDICT) or the adaption
282 parameter in the exponential smoothing update of the seasonal
283 deviations. It must lie between 0 and 1. If the SEASONAL and
285 value for _\bg_\ba_\bm_\bm_\ba: the value specified for the HWPREDICT _\ba_\bl_\bp_\bh_\ba argument.
286 Note that because there is one seasonal coefficient (or deviation) for
287 each time point during the seasonal cycle, the adaptation rate is much
288 slower than the baseline. Each seasonal coefficient is only updated (or
289 adapts) when the observed value occurs at the offset in the seasonal
290 cycle corresponding to that coefficient.
292 If SEASONAL and DEVSEASONAL R\bRR\bRA\bAs\bs are created explicitly, _\bg_\ba_\bm_\bm_\ba need not
296 _\bs_\bm_\bo_\bo_\bt_\bh_\bi_\bn_\bg_\b-_\bw_\bi_\bn_\bd_\bo_\bw specifies the fraction of a season that should be
297 averaged around each point. By default, the value of _\bs_\bm_\bo_\bo_\bt_\bh_\bi_\bn_\bg_\b-_\bw_\bi_\bn_\bd_\bo_\bw
298 is 0.05, which means each value in SEASONAL and DEVSEASONAL will be
299 occasionally replaced by averaging it with its (_\bs_\be_\ba_\bs_\bo_\bn_\ba_\bl _\bp_\be_\br_\bi_\bo_\bd*0.05)
300 nearest neighbors. Setting _\bs_\bm_\bo_\bo_\bt_\bh_\bi_\bn_\bg_\b-_\bw_\bi_\bn_\bd_\bo_\bw to zero will disable the
301 running-average smoother altogether.
303 _\br_\br_\ba_\b-_\bn_\bu_\bm provides the links between related R\bRR\bRA\bAs\bs. If HWPREDICT is
308 and another R\bRR\bRA\bA. The _\br_\br_\ba_\b-_\bn_\bu_\bm argument is the 1-based index in the order
309 of R\bRR\bRA\bA creation (that is, the order they appear in the _\bc_\br_\be_\ba_\bt_\be command).
310 The dependent R\bRR\bRA\bA for each R\bRR\bRA\bA requiring the _\br_\br_\ba_\b-_\bn_\bu_\bm argument is listed
311 here:
323 _\bt_\bh_\br_\be_\bs_\bh_\bo_\bl_\bd is the minimum number of violations (observed values outside
324 the confidence bounds) within a window that constitutes a failure. If
327 _\bw_\bi_\bn_\bd_\bo_\bw _\bl_\be_\bn_\bg_\bt_\bh is the number of time points in the window. Specify an
328 integer greater than or equal to the threshold and less than or equal
329 to 28. The time interval this window represents depends on the
331 created, the default value is 9.
334 Here is an explanation by Don Baarda on the inner workings of RRDtool.
335 It may help you to sort out why all this *UNKNOWN* data is popping up
336 in your databases:
338 RRDtool gets fed samples/updates at arbitrary times. From these it
339 builds Primary Data Points (PDPs) on every "step" interval. The PDPs
340 are then accumulated into the RRAs.
342 The "heartbeat" defines the maximum acceptable interval between
343 samples/updates. If the interval between samples is less than
344 "heartbeat", then an average rate is calculated and applied for that
345 interval. If the interval between samples is longer than "heartbeat",
346 then that entire interval is considered "unknown". Note that there are
347 other things that can make a sample interval "unknown", such as the
348 rate exceeding limits, or a sample that was explicitly marked as
349 unknown.
351 The known rates during a PDP's "step" interval are used to calculate an
352 average rate for that PDP. If the total "unknown" time accounts for
354 means that a mixture of known and "unknown" sample times in a single
355 PDP "step" may or may not add up to enough "known" time to warrent for
356 a known PDP.
358 The "heartbeat" can be short (unusual) or long (typical) relative to
359 the "step" interval between PDPs. A short "heartbeat" means you require
360 multiple samples per PDP, and if you don't get them mark the PDP
361 unknown. A long heartbeat can span multiple "steps", which means it is
362 acceptable to have multiple PDPs calculated from a single sample. An
363 extreme example of this might be a "step" of 5 minutes and a
364 "heartbeat" of one day, in which case a single sample every day will
365 result in all the PDPs for that entire day period being set to the same
366 average rate. _\b-_\b- _\bD_\bo_\bn _\bB_\ba_\ba_\br_\bd_\ba _\b<_\bd_\bo_\bn_\b._\bb_\ba_\ba_\br_\bd_\ba_\b@_\bb_\ba_\be_\bs_\by_\bs_\bt_\be_\bm_\bs_\b._\bc_\bo_\bm_\b>
368 time|
369 axis|
370 begin__|00|
371 |01|
372 u|02|----* sample1, restart "hb"-timer
373 u|03| /
374 u|04| /
375 u|05| /
376 u|06|/ "hbt" expired
377 u|07|
378 |08|----* sample2, restart "hb"
379 |09| /
380 |10| /
381 u|11|----* sample3, restart "hb"
382 u|12| /
383 u|13| /
384 step1_u|14| /
385 u|15|/ "swt" expired
386 u|16|
387 |17|----* sample4, restart "hb", create "pdp" for step1 =
388 |18| / = unknown due to 10 "u" labled secs > 0.5 * step
389 |19| /
390 |20| /
391 |21|----* sample5, restart "hb"
392 |22| /
393 |23| /
394 |24|----* sample6, restart "hb"
395 |25| /
396 |26| /
397 |27|----* sample7, restart "hb"
398 step2__|28| /
399 |22| /
400 |23|----* sample8, restart "hb", create "pdp" for step1, create "cdp"
401 |24| /
402 |25| /
404 graphics by _\bv_\bl_\ba_\bd_\bi_\bm_\bi_\br_\b._\bl_\ba_\bv_\br_\bo_\bv_\b@_\bd_\be_\bs_\by_\b._\bd_\be.
407 Here are a few hints on how to measure:
409 Temperature
410 Usually you have some type of meter you can read to get the
411 temperature. The temperature is not really connected with a time.
412 The only connection is that the temperature reading happened at a
414 RRDtool will then record your reading together with the time.
416 Mail Messages
417 Assume you have a method to count the number of messages
418 transported by your mailserver in a certain amount of time, giving
419 you data like '5 messages in the last 65 seconds'. If you look at
421 RRD with the number 5 and the end time of your monitoring period.
422 RRDtool will then record the number of messages per second. If at
423 some later stage you want to know the number of messages
424 transported in a day, you can get the average messages per second
425 from RRDtool for the day in question and multiply this number with
426 the number of seconds in a day. Because all math is run with
427 Doubles, the precision should be acceptable.
429 It's always a Rate
430 RRDtool stores rates in amount/second for COUNTER, DERIVE and
431 ABSOLUTE data. When you plot the data, you will get on the y axis
432 amount/second which you might be tempted to convert to an absolute
433 amount by multiplying by the delta-time between the points. RRDtool
434 plots continuous data, and as such is not appropriate for plotting
435 absolute amounts as for example "total bytes" sent and received in
436 a router. What you probably want is plot rates that you can scale
437 to bytes/hour, for example, or plot absolute amounts with another
438 tool that draws bar-plots, where the delta-time is clear on the
439 plot for each point (such that when you read the graph you see for
440 example GB on the y axis, days on the x axis and one bar for each
441 day).
444 rrdtool create temperature.rrd --step 300 \
445 DS:temp:GAUGE:600:-273:5000 \
446 RRA:AVERAGE:0.5:1:1200 \
447 RRA:MIN:0.5:12:2400 \
448 RRA:MAX:0.5:12:2400 \
449 RRA:AVERAGE:0.5:12:2400
451 This sets up an R\bRR\bRD\bD called _\bt_\be_\bm_\bp_\be_\br_\ba_\bt_\bu_\br_\be_\b._\br_\br_\bd which accepts one
452 temperature value every 300 seconds. If no new data is supplied for
453 more than 600 seconds, the temperature becomes _\b*_\bU_\bN_\bK_\bN_\bO_\bW_\bN_\b*. The minimum
454 acceptable value is -273 and the maximum is 5'000.
456 A few archive areas are also defined. The first stores the temperatures
457 supplied for 100 hours (1'200 * 300 seconds = 100 hours). The second
458 RRA stores the minimum temperature recorded over every hour (12 * 300
459 seconds = 1 hour), for 100 days (2'400 hours). The third and the fourth
460 RRA's do the same for the maximum and average temperature,
461 respectively.
464 rrdtool create monitor.rrd --step 300 \
465 DS:ifOutOctets:COUNTER:1800:0:4294967295 \
466 RRA:AVERAGE:0.5:1:2016 \
467 RRA:HWPREDICT:1440:0.1:0.0035:288
471 functions R\bRR\bRA\bAs\bs for aberrant behavior detection. Note that the _\br_\br_\ba_\b-_\bn_\bu_\bm
473 created with default parameter values. In this example, the forecasting
474 algorithm baseline adapts quickly; in fact the most recent one hour of
475 observations (each at 5 minute intervals) accounts for 75% of the
476 baseline prediction. The linear trend forecast adapts much more slowly.
477 Observations made during the last day (at 288 observations per day)
478 account for only 65% of the predicted linear trend. Note: these
479 computations rely on an exponential smoothing formula described in the
480 LISA 2000 paper.
482 The seasonal cycle is one day (288 data points at 300 second
483 intervals), and the seasonal adaption parameter will be set to 0.1. The
484 RRD file will store 5 days (1'440 data points) of forecasts and
485 deviation predictions before wrap around. The file will store 1 day (a
491 rrdtool create monitor.rrd --step 300 \
492 DS:ifOutOctets:COUNTER:1800:0:4294967295 \
493 RRA:AVERAGE:0.5:1:2016 \
494 RRA:HWPREDICT:1440:0.1:0.0035:288:3 \
495 RRA:SEASONAL:288:0.1:2 \
496 RRA:DEVPREDICT:1440:5 \
497 RRA:DEVSEASONAL:288:0.1:2 \
498 RRA:FAILURES:288:7:9:5
500 Of course, explicit creation need not replicate implicit create, a
501 number of arguments could be changed.
504 rrdtool create proxy.rrd --step 300 \
505 DS:Total:DERIVE:1800:0:U \
506 DS:Duration:DERIVE:1800:0:U \
507 DS:AvgReqDur:COMPUTE:Duration,Requests,0,EQ,1,Requests,IF,/ \
508 RRA:AVERAGE:0.5:1:2016
510 This example is monitoring the average request duration during each 300
511 sec interval for requests processed by a web proxy during the interval.
512 In this case, the proxy exposes two counters, the number of requests
513 processed since boot and the total cumulative duration of all processed
514 requests. Clearly these counters both have some rollover point, but
515 using the DERIVE data source also handles the reset that occurs when
516 the web proxy is stopped and restarted.
519 during the interval. The second data source stores the total duration
520 of all requests processed during the interval divided by 300. The
521 COMPUTE data source divides each PDP of the AccumDuration by the
522 corresponding PDP of TotalRequests and stores the average request
523 duration. The remainder of the RPN expression handles the divide by
524 zero case.
527 Tobias Oetiker <tobi@oetiker.ch>
531 1.3.8 2008-06-11 RRDCREATE(1)