how to fix a whisper file

Asked by Marcus Franke

Hi,

I've found a gap in one of my whisper files du to an error (I guess (tm)) on source server.

graphite:/var/lib/carbon/whisper/foobar # whisper-dump example.wsp | grep -A 1 -B 4 1384983600
3630: 1384982400, 1793163
3631: 1384982700, 1793407
3632: 1384983000, 1793665
3633: 1383773700, 1158341
3634: 1384983600, 1794131
3635: 1384983900, 1794312

The metrics above are stored every five minutes, the values are valid. But the metric at position 3633 in
the whisper file is 14 days before the others. Du to this gap the graph being rendered from this metric
has a gap..

[marcus@beleriand]~% date -d@1384983000
Mi 20. Nov 22:30:00 CET 2013
[marcus@beleriand]~% date -d@1383773700
Mi 6. Nov 22:35:00 CET 2013
[marcus@beleriand]~% date -d@1384983600
Mi 20. Nov 22:40:00 CET 2013

My question is, how to fix the metric at position 3633 from "1383773700" -> "1384983300"

a) vim example.wsp? binary file
b) whisper-dump example.wsp | sed -i 's/1383773700/1384983300/' | no_dump_to_wsp.tool
c) sit out the problem until the values are down the retention period? not good

puzzled regards,
Marcus ;)

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dave Rawks (drawks) said :
#1

Just send a update to carbon with the correct value at the time you are trying to change.

Can you help with this problem?

Provide an answer of your own, or ask Marcus Franke for more information if necessary.

To post a message you must log in.