Unhelpful Graphite Tip #8 - Dump your Whisper Metrics

2012-04-18 10:59:38 by jdixon

If you've mucked around with your Whisper storage policies or needed to migrate your data to/from Graphite, there's a good chance you've used some of the bin scripts like whisper-info.py and whisper-fetch.py. Unfortunately there are some drawbacks with whisper-fetch.py, most notably that it only fetches content from the first archive to match the requested time period, and it won't return the original raw data after the rollup policies take effect.

Enter whisper-dump.py, a contributed script from Amos Shapira (@amosshapira). This tool dumps the original data for all archives (storage retention periods) as well as the metadata normally retrieved using whisper-info.py.

$ whisper-dump.py elapsed.wsp > dump

$ head -25 dump
Meta data:
  aggregation method: average
  max retention: 31536000
  xFilesFactor: 0.5

Archive 0 info:
  offset: 40
  seconds per point: 1
  points: 300
  retention: 300
  size: 3600

Archive 1 info:
  offset: 3640
  seconds per point: 60
  points: 525600
  retention: 31536000
  size: 6307200

Archive 0 data:
0: 1334532666, 0.0271825
1: 1334532367, 0.0139948
2: 1334532668, 0.0107801
3: 1334532669, 0.0124356
4: 1334531470, 0.0185704

Add a comment:

  name

  email

  url

max length 4000 chars