我试图使用nc命令向石墨出口商发送自定义指标,但没有成功。以下是步骤:
我想用url:https://github.com/prometheus/graphite_exporter/releases/download/v0.7.1/graphite_exporter-0.7.1.linux-amd64.tar.gz在我的红帽子机器上找到石墨出口商
/石墨出口商&
netstat -ntpl
tcp6 0 0:9108:*侦听92554/./石墨_ex
92554/./graphite_ex::9109::* tcp6 0 0:9109::*tcp6
echo "foo.bar 1 date +%s“\ nc -vz localhost 9108 Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat:连接到127.0.0.1:9108。Ncat: 0字节发送,0字节在0.01秒内接收。
telnet本地主机9108尝试127.0.0.1.连接到本地主机。转义字符是“^]”。telnet>退出已关闭的连接。
我不知道我做错了什么,把指标推向石墨出口商,任何帮助都是非常感谢的。
发布于 2022-06-28 11:10:00
您使用错误的端口,webclient使用9108,但是只有9109才能接受度量,就像自述的https://github.com/prometheus/graphite_exporter所描述的那样。
https://stackoverflow.com/questions/62814682
复制相似问题