Open ctippur opened 10 years ago
Currently the system doesn't support OpenTSDB 2.0 (so only the telnet protocol not the json one). So for example if you sent a telnet request like " mysql.bytes_sent 1287333232 6604901075387 schema=foo host=db1" the proxy it would work.
If you are asking about general OpenTSDB support I would recommend asking on their mailing list at https://groups.google.com/forum/#!forum/opentsdb
I just installed and configured opentsdb using http://opentsdb.net/docs/build/html/installation.html#id1.
I am trying to do a post call with the example json.
curl -X POST -d sample.json -H "Accept: Application/json" -H "Content-Type: application/json" http://10.132.62.214:4242/api/put
[ { "metric": "cpu.system", "timestamp": 1346846400, "value": 42.5, "tags": { "host": "host1.mysite.com", "data_center": "lax" } }, { "metric": "cpu.idle", "timestamp": 1346846400, "value": 15.2, "tags": { "host": "host1.mysite.com", "data_center": "lax" } } ]
I get an exception:
{"error":{"code":400,"message":"Unable to parse the given JSON","details":"com.fasterxml.jackson.core.JsonParseException: Unexpected character ('s' (code 115)).........
Can you please help?
Shekar