【问题标题】:TextGraphiteMetricsSender: Error writing to Graphite: connect timed out While sending metrics from jmeterTextGraphiteMetricsSender:写入 Graphite 时出错:从 jmeter 发送指标时连接超时
【发布时间】:2018-02-15 07:42:52
【问题描述】:

我的 influxdb 安装在一台远程 Windows 机器(英国机器)中。从我的本地机器(印度)我正在尝试使用带有后端侦听器的 jmeter 中的虚拟脚本将数据发送到 influxdb。我得到 "TextGraphiteMetricsSender: Error writing to Graphite: connect timed out" 错误。

我可以将数据(从我的机器)发送到安装在与我的网络相同的任何其他 Windows 机器上的 influxdb。

我尝试 ping 远程 W.machine,这是成功的。我可以使用带有后端列表器的 jmeter 从同一台机器发送指标。

(仅供参考-我在其他远程 Windows 机器(英国)中使用的 influxdb 设置相同。我可以从本地机器发送。)

现在我在 jmeter 日志中收到 “TextGraphiteMetricsSender:写入 Graphite 时出错:连接超时”错误。

我如何确认这个问题是否是由于防火墙造成的。?我如何确认根本原因。或者我该如何解决?

请任何人帮忙。

【问题讨论】:

    标签: jmeter influxdb grafana


    【解决方案1】:

    您需要验证运行 JMeter 的机器与运行 InfluxDB 的机器之间的连接性,例如 telnet command(或等效),例如:

    telnet xxx.xxx.xxx.xxx 2003
    

    xxx.xxx.xxx.xxx 是安装 InfluxDB 的机器的 IP 地址或主机名,2003 是 InfluxDB 端口(它应该与 influxdb.conf 文件中的 bind-address 设置匹配)

    如果 telnet 命令成功,JMeter 应该能够连接并发送指标,如果没有 - 您需要在操作系统或路由器防火墙中打开端口 2003

    请参阅Real Time Results JMeter 用户手册章节How to Use Grafana to Monitor JMeter Non-GUI Results 文章,了解有关设置 JMeter 和 InfluxDB 的全面分步说明。

    【讨论】:

    • 嗨 Dmitri T ..感谢您一如既往的快速响应 :) 是的,我尝试了 telnet ..这是一个防火墙问题。需要按照您所说的打开端口。谢谢
    猜你喜欢
    • 1970-01-01
    • 2017-09-30
    • 1970-01-01
    • 1970-01-01
    • 2021-01-21
    • 1970-01-01
    • 2020-08-23
    • 1970-01-01
    • 2021-01-07
    相关资源
    最近更新 更多