← Back to team overview

graphite-dev team mailing list archive

Re: [Question #675575]: All of a sudden metrics getting lost

 

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

ak posted a new comment:
Thanks for the clarification.

I changed the retention to 60s:180d, i.e store data points every 1m and
keep it for 180d.

I read that whisper resize command has to be executed to make the
changes effective.

Could you guide how to execute that? I tried the options mentioned in
the manual , but getting error.

root@ip:/var/lib/graphite/whisper# /usr/bin/whisper-resize default_1min_for_1day 60s:180d
[ERROR] File 'default_1min_for_1day' does not exist!
Usage: whisper-resize path timePerPoint:timeToStore [timePerPoint:timeToStore]*

timePerPoint and timeToStore specify lengths of time, for example:

60:1440      60 seconds per datapoint, 1440 datapoints = 1 day of retention
15m:8        15 minutes per datapoint, 8 datapoints = 2 hours of retention
1h:7d        1 hour per datapoint, 7 days of retention
12h:2y       12 hours per datapoint, 2 years of retention


root@ip:/var/lib/graphite/whisper# /usr/bin/whisper-resize /etc/carbon/storage-schemas.conf
Usage: whisper-resize path timePerPoint:timeToStore [timePerPoint:timeToStore]*

timePerPoint and timeToStore specify lengths of time, for example:

60:1440      60 seconds per datapoint, 1440 datapoints = 1 day of retention
15m:8        15 minutes per datapoint, 8 datapoints = 2 hours of retention
1h:7d        1 hour per datapoint, 7 days of retention
12h:2y       12 hours per datapoint, 2 years of retention


root@ip-dummy:/var/lib/graphite/whisper# /usr/bin/whisper-resize /etc/carbon/storage-schemas.conf 60s:180d
Traceback (most recent call last):
  File "/usr/bin/whisper-resize", line 67, in <module>
    info = whisper.info(path)
  File "/usr/lib/python2.7/dist-packages/whisper.py", line 704, in info
    info = __readHeader(fh)
  File "/usr/lib/python2.7/dist-packages/whisper.py", line 230, in __readHeader
    raise CorruptWhisperFile("Unable to read archive%d metadata" % i, fh.name)
whisper.CorruptWhisperFile: Unable to read archive39 metadata (/etc/carbon/storage-schemas.conf)

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.