A http json proxy for opentsdb
This proxy is for parse the ascii output of opentsdb to json.
we occupied the 5042 port to offer same content as 4242 does in ascii, but in a json format. The query param is same as original opentsdb http api.
Format:
<metric> <timestamp> <value> <tagk1>=<tagv1> <tagk2>=<tagv2> ... ...
Format:
[ { metric:<metric>, timestamp:<timestamp>, value:<value>, tags: [ <tagk1>:<tagv1>, <tagk2>:<tagv2>, ... ], }, ... ]
For easy combined with charting utils like highcharts, we offer some more easy format data. With an additional parameter charttype:
Format:
[{ name:<metric>{<tagk1>=<tagv1>,<tagk2>=<tagv2>,...}, pointStart:<min_timestamp>, pointInterval: <(max_timestamp - min_timestamp)/data_count>, data : [<value1>, <value2>, ...] }, ... ]
Format:
[{ name:<metric>{<tagk1>=<tagv1>,<tagk2>=<tagv2>,...}, data:[ [<timestamp1>, <value1>], [<timestamp2>, <value2>], ... ] }, ... ]
The time serial data always used in an cross site way, so we also support JSONP, just add parameter callback=, the data will be in a jsonp version.