From d76bf876d4ce8e845a8e03a48b72a4ad4761359f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 22 Mar 2015 11:14:42 +0100 Subject: o RRD output. --- README-apps.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'README-apps.md') diff --git a/README-apps.md b/README-apps.md index f9c3753..228691a 100644 --- a/README-apps.md +++ b/README-apps.md @@ -14,3 +14,23 @@ Example output: 347,249,0,0,234,235,1425594336 348,248,0,0,234,235,1425594337 349,245,0,0,234,235,1425594338 + +Combining with rrdtool + + rrdtool create test.rrd --step 1 \ + --start 1425593989 \ + DS:analog:GAUGE:600:U:U \ + RRA:AVERAGE:0.5:1:864000 \ + RRA:AVERAGE:0.5:60:14400 + +Inserting values + + sample-timestamp --input log.txt --relative-name now | \ + sample-convert --output-format rrd --fields analog | \ + xargs rrdtool update test.rrd + +Graphing values + + rrdtool graph graph.png --width 1024 --height 512 \ + --start 1425593989 --end 1425991529 \ + DEF:a=test.rrd:analog:AVERAGE LINE2:a#FF0000 -- cgit v1.2.3