Raw time series

48 views
Skip to first unread message

Roberto Riggio

unread,
Oct 10, 2011, 6:01:55 AM10/10/11
to pyrrd...@googlegroups.com
Hy,

is there a way to get a raw dictionary containing the time series stored in a database?

Let's have an example. I'm using this very simple script:

graphfile = tempfile.NamedTemporaryFile(suffix=".png")
def1 = DEF(rrdfile=reply[0].filename, vname='mydef', dsName=hist, cdef='AVERAGE')
line1 = AREA(defObj=def1, color='#FF0000', legend='My Data')
g = Graph(graphfile.name)
g.data.extend([def1, line1])
g.write()

This would generate a png graph containing my graph. What I would like to have is the raw 
points of this graph, Then, I would save that data in csv format for later import in excel.

Is there a way to achieve this?

Thanks

Reply all
Reply to author
Forward
0 new messages