Created
May 24, 2017 08:06
-
-
Save simonmorley/575aa2e37d1c0b727d7e6486737ff5b5 to your computer and use it in GitHub Desktop.
curls for opentsdb
This file contains hidden or 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
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