<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.antiperfect.org/index.php?action=history&amp;feed=atom&amp;title=RRD</id>
	<title>RRD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.antiperfect.org/index.php?action=history&amp;feed=atom&amp;title=RRD"/>
	<link rel="alternate" type="text/html" href="https://wiki.antiperfect.org/index.php?title=RRD&amp;action=history"/>
	<updated>2026-10-18T01:15:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.antiperfect.org/index.php?title=RRD&amp;diff=998&amp;oldid=prev</id>
		<title>Hdridder at 16:37, 17 January 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.antiperfect.org/index.php?title=RRD&amp;diff=998&amp;oldid=prev"/>
		<updated>2021-01-17T16:37:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:37, 17 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the example below:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the example below:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;start&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;start&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:First date in the database in epoch (seconds since January 1, 1970). date +%s gives current epoch.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:First date in the database in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[https://www.epochconverter.com/ &lt;/ins&gt;epoch&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;] &lt;/ins&gt;(seconds since January 1, 1970). date +%s gives current epoch.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;step&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;step&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Expected rate data comes in in seconds&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Expected rate data comes in in seconds&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-i3a:diff:1.41:old-62:rev-998:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Hdridder</name></author>
	</entry>
	<entry>
		<id>https://wiki.antiperfect.org/index.php?title=RRD&amp;diff=62&amp;oldid=prev</id>
		<title>Hdridder: Created page with &quot;Round Robin Databases by Toby Oetker [https://oss.oetiker.ch/rrdtool/]  In the example below: ;start :First date in the database in epoch (seconds since January 1, 1970). date...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.antiperfect.org/index.php?title=RRD&amp;diff=62&amp;oldid=prev"/>
		<updated>2018-02-05T21:24:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Round Robin Databases by Toby Oetker [https://oss.oetiker.ch/rrdtool/]  In the example below: ;start :First date in the database in epoch (seconds since January 1, 1970). date...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Round Robin Databases by Toby Oetker [https://oss.oetiker.ch/rrdtool/]&lt;br /&gt;
&lt;br /&gt;
In the example below:&lt;br /&gt;
;start&lt;br /&gt;
:First date in the database in epoch (seconds since January 1, 1970). date +%s gives current epoch.&lt;br /&gt;
;step&lt;br /&gt;
:Expected rate data comes in in seconds&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;DS:name:type:heartbeat:min:max&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Datasource, the raw data to store&lt;br /&gt;
:type; Most used are GAUGE (set of data) or COUNTER (always increasing data like from a smartmeter)&lt;br /&gt;
:heartbeat; Maximum time between two enty&amp;#039;s. After this time a record with *UNKNOWN* values will be put in.&lt;br /&gt;
:min, max; Values outside this range will be recorded as *UNKNOWN*&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;RRA:consolidatefunction:missing:steps:rows&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Round Robin Archive, how the raw data will be consolidated&lt;br /&gt;
:consolidatefunction; &amp;lt;nowiki&amp;gt;[AVERAGE,MIN,MAX,LAST]&amp;lt;/nowiki&amp;gt; what to take from the raw data to store&lt;br /&gt;
:missing; The amount of allowed *UNKNOWN* records that still give a valid result (0,5 means half the data may be missing)&lt;br /&gt;
:steps; The number of raw data rows to consolidate&lt;br /&gt;
:rows; The amount of records to keep in the RRA&lt;br /&gt;
:What timespan is saved depends on the stepsize, the number of steps and the number of rows.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
rrdtool create database.rrd \&lt;br /&gt;
        --start 1 \&lt;br /&gt;
        --step 10 \&lt;br /&gt;
	DS:count1:COUNTER:60:0:999999999 \&lt;br /&gt;
	DS:count2:COUNTER:60:0:999999999 \&lt;br /&gt;
        DS:gauge1:GAUGE:60:0:1 \&lt;br /&gt;
        DS:gauge2:GAUGE:60:0:99999 \&lt;br /&gt;
	DS:count3:COUNTER:60:0:99999999 \&lt;br /&gt;
	RRA:AVERAGE:0.5:1:60480 \        # One week of 10 seconds data&lt;br /&gt;
	RRA:AVERAGE:0.5:6:44640 \        # 31 days of 1 minute data (consolidate 6 10sec records)&lt;br /&gt;
        RRA:AVERAGE:0.5:8640:365         # 365 days of 1 day data  (consolidate 8640 10sec records)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RRD&amp;#039;s are used to generate graphs.&lt;br /&gt;
;start&lt;br /&gt;
:At what time the X-axis starts&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;DEF:graphname=database.rrd:counter:consolidate&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:What DS to display&lt;br /&gt;
:graphname; Name to refer to in other graph commands (like AREA)&lt;br /&gt;
:database.rrd:counter; DS to display&lt;br /&gt;
:consolidate; How to handle data if it needs to be consolidated before displaying it.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;type:graphname#008000:legend:STACK&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:How to display the graph&lt;br /&gt;
:type; Common are LINE, AREA&lt;br /&gt;
:graphname#000000; Counter and color to display it in&lt;br /&gt;
:STACK; For subsequent AREA&amp;#039;s, stack them instead of displaying over eachother.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
rrdtool graph imagename.png --title &amp;quot;This is a nice graph&amp;quot; \&lt;br /&gt;
	--width 800 \&lt;br /&gt;
	--vertical-label aLabel \&lt;br /&gt;
	--x-grid HOUR:1:HOUR:4:HOUR:1:0:%H \&lt;br /&gt;
	--start now-1d \&lt;br /&gt;
	--upper-limit 1 -r\&lt;br /&gt;
        DEF:graphname1=database.rrd:counter1:AVERAGE \&lt;br /&gt;
        DEF:graphname2=database.rrd:counter2:AVERAGE \&lt;br /&gt;
        AREA:graphname1#FF0000:legend1 \&lt;br /&gt;
        AREA:graphname2#008000:legend2:STACK&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hdridder</name></author>
	</entry>
</feed>