Telegraf influxdb输出写入TCP:使用封闭的网络连接

问题描述

我正在使用Telegraf 1.14.3版和influxdb 1.8版进行监视。 有时我会在Telegraf日志中出现错误

E! [outputs.influxdb] When writing to [https://1.1.1.1]: Post https://1.1.1.1/write?db=telegraf: write tcp ip:57606->1.1.1.1:443: use of closed network connection
E! [agent] Error writing to outputs.influxdb: @R_502_5285@ not write any address

一段时间后,它将再次开始工作。它是随机发生的。 当然,在重新启动telegraf或influxdb之后,它将重新开始工作。

telegraf.conf:

[[outputs.influxdb]]
  urls = ["https://1.1.1.1"]
  timeout = "10s"
  insecure_skip_verify = true
  tls_ca = "..."
  tls_cert = "..."
  tls_key = "..."
  
[agent]
  logtarget = "file"
  logfile = "telegraf.log"
  hostname = "bla"

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)