Created
June 4, 2016 12:37
-
-
Save woodsaj/34eb55fb7b6eabc642c8ac2830d0a61e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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