Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save simonmorley/575aa2e37d1c0b727d7e6486737ff5b5 to your computer and use it in GitHub Desktop.
Save simonmorley/575aa2e37d1c0b727d7e6486737ff5b5 to your computer and use it in GitHub Desktop.
curls for opentsdb
curl http://127.0.0.1:4242/api/query -d \
'{
"start": 1494984388,
"end": 1595026357,
"queries": [
{
"aggregator": "avg",
"metric": "interfaces.snr",
"rate": "true",
"rateOptions": {
"counter": true
},
"tags": {
"ap_mac": "*",
"location_id": "1170"
}
}
]
}'
curl http://127.0.0.1:4242/api/query -d \
'{
"start": 1495249189,
"end": 1495270789,
"queries": [
{
"aggregator": "none",
"metric": "devices.tx",
"tags": {
"ap_mac": "*",
"location_id": "1170"
}
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment