← Back to team overview

graphite-dev team mailing list archive

Re: [Question #669507]: How to export data in csv file for below query

 

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

    Status: Answered => Open

Dhinesh M is still having a problem:
Hi,

When i hit graphite server with wildcard or specific server name, It is
returning the data.

Example:-
"http://graphite.com/render/?target=summarize(servers.XXXXX_yyyy_com.system.availability,
"24hours", "avg")&format=csv".

I want to pull this report for specific set of servers, So i stored all
the necessary server names in file and running the command for each
servers one by one by using 'for loop' in command prompt. It is not
working. Can you please help me on this.

FOR /F %i IN (Servers.txt) do curl
"http://graphite.com/render/?target=summarize(servers.%i.system.availability,
"24hours", "avg")&format=csv" >> %i.csv

Thanks,
Dhinesh.M

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.