← Back to team overview

graphite-dev team mailing list archive

Re: [Question #262031]: POST dashboard json

 

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

Description changed to:
Hey guys,
 I have a cloudformation setup that automatically spins up Graphite.  I have a script that runs within my nodes that creates a valid JSON file for the graphite dashboard.  If I manually download this file, and then post it via Dashboard ->  Edit, I get the dashboard I want.


However, I want my nodes to be able to POST this json directly into graphite as they start, so I don't have to do this manually, I've tried the following, but the format is incorrect.

curl -i -d '[graphite dashboard json]' -X POST "http://[graphite
host]/dashboard/save/Tomcats

in order to create the tomcats dashboard.  Here is an example of my json

https://gist.github.com/tnine/2afe9e684208238e25a7

Is there any documentation on what is required in the request for the
REST api so that I can code this up to happen via curl?

Thanks,
Todd

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