I'm running an RRD dump from Citrix XenServer and I'm parsing the XML for import into another system. I know that within the element there is a element which is a timestamp, but when I parse the integer into a Time sometimes it is in the future. Is RRD interpolating what the values will be?
Here's an example of the XML: http://pastie.org/1541903
RRDtool interpolate submitted data to fit its time steps. RRDtool is specifically designed to store values consolidated over various timescales.
According to the post by saxon at the page referenced below, which should be authoritative since it appears to be from the site admin for JRobin, the timestamp represents the start of the interval.
http://oldwww.jrobin.org/phpBB2/viewtopic.php?t=71&sid=3bdadda9ebfdd8792a018665f32f253e
I've noticed, however, that Citrix will report incomplete intervals; that is, if you calculate the end of the interval (t + step), it will generally be in the future for the final entry (which comes first in the list for some reason). But comparing the values to the output of
date +%s
I never see values for the start/end/t tags which are in the future.
Is it possible that the clocks on the XenServer host and the host where you are looking at the data are off, or that the systems are in different timezones?
UPDATE: Hold on. As a test, I created a spike in network activity and then fetched metrics and looked for the spike. The t value appears to be the end of the interval, not the start as suggested above.
If anyone knows of a page that gives clear definitions of the XML tags returned by Citrix, please post a link.