]> git.sesse.net Git - vlc/blob - doc/rrd-howto.txt
RRD output (Refs:#473)
[vlc] / doc / rrd-howto.txt
1
2 # First, create the RRD file
3 rrdtool create vlc.rrd --step 1 "DS:in:GAUGE:10:0:30000" "DS:demux:GAUGE:10:0:30000" "DS:out:GAUGE:10:0:30000" "RRA:AVERAGE:0,5:1:86400"
4
5 # Start "listening" the RRD file
6 tail -f rrd |while read in;do;echo $in;rrdtool update vlc.rrd `echo $in`;done
7
8 # Start vlc
9 vlc normal_vlc_stuff --extraintf logger --rrd-file rrd
10
11 # Graph the last 5 minutes (300 seconds)
12 rrdtool graph vlc.png --start -300 "DEF:inp=vlc.rrd:in:AVERAGE" "DEF:dem=vlc.rrd:demux:AVERAGE" "DEF:out=vlc.rrd:out:AVERAGE" "LINE2:dem#00FF00:Demux bitrate" "LINE2:inp#0000FF:Input bitrate" "LINE2:out#FF0000:Output bitrate"