HTTP Post

POST your metrics to the following URL:

https://www.hostedgraphite.com/api/v1/sink

  

Your metric data should be provided in the Metric Data Format as the HTTP POST payload. Don’t prefix your metric names with your API Key - instead use it as the username for Basic Authentication.

Here’s an example using curl on linux, which lets you provide the API key in the URL.

curl https://YOUR-API-KEY@www.hostedgraphite.com/api/v1/sink --data-binary "conc_users 59"

  

If your data was accepted, you will receive a HTTP/1.1 202 Accepted response, with no content body. If your data wasn’t accepted, you’ll receive a 400 error with more information about why.

For programming language-specific examples of sending metrics via HTTP POST, check out our Language Guide.