【问题标题】:OpenTSDB curl post issueOpenTSDB curl 发布问题
【发布时间】:2016-04-26 12:12:42
【问题描述】:

我正在使用以下curl 命令将指标推送到opentsdb

curl -X POST --data-binary gzip.json --header "Content-Type: application/json" --header "Content-Encoding: gzip" http://mycloud:xxxx/api/put?details

得到

curl: (52) Empty reply from server

但是opentsdb 已启动并正在运行,我也可以使用/api/query/ 进行查询。你能找出我错在哪一部分吗?

【问题讨论】:

  • curl 调用似乎没问题,只有一件事 - 将 @ 与数据一起使用,即 @gzip.json

标签: curl opentsdb


【解决方案1】:

curl 调用似乎没问题,只有一件事 - 将 @ 与数据一起使用,即 @gzip.json

您的电话将是:

curl -X POST --data-binary "@gzip.json" --header "Content-Type: application/json" --header "Content-Encoding: gzip" http://mycloud:xxxx/api/put?details

来源:Compressed Request section

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-03
    • 2016-02-18
    • 2011-04-21
    • 2010-10-11
    相关资源
    最近更新 更多