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

    Status: Open => Answered

justinb proposed the following answer:
Whisper has a set of utility scripts to operate on wsp files.

http://bazaar.launchpad.net/~graphite-
dev/graphite/main/files/head:/whisper/bin/

One of them is whisper-fetch.py which appears to do what you are looking
for.

>From the options it supports:

option_parser = OptionParser(usage='''%prog [options] path''')
option_parser.add_option('--from', default=yesterday, type='int', dest='_from',
  help=("Unix epoch time of the beginning of "
        "your requested interval (default: 24 hours ago)"))
option_parser.add_option('--until', default=now, type='int',
  help="Unix epoch time of the end of your requested interval (default: now)")
option_parser.add_option('--json', default=False, action='store_true',
  help="Output results in JSON form")
option_parser.add_option('--pretty', default=False, action='store_true',
  help="Show human-readable timestamps instead of unix times")

I did a "whisper-fetch.py --from=0 datapoint.wsp" and it printed out all
the data up to the max retention.

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

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to