[rrd-users] extract timestamp from every sample

Simon Hobson linux at thehobsons.co.uk
Tue Jul 26 13:23:14 CEST 2011


Fritjof Bornebusch - Skyfillers wrote:

>Hi folks,
>
>I have to get the timestamp from every sample which is in the data array:
>
>info , ds_rrd , data = rrdtool.fetch( rrd_file, "AVERAGE", 
>"--start", str(start), "--end", str(end) )
>
>How can I extract the timestamp?
>
>I'm using the Python API.

First thing - are you expecting to find the timestamps of the 
original data that was put in, or of the normalised/consolidated data 
you are getting out ? The former does not exist as it is never 
stored, the latter is in the data when using the standalone rrd tools.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the rrd-users mailing list