Is there a way to export data from graphite?

Asked by Charlie

Is it possible to export data from graphite, in csv format, instead of rendering the graph?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
chrismd (chrismd) said :
#1

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.

Revision history for this message
satheesh (sattinfo) said :
#2

plese let me know where to use and how to use this command.we are replacing the WILY with graphite in our project. In whily we can right click on any graph you can export the data to csv/excel format but the same i am not finding in graphite , can any one help on this.

Can you help with this problem?

Provide an answer of your own, or ask Charlie for more information if necessary.

To post a message you must log in.