You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a carbon cache which under normal conditions holds about 9 hours of metrics in each queue before flushing to disk. When querying using graphite-web, no datapoints are returned if the time window is less than 9 hours. For example:
The reason this happens is because WhisperReader.get_intervals() assumes that the newest datapoint is the modification time of the whisper file; it does not query the cache to see if it has any newer datapoints.
I'm using an older version of graphite-web (git master circa Oct 2015), but from what I can tell the limitation still exists in master. This is my crude workaround:
I don't like this, because now the cache is always queried, even if the end of the interval is older than the modification time on the whisper file. A better fix would be to somehow pass the query interval into get_intervals(), but this would break the API for finders.
An alternative workaround is to adjust FIND_TOLERANCE to 24 hours (24 * 60 * 60), but afaict this is not well-documented. Given the number of unanswered questions around the web about metrics mysteriously not showing up until they are flushed, it might be worthwhile mentioning this in the documentation as a possible solution.
This issue is similar to but slightly different from other issues I've found:
That's strange - if that be true then cache was not working completely, right?
I saw quite big carbon caches in memory and never experience this issue. Which version do you running, @cout ?
#629 is a different issue, not sure why #602 is there too - typo in issue number? #1460 is a complete mystery to me too, looks like some cache misconfiguration.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We have a carbon cache which under normal conditions holds about 9 hours of metrics in each queue before flushing to disk. When querying using graphite-web, no datapoints are returned if the time window is less than 9 hours. For example:
The reason this happens is because
WhisperReader.get_intervals()
assumes that the newest datapoint is the modification time of the whisper file; it does not query the cache to see if it has any newer datapoints.I'm using an older version of graphite-web (git master circa Oct 2015), but from what I can tell the limitation still exists in master. This is my crude workaround:
I don't like this, because now the cache is always queried, even if the end of the interval is older than the modification time on the whisper file. A better fix would be to somehow pass the query interval into
get_intervals()
, but this would break the API for finders.An alternative workaround is to adjust
FIND_TOLERANCE
to 24 hours (24 * 60 * 60), but afaict this is not well-documented. Given the number of unanswered questions around the web about metrics mysteriously not showing up until they are flushed, it might be worthwhile mentioning this in the documentation as a possible solution.This issue is similar to but slightly different from other issues I've found:
The text was updated successfully, but these errors were encountered: