1 RRDGRAPH_GRAPH(1) rrdtool RRDGRAPH_GRAPH(1)
6 rrdgraph_graph - rrdtool graph command reference
16 _\be_\bn_\bd][:\b:d\bda\bas\bsh\bhe\bes\bs[=\b=_\bo_\bn_\b__\bs[,_\bo_\bf_\bf_\b__\bs[,_\bo_\bn_\b__\bs,_\bo_\bf_\bf_\b__\bs]...]][:\b:d\bda\bas\bsh\bh-\b-o\bof\bff\bfs\bse\bet\bt=\b=_\bo_\bf_\bf_\bs_\be_\bt]]
19 _\be_\bn_\bd][:\b:d\bda\bas\bsh\bhe\bes\bs[=\b=_\bo_\bn_\b__\bs[,_\bo_\bf_\bf_\b__\bs[,_\bo_\bn_\b__\bs,_\bo_\bf_\bf_\b__\bs]...]][:\b:d\bda\bas\bsh\bh-\b-o\bof\bff\bfs\bse\bet\bt=\b=_\bo_\bf_\bf_\bs_\be_\bt]]
21 L\bLI\bIN\bNE\bE[_\bw_\bi_\bd_\bt_\bh]:\b:_\bv_\ba_\bl_\bu_\be[#\b#_\bc_\bo_\bl_\bo_\br][:\b:[_\bl_\be_\bg_\b-
22 _\be_\bn_\bd][:\b:S\bST\bTA\bAC\bCK\bK]][:\b:d\bda\bas\bsh\bhe\bes\bs[=\b=_\bo_\bn_\b__\bs[,_\bo_\bf_\bf_\b__\bs[,_\bo_\bn_\b__\bs,_\bo_\bf_\bf_\b__\bs]...]][:\b:d\bda\bas\bsh\bh-\b-o\bof\bff\bfs\bse\bet\bt=\b=_\bo_\bf_\bf_\b-
25 A\bAR\bRE\bEA\bA:\b:_\bv_\ba_\bl_\bu_\be[#\b#_\bc_\bo_\bl_\bo_\br][:\b:[_\bl_\be_\bg_\be_\bn_\bd][:\b:S\bST\bTA\bAC\bCK\bK]]
27 T\bTI\bIC\bCK\bK:\b:_\bv_\bn_\ba_\bm_\be#\b#_\br_\br_\bg_\bg_\bb_\bb[_\ba_\ba][:\b:_\bf_\br_\ba_\bc_\bt_\bi_\bo_\bn[:\b:_\bl_\be_\bg_\be_\bn_\bd]]
31 T\bTE\bEX\bXT\bTA\bAL\bLI\bIG\bGN\bN:\b:{l\ble\bef\bft\bt|r\bri\big\bgh\bht\bt|j\bju\bus\bst\bti\bif\bfi\bie\bed\bd|c\bce\ben\bnt\bte\ber\br}
33 P\bPR\bRI\bIN\bNT\bT:\b:_\bv_\bn_\ba_\bm_\be:\b:_\bC_\bF:\b:_\bf_\bo_\br_\bm_\ba_\bt (deprecated)
35 G\bGP\bPR\bRI\bIN\bNT\bT:\b:_\bv_\bn_\ba_\bm_\be:\b:_\bC_\bF:\b:_\bf_\bo_\br_\bm_\ba_\bt (deprecated)
37 S\bST\bTA\bAC\bCK\bK:\b:_\bv_\bn_\ba_\bm_\be#\b#_\bc_\bo_\bl_\bo_\br[:\b:_\bl_\be_\bg_\be_\bn_\bd] (deprecated)
40 These instructions allow you to generate your image or report. If you
41 don't use any graph elements, no graph is generated. Similarly, no
42 report is generated if you don't use print options.
46 _\bP\bP_\bR\bR_\bI\bI_\bN\bN_\bT\bT_\b:\b:_\bv_\bn_\ba_\bm_\be_\b:\b:_\bf_\bo_\br_\bm_\ba_\bt_\b[_\b:\b:_\bs\bs_\bt\bt_\br\br_\bf\bf_\bt\bt_\bi\bi_\bm\bm_\be\be_\b]
48 Depending on the context, either the value component or the time compo-
49 nent of a V\bVD\bDE\bEF\bF is printed using _\bf_\bo_\br_\bm_\ba_\bt. It is an error to specify a
53 character introduces a formatter string. This string can be:
55 For printing values:
60 prints numbers like 1.2346e+04. The optional integers # denote
61 field width and decimal precision.
64 prints numbers like 12345.6789, with optional field width and pre-
65 cision.
67 %\b%s\bs place this after %\b%l\ble\be, %\b%l\blf\bf or %\b%l\blg\bg. This will be replaced by the
68 appropriate SI magnitude unit and the value will be scaled accord-
69 ingly (123456 -> 123.456 k).
72 tude unit. If there is no such unit yet, it tries to define one
77 If you PRINT a VDEF value, you can also print the time associated with
79 uses the strftime function of your OSs C library. This means that the
80 conversion specifier may vary. Check the manual page if you are uncer-
81 tain. The following is a list of conversion specifiers usually sup-
82 ported across the board.
97 23).
100 12).
109 responding strings for the current locale. Noon is treated as `pm'
110 and midnight as `am'. Note that in many locales and `pm' notation
111 is unsupported and in such cases %p will return an empty string.
116 dard!)
119 00 to 53, starting with the first Sunday as the first day of week
120 01. See also %V and %W.
123 ber, range 01 to 53, where week 1 is the first week that has at
124 least 4 days in the current year, and with Monday as the first day
125 of the week. See also %U and %W.
128 See also %u.
131 to 53, starting with the first Monday as the first day of week
132 01.
135 the time.
138 the date.
148 _\bP\bP_\bR\bR_\bI\bI_\bN\bN_\bT\bT_\b:\b:_\bv_\bn_\ba_\bm_\be_\b:\b:_\bC_\bF_\b:\b:_\bf_\bo_\br_\bm_\ba_\bt
150 _\bD_\be_\bp_\br_\be_\bc_\ba_\bt_\be_\bd_\b. _\bU_\bs_\be _\bt_\bh_\be _\bn_\be_\bw _\bf_\bo_\br_\bm _\bo_\bf _\bt_\bh_\bi_\bs _\bc_\bo_\bm_\bm_\ba_\bn_\bd _\bi_\bn _\bn_\be_\bw _\bs_\bc_\br_\bi_\bp_\bt_\bs_\b. The first
155 _\bG\bG_\bP\bP_\bR\bR_\bI\bI_\bN\bN_\bT\bT_\b:\b:_\bv_\bn_\ba_\bm_\be_\b:\b:_\bf_\bo_\br_\bm_\ba_\bt
157 This is the same as "PRINT", but printed inside the graph.
159 _\bG\bG_\bP\bP_\bR\bR_\bI\bI_\bN\bN_\bT\bT_\b:\b:_\bv_\bn_\ba_\bm_\be_\b:\b:_\bC_\bF_\b:\b:_\bf_\bo_\br_\bm_\ba_\bt
161 _\bD_\be_\bp_\br_\be_\bc_\ba_\bt_\be_\bd_\b. _\bU_\bs_\be _\bt_\bh_\be _\bn_\be_\bw _\bf_\bo_\br_\bm _\bo_\bf _\bt_\bh_\bi_\bs _\bc_\bo_\bm_\bm_\ba_\bn_\bd _\bi_\bn _\bn_\be_\bw _\bs_\bc_\br_\bi_\bp_\bt_\bs_\b. This is
162 the same as "PRINT", but printed inside the graph.
166 Text is printed literally in the legend section of the graph. Note that
167 in RRDtool 1.2 you have to escape colons in COMMENT text in the same
170 _\bV\bV_\bR\bR_\bU\bU_\bL\bL_\bE\bE_\b:\b:_\bt_\bi_\bm_\be_\b#\b#_\bc_\bo_\bl_\bo_\br_\b[_\b:\b:_\bl_\be_\bg_\b-
171 _\be_\bn_\bd_\b]_\b[_\b:\b:_\bd\bd_\ba\ba_\bs\bs_\bh\bh_\be\be_\bs\bs_\b[_\b=\b=_\bo_\bn_\b__\bs_\b[_\b,_\bo_\bf_\bf_\b__\bs_\b[_\b,_\bo_\bn_\b__\bs_\b,_\bo_\bf_\bf_\b__\bs_\b]_\b._\b._\b._\b]_\b]_\b[_\b:\b:_\bd\bd_\ba\ba_\bs\bs_\bh\bh_\b-\b-_\bo\bo_\bf\bf_\bf\bf_\bs\bs_\be\be_\bt\bt_\b=\b=_\bo_\bf_\bf_\bs_\be_\bt_\b]_\b]
174 adecimal numbers specifying the rgb color components (00 is off, FF is
175 maximum) red, green and blue followed by an optional alpha. Optionally,
177 number or a variable from a V\bVD\bDE\bEF\bF. It is an error to use _\bv_\bn_\ba_\bm_\bes from D\bDE\bEF\bF
178 or C\bCD\bDE\bEF\bF here. Dashed lines can be drawn using the d\bda\bas\bsh\bhe\bes\bs modifier. See
181 _\bH\bH_\bR\bR_\bU\bU_\bL\bL_\bE\bE_\b:\b:_\bv_\ba_\bl_\bu_\be_\b#\b#_\bc_\bo_\bl_\bo_\br_\b[_\b:\b:_\bl_\be_\bg_\b-
182 _\be_\bn_\bd_\b]_\b[_\b:\b:_\bd\bd_\ba\ba_\bs\bs_\bh\bh_\be\be_\bs\bs_\b[_\b=\b=_\bo_\bn_\b__\bs_\b[_\b,_\bo_\bf_\bf_\b__\bs_\b[_\b,_\bo_\bn_\b__\bs_\b,_\bo_\bf_\bf_\b__\bs_\b]_\b._\b._\b._\b]_\b]_\b[_\b:\b:_\bd\bd_\ba\ba_\bs\bs_\bh\bh_\b-\b-_\bo\bo_\bf\bf_\bf\bf_\bs\bs_\be\be_\bt\bt_\b=\b=_\bo_\bf_\bf_\bs_\be_\bt_\b]_\b]
185 will have no effect on the scale of the graph. If a HRULE is outside
186 the graphing area it will just not be visible.
188 _\bL\bL_\bI\bI_\bN\bN_\bE\bE_\b[_\bw_\bi_\bd_\bt_\bh_\b]_\b:\b:_\bv_\ba_\bl_\bu_\be_\b[_\b#\b#_\bc_\bo_\bl_\bo_\br_\b]_\b[_\b:\b:_\b[_\bl_\be_\bg_\b-
189 _\be_\bn_\bd_\b]_\b[_\b:\b:_\bS\bS_\bT\bT_\bA\bA_\bC\bC_\bK\bK_\b]_\b]_\b[_\b:\b:_\bd\bd_\ba\ba_\bs\bs_\bh\bh_\be\be_\bs\bs_\b[_\b=\b=_\bo_\bn_\b__\bs_\b[_\b,_\bo_\bf_\bf_\b__\bs_\b[_\b,_\bo_\bn_\b__\bs_\b,_\bo_\bf_\bf_\b__\bs_\b]_\b._\b._\b._\b]_\b]_\b[_\b:\b:_\bd\bd_\ba\ba_\bs\bs_\bh\bh_\b-\b-_\bo\bo_\bf\bf_\bf\bf_\bs\bs_\be\be_\bt\bt_\b=\b=_\bo_\bf_\bf_\b-
193 floating point number. If the color is not specified, the drawing is
194 done 'invisibly'. This is useful when stacking something else on top of
195 this line. Also optional is the legend box and string which will be
197 by D\bDE\bEF\bF, V\bVD\bDE\bEF\bF, and C\bCD\bDE\bEF\bF. If the optional S\bST\bTA\bAC\bCK\bK modifier is used, this
202 options a symmetric dashed line with a segment length of 5 pixels will
204 followed by either one value or an even number (1, 2, 4, 6, ...) of
206 _\bo_\bf_\bf_\b__\bs portions of the stroke. The d\bda\bas\bsh\bh-\b-o\bof\bff\bfs\bse\bet\bt parameter specifies an
209 When you do not specify a color, you cannot specify a legend. Should
210 you want to use STACK, use the "LINEx:<value>::STACK" form.
212 _\bA\bA_\bR\bR_\bE\bE_\bA\bA_\b:\b:_\bv_\ba_\bl_\bu_\be_\b[_\b#\b#_\bc_\bo_\bl_\bo_\br_\b]_\b[_\b:\b:_\b[_\bl_\be_\bg_\be_\bn_\bd_\b]_\b[_\b:\b:_\bS\bS_\bT\bT_\bA\bA_\bC\bC_\bK\bK_\b]_\b]
215 filled.
217 _\bT\bT_\bI\bI_\bC\bC_\bK\bK_\b:\b:_\bv_\bn_\ba_\bm_\be_\b#\b#_\br_\br_\bg_\bg_\bb_\bb_\b[_\ba_\ba_\b]_\b[_\b:\b:_\bf_\br_\ba_\bc_\bt_\bi_\bo_\bn_\b[_\b:\b:_\bl_\be_\bg_\be_\bn_\bd_\b]_\b]
221 the tick mark as a fraction of the y-axis; the default value is 0.1
222 (10% of the axis). Note that the color specification is not optional.
223 The TICK marks normally start at the lower edge of the graphing area.
224 If the fraction is negative they start at the upper border of the
225 graphing area.
230 specified offset. For instance, you can specify an offset of
231 ( 7*24*60*60 = ) 604'800 seconds to "look back" one week. Make sure to
232 tell the viewer of your graph you did this ... As with the other
233 graphing elements, you can specify a number or a variable here.
235 _\bT\bT_\bE\bE_\bX\bX_\bT\bT_\bA\bA_\bL\bL_\bI\bI_\bG\bG_\bN\bN_\b:\b:_\b{_\bl\bl_\be\be_\bf\bf_\bt\bt_\b|_\br\br_\bi\bi_\bg\bg_\bh\bh_\bt\bt_\b|_\bj\bj_\bu\bu_\bs\bs_\bt\bt_\bi\bi_\bf\bf_\bi\bi_\be\be_\bd\bd_\b|_\bc\bc_\be\be_\bn\bn_\bt\bt_\be\be_\br\br_\b}
237 Labels are placed below the graph. When they overflow to the left, they
238 wrap to the next line. By default, lines are justified left and right.
239 The T\bTE\bEX\bXT\bTA\bAL\bLI\bIG\bGN\bN function lets you change this default. This is a command
240 and not an option, so that you can change the default several times in
241 your argument list.
243 _\bS\bS_\bT\bT_\bA\bA_\bC\bC_\bK\bK_\b:\b:_\bv_\bn_\ba_\bm_\be_\b#\b#_\bc_\bo_\bl_\bo_\br_\b[_\b:\b:_\bl_\be_\bg_\be_\bn_\bd_\b]
245 _\bD_\be_\bp_\br_\be_\bc_\ba_\bt_\be_\bd_\b. _\bU_\bs_\be _\bt_\bh_\be _\bS\bS_\bT\bT_\bA\bA_\bC\bC_\bK\bK _\bm_\bo_\bd_\bi_\bf_\bi_\be_\br_\bs _\bo_\bn _\bt_\bh_\be _\bo_\bt_\bh_\be_\br _\bc_\bo_\bm_\bm_\ba_\bn_\bd_\bs _\bi_\bn_\bs_\bt_\be_\ba_\bd_\b!
249 When stacking, an element is not placed above the X-axis but rather on
250 top of the previous element. There must be something to stack upon.
255 You don't know where to begin (the unknown value) and therefore do not
256 know where to end.
258 If you want to make sure you will be displaying a certain variable,
259 make sure never to stack upon the unknown value. Use a CDEF instruc-
266 enter a ':' as part of a legend, the colon must be escaped with a back-
267 slash '\:'. Beware that many environments process backslashes them-
268 selves, so it may be necessary to write two backslashes in order to one
269 being passed onto rrd_graph.
273 The text printed below the actual graph can be formatted by appending
274 special escape characters at the end of a text. When ever such a char-
275 acter occurs, all pending text is pushed onto the graph according to
276 the character specified.
280 showing how to use centered formatting.
283 of rrdtool lead to this behavior and a number of people has been using
284 it.
286 Normally there are two space characters inserted between every two
287 items printed into the graph. The space following a string can be sup-
289 any space inside the string if it is at the very end of the string.
292 GPRINT:a:MAX:%lf%s\g
295 space before placing the next row of legends.
297 If you are using the proportional font in your graph, you can use tab
299 tabs inserted are relative to the start of the current legend element!
301 Since RRDtool 1.3 is using Pango for rending text, you can use Pango
303 tions.:
305 A simple example of a marked-up string might be:
307 <span foreground="blue" size="x-large">Blue text</span> is <i>cool</i>!
309 The complete list of attributes for the span tag (taken from the pango
310 documentation):
313 A font description string, such as "Sans Italic 12"; note that any
314 other span attributes will override this description. So if you
315 have "Sans Italic" and also a style="normal" attribute, you will
316 get Sans normal, not italic.
319 A font family name
322 Synonym for font_family
325 Font size in 1024ths of a point, or one of the absolute sizes
326 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large',
327 'xx-large', or one of the relative sizes 'smaller' or 'larger'. If
328 you want to specify a absolute size, it's usually easier to take
329 advantage of the ability to specify a partial font description
330 using 'font_desc'; you can use font_desc='12.5' rather than
331 size='12800'.
334 One of 'normal', 'oblique', 'italic'
337 One of 'ultralight', 'light', 'normal', 'bold', 'ultrabold',
338 'heavy', or a numeric weight
341 'normal' or 'smallcaps'
344 One of 'ultracondensed', 'extracondensed', 'condensed', 'semicon-
345 densed', 'normal', 'semiexpanded', 'expanded', 'extraexpanded',
346 'ultraexpanded'
349 An RGB color specification such as '#00FF00' or a color name such
350 as 'red'
353 An RGB color specification such as '#00FF00' or a color name such
354 as 'red'
357 One of 'none', 'single', 'double', 'low', 'error'
360 The color of underlines; an RGB color specification such as
361 '#00FF00' or a color name such as 'red'
364 Vertical displacement, in 10000ths of an em. Can be negative for
365 subscript, positive for superscript.
368 'true' or 'false' whether to strike through the text
371 The color of strikethrough lines; an RGB color specification such
372 as '#00FF00' or a color name such as 'red'
375 'true' or 'false' whether to enable fallback. If disabled, then
376 characters will only be used from the closest matching font on the
377 system. No fallback will be done to other fonts on the system that
378 might contain the characters in the text. Fallback is enabled by
379 default. Most applications should not disable fallback.
382 A language code, indicating the text language
385 Inter-letter spacing in 1024ths of a point.
388 One of 'south', 'east', 'north', 'west', 'auto'.
391 One of 'natural', 'strong', 'line'.
393 To save you some typing, there are also some shortcuts:
395 b\bb Bold
399 i\bi Italic
401 s\bs Strikethrough
408 Makes font relatively smaller, equivalent to <span size="smaller">
412 u\bu Underline
415 rrdgraph gives an overview of how r\brr\brd\bdt\bto\boo\bol\bl g\bgr\bra\bap\bph\bh works. rrdgraph_data
416 describes D\bDE\bEF\bF,C\bCD\bDE\bEF\bF and V\bVD\bDE\bEF\bF in detail. rrdgraph_rpn describes the R\bRP\bPN\bN
418 all of the graph and print functions.
420 Make sure to read rrdgraph_examples for tips&tricks.
423 Program by Tobias Oetiker <tobi@oetiker.ch>
425 This manual page by Alex van den Bogaerdt <alex@vandenbogaerdt.nl> with
426 corrections and/or additions by several people
430 1.3.7 2009-02-21 RRDGRAPH_GRAPH(1)