3
from pyrrd.rrd import RRD, RRA, DS
4
from pyrrd.graph import DEF, CDEF, VDEF
5
from pyrrd.graph import LINE, AREA, GPRINT
6
from pyrrd.graph import ColorAttributes, Graph
9
filename = '%s.rrd' % os.path.splitext(os.path.basename(__file__))[0]
11
# Let's create and RRD file and dump some data in it
14
ds1 = DS(dsName='speed', dsType='COUNTER', heartbeat=600)
16
rra1 = RRA(cf='AVERAGE', xff=0.5, steps=1, rows=24)
18
myRRD = RRD(filename, ds=dss, rra=rras, start=920804400)
20
myRRD.bufferValue('920805600', '12363')
21
myRRD.bufferValue('920806100', '12364')