← Back to team overview

graphite-dev team mailing list archive

Re: [Question #99926]: gaps in graphs when viewing small time frames? Bug or User error?

 

Question #99926 on Graphite changed:
https://answers.launchpad.net/graphite/+question/99926

    Status: Open => Answered

chrismd proposed the following answer:
No, I think you misunderstood what I was trying to say. Graphite does
not care when data is received, only the timestamp you actually send
with the value matters. The problem with the script is that if you look
at the while loop at the bottom it starts with this:

lines = []

So each time the loop iterates, the lines list is initialized as an
empty list. Then data gets put into the lines list. Then it checks to
see if its been 5 seconds since the last transmission, if it hasn't the
loop repeats. The next time around that lines = [] line means the
previously collected data is lost and only the data collected for that
loop iteration can be transmitted. So the data is being collected every
0.5 seconds, but all of it is discarded except one batch of data every 5
seconds. You can see this more clearly if you put a print statement
stating when data is collected and another stating when data is sent
(and if you look at the contents of what is sent the timestamps will be
5 seconds apart).

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.