blackbox_exporter icon indicating copy to clipboard operation
blackbox_exporter copied to clipboard

Introduce option to set TOS field in ICMP and other probes

Open s1sfa opened this issue 7 years ago • 4 comments

I use the TOS field for PBR routing to monitor ping latency through different paths on my network.

Currently I use smokeping for this and it would be interesting to replace with this. Probe setup Smokeping config:

+ FPing
binary = /usr/bin/fping

++ FPingPath1
tos = 0x30

++ FPingPath2
tos = 0x20

++ FPingPath3
tos = 0x28

Or using the ping -Q flag ping 8.8.8.8 -Q 32

I've seen use cases in other tools where others like to set TOS for other tests not only for PBR but maybe want to set a certain queuing priority on their network for testing traffic which is why I think this feature can apply to all modules.

s1sfa avatar Sep 08 '18 15:09 s1sfa

Does Go offer a way to set this on things like http requests?

brian-brazil avatar Sep 08 '18 16:09 brian-brazil

I am not at all acquainted with Go, but it looks like it should be possible with Go 1.11 according to this post on SO

fredericve avatar Sep 13 '18 12:09 fredericve

~Hi 👋🏼, coming from the cleanup 🧹~

~This PR is quite old and there's https://github.com/prometheus/blackbox_exporter/pull/613 looks to be superset of this PR.~

~I am going to close this, please feel free to reopen if you want to update it, and discuss it further.~

electron0zero avatar Aug 01 '25 11:08 electron0zero

oops, meant to close the PR. reopening this issue.

electron0zero avatar Aug 01 '25 12:08 electron0zero