aboutsummaryrefslogtreecommitdiff
path: root/README-apps.md
diff options
context:
space:
mode:
Diffstat (limited to 'README-apps.md')
-rw-r--r--README-apps.md20
1 files changed, 20 insertions, 0 deletions
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