Search code examples
graphitegraphite-carbon

How to open/parse .wsp files in python?


I am using Graphite to listen to various temperature sensors and to plot them on the web-app. The data is stored is a .wsp (whisper) format.

Is it possible to open and parse that .wsp format? Ideally with python?

I know that graphite can plot everything, but the whisper database is useful as it combines all the data together in a single location, so it'd be ideal to read the data from it


Solution

  • I actually solved this on my own.

    When downloading graphite, several python files are also downloaded. This includes whisper-fetch.py that, in my case, is in /usr/bin. This imports whisper and outputs, among others, a JSON file.