Skip to content

Instantly share code, notes, and snippets.

@woodsaj
Created June 4, 2016 12:37
Show Gist options
  • Save woodsaj/34eb55fb7b6eabc642c8ac2830d0a61e to your computer and use it in GitHub Desktop.
Save woodsaj/34eb55fb7b6eabc642c8ac2830d0a61e to your computer and use it in GitHub Desktop.
#!/bin/sh
curl -H "Authorization: Bearer not_very_secret_key" -H "Content-Type: application/json" -X POST http://localhost:8081/metrics -d '[
{
"name":"my.metric.name",
"interval":60,
"value":1.23,
"time":1465043400,
"tags":[
"imported"
]
},
{
"name":"my.metric.name",
"interval":60,
"value":2.23,
"time":1465043460,
"tags":[
"imported"
]
}
]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment