syepes / network_exporter

ICMP / Ping & MTR & TCP Port & HTTP Get - Network Prometheus exporter
Apache License 2.0
312 stars 57 forks source link

if network_exporter can support the latest functions of mtr #27

Open ilanni2460 opened 1 year ago

ilanni2460 commented 1 year ago

hi @syepes :

The new mtr currently supports the TCP protocol, and also supports the specified TCP port. I don't know if network_exporter can support the latest functions of mtr.

This can be referred to, mtr-exporter https://github.com/mgumz/mtr-exporter

syepes commented 1 year ago

I don't understand what you mean by TCP protocol in relation to MTR, I checked the mentioned exporter and its not doing anything different. The main difference is that it relies on the externally installed MTR tool, but network_exporter directly implements it in Go without any need of external tools.

ilanni2460 commented 1 year ago

@syepes Sorry for not describing it clearly, I mean the mtr mode of network_exporter, can it support the tcp protocol and the specified port like the mtr command line tool.

Because we have a scenario where the use of ping is prohibited, but the telnet port can be used. Now I want to test it through mtr. If the port is blocked, which hop route is the problem.

nondevops commented 1 year ago

@syepes Sorry for not describing it clearly, I mean the mtr mode of network_exporter, can it support the tcp protocol and the specified port like the mtr command line tool.

Because we have a scenario where the use of ping is prohibited, but the telnet port can be used. Now I want to test it through mtr. If the port is blocked, which hop route is the problem.

I have encountered the same problem. Do you have a solution?

Sin4wd commented 1 year ago

We need this too. Our network treats ICMP and TCP differently. Especially sometimes packets are routed base on hash(src_ip,src_port,dst_ip,dst_port), however this does not hold for ICMP.

0megam commented 6 months ago

MTR --tcp feature will be very helpful for debugging network issues.

simone-dandreta commented 6 months ago

@syepes it would be nice to have MTR running TCP probes, as described in the issue here. Thanks.

syepes commented 6 months ago

Currently, I don't have sufficient time to extensively explore the TCP implementation. Although I have attempted to do so before, I have found it to be quite complex.

Of course any PR's are welcome :-)