Difference between revisions of "RRDTool"

From ArmadeusWiki
Jump to: navigation, search
(Created page with "==Introduction== One wanting to log periodic data on his embedded system with a standard and robust method might be interested by the following instructions. From wikipedia:...")
 
(Usage)
 
Line 19: Line 19:
  
 
==Usage==
 
==Usage==
 +
* Check your system has the correct date/time:
 +
<pre class="apf">
 +
# date
 +
</pre>
 +
* If not, then set it ;-)
 +
* Create the database:
 +
<pre class="apf">
 +
# rrdtool create /data/battery.rrd --step 120 DS:cap:GAUGE:240:0:100 RRA:AVERAGE:0.5:1:1200
 +
</pre>
 +
* Feed the script with data (XX):
 +
<pre class="apf">
 +
rrdtool update /data/battery.rrd -- N:
 +
</pre>
  
 
==Links==
 
==Links==
 
* https://oss.oetiker.ch/rrdtool/
 
* https://oss.oetiker.ch/rrdtool/

Latest revision as of 12:18, 18 November 2019

Introduction

One wanting to log periodic data on his embedded system with a standard and robust method might be interested by the following instructions.

From wikipedia: "RRDtool (round-robin database tool) aims to handle time series data. The data are stored in a circular buffer based database, thus the system storage footprint remains constant over time. It also includes tools to extract round-robin data in a graphical format, for which it was originally intended. Bindings exist for several programming languages."

Installation

$ make menuconfig
...
Target packages  --->
    ...
    Graphic libraries and applications (graphic/text)  --->
        ...
        [*] rrdtool
  • then reflash your rootfs

Usage

  • Check your system has the correct date/time:
# date
  • If not, then set it ;-)
  • Create the database:
# rrdtool create /data/battery.rrd --step 120 DS:cap:GAUGE:240:0:100 RRA:AVERAGE:0.5:1:1200
  • Feed the script with data (XX):
rrdtool update /data/battery.rrd -- N:

Links