graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00205
[Question #97331]: Lower precision archives must cover larger time intervals than higher precision archives
New question #97331 on Graphite:
https://answers.launchpad.net/graphite/+question/97331
>From what I have read the 'retentions' is setup via:
seconds_per_data_point:data_points_to_store
I want to store 3 months of 5 minute polls (3*30*24*60)/5 = 25920
but beyond that I need much less precise data, say your typical mrtg settings of:
1 week of 30 minute polls (1800:300)
1 month of 2 hour polls (7200:360)
1 year of 24 hour polls (86400:365)
So the retentions I want would be:
retentions = 300:25920,1800:300,7200:360,86400:365
Upon doing so I get the following error:
[console] Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.4/site-packages/twisted/python/threadpool.py", line 210, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib64/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib64/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/opt/graphite/lib/carbon/writer.py", line 144, in writeForever
writeCachedDataPoints()
File "/opt/graphite/lib/carbon/writer.py", line 93, in writeCachedDataPoints
whisper.create(dbFilePath, archiveConfig)
File "/usr/lib/python2.4/site-packages/whisper.py", line 150, in create
assert nextRetention > retention,\
exceptions.AssertionError: Lower precision archives must cover larger time intervals than higher precision archives (300, 25920),(1800, 300)
Am I doing it wrong, or is this intended? I can make it work with a
retentions = 300:25920,1800:25920,7200:25920,86400:25920
but that is a whole lot of data (and storage) I don't want.
Thanks.
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.