prometheus / blackbox_exporter

Blackbox prober exporter
https://prometheus.io
Apache License 2.0
4.44k stars 1.03k forks source link

For icmp_probe module provide option to pass port number along with ipaddress #1245

Open RakeshAMD opened 1 month ago

RakeshAMD commented 1 month ago

How to pass port number along with ipaddress in the config file.

Some of the machines can be accessed via same ipaddress with different port. How to handle this situation? Please guide

showipintbri commented 1 month ago

ICMP does not use ports.

Can you give a description and example of what you're trying to to do and why you think icmp_probe is the tool for the job?

RakeshAMD commented 1 month ago

Hello, thanks for the response.

For getting the system status (whether its online/offline), we thought of doing it with simple ping. If it responds then we conclude the system if online or else offline.

For that we thought of using icmp_probe module in blackbox_exporter. But how to pass port number also in here. Any constructive feedback/suggestions is always welcome.

dswarbrick commented 3 weeks ago

@RakeshAMD As already stated, ICMP does not use ports. What you are asking for is impossible.