如何在telegraf配置中使用jolokia向涌入oss2发送指标?



使用jolokia config运行teltelegraf -debug后

[[inputs.jolokia2_agent]]
urls = ["http://<other ip>:8080/jolokia-war-unsecured-1.6.2/"]
[[inputs.jolokia2_agent.metric]]
name  = "jr"
mbean = "java.lang:type=Runtime"
paths = ["Uptime"]

我得到这个错误:

[agent] Initializing plugins
2022-07-02T12:51:57Z D! [agent] Connecting outputs
2022-07-02T12:51:57Z D! [agent] Attempting connection to [outputs.influxdb_v2]
2022-07-02T12:51:57Z D! [agent] Successfully connected to outputs.influxdb_v2
2022-07-02T12:51:57Z D! [agent] Starting service inputs
2022-07-02T12:52:07Z E! [outputs.influxdb_v2] When writing to [https://MYIP:8086]: Post "https://MYIP:8086/api/v2/write?bucket=monitoringdb&org=myorg": http: server gave HTTP response to HTTPS client
2022-07-02T12:52:07Z D! [outputs.influxdb_v2] Buffer fullness: 81 / 10000 metrics
2022-07-02T12:52:07Z E! [agent] Error writing to outputs.influxdb_v2: failed to send metrics to any configured server(s)

2022-07-02t12:52:07 ze !(输出。influxdb_v2] [https://MYIP: 8086]:写作时发布"https://MYIP: 8086/api/v2/写?桶= monitoringdb& org = myorg": http:服务器给HTTPS端http响应

此错误来自您的influxdb输出。上面说你的客户正在使用https;但是,服务器使用http响应进行响应。在您的配置中,您可能使用https://指定了URL,但服务器可能只使用http://

相关内容

  • 没有找到相关文章

最新更新