我正在使用telegraf中的httpjson插件。
我的telegraf配置如下所示:
[[inputs.httpjson]]
name = "info_metric"
servers = ["http://server.port/application/admin/info.json"]
method = "GET"
response_timeout = "5s"
当我从浏览器中获取时,Json本身就是这样的:
{"git":{"branch":"release/app_27.x","commit":{"id":"23cs3f","time":"2017-10-18T13:55:01+0200"}}}
我从电报日志中收到错误消息:
2017-10-25T11:02:11Z E! Error in plugin [inputs.httpjson]: http_json_info_metric: must have one or more fields
答案 0 :(得分:0)