← Back to team overview

graphite-dev team mailing list archive

[Question #239646]: how to fix a whisper file

 

New question #239646 on Graphite:
https://answers.launchpad.net/graphite/+question/239646

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 ;)

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