← Back to team overview

graphite-dev team mailing list archive

Re: [Question #88884]: Is there a way to export data from graphite?

 

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

    Status: Open => Answered

chrismd proposed the following answer:
Yes, though it is pseudo-csv, you have to massage it a little in order
to use in OpenOffice or that other office suite.

All you have to do is add a "rawData=true" query string parameter to the
URL of your graph. The output will be like so.

There is one line for each graph element, each line's format is:

<metric name>,<start time>,<end time>,<step>|<value1>,<value2>, ...,
<valueN>

So start time and end time are UNIX epoch timestamps. Start time is the
timestamp of the first value. Step is the number of seconds between data
points, etc. Another thing that is important to note is that values may
be the string "None" to indicate the lack of a value for that particular
point in time.

That said, the upcoming version 0.9.5 will have a cleaner export API
that will be able to spit out real usable CSV as well as other formats.

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