Bluehost.com Web Hosting $6.95

Re: [rrd-users] Fetching from the beginning of an RRD file

This is a discussion on Re: [rrd-users] Fetching from the beginning of an RRD file within the RRD Users forums, part of the Networking and Network Related category; On 2/28/07, Alex van den Bogaerdt <alex@ergens.op.het.net> wrote: Hey Alex, Thanks for ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2007
Travis Spencer
 
Posts: n/a
Default Re: [rrd-users] Fetching from the beginning of an RRD file

On 2/28/07, Alex van den Bogaerdt <alex@ergens.op.het.net> wrote:

Hey Alex,

Thanks for the reply. I really appreciate your willingness to help me
get to the bottom of this.

> Think of the database as a wheel. There is no beginning nor an end.


OK, but time isn't a wheel; it's linear and on that line epoch occurs
before the second of January 2007 (the date corresponding to
1167724800 that I used in my previous example).

> There is a pointer to the last entry written. That's the most recent
> available data. Next to it is older, next to that one is older, and
> so on. When you are back at the pointer, you have seen all available
> data.


While I have no doubt that is how RRD handles things internally, I was
thinking of it more like this: Each RRD file is a database. That
database contains one table for each CF (e.g., AVERAGE, MIN, etc.).
Each table has a number of columns (e.g., DS, DST, timestamp, etc.).
Given all of this, I was thinking of my initial example:

rrdtool fetch foo.rrd AVERAGE -s 0

to be analogous to this SQL:

SELECT * FROM AVERAGE WHERE timestamp > 0

Perhaps I'm looking at this wrong; however, even if RRD is storing its
data internally in a wheel-like structure, I would think that all of
that data would be returned if I ask it to fetch me its averages that
were entered more recently than epoch. To fulfill such a request, it
would have to analyze echo row of its datastore upon which it would
see that all were entered after Jan. 1, 1970. Thus, the above
execution of rrdtool, should give me all values from the "beginning"
to the "end".

> If you didn't know this, perhaps you should look at the documentation,


The documentation says, "-s [is a] time in seconds since epoch." Zero
is certainly such a time.

Thanks again, Alex, for the help.

--

Regards,

Travis Spencer

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0