运行blackbox-exporter

Blackbox Exporter是Prometheus社区提供的官方黑盒监控解决方案,其允许用户通过:HTTP、HTTPS、DNS、TCP以及ICMP的方式对网络进行探测。

安装过程很简单,到 https://prometheus.io/download/#blackbox_exporter 下载二进制文件并运行:

wget https://github.com/prometheus/blackbox_exporter/releases/download/v0.18.0/blackbox_exporter-0.18.0.linux-amd64.tar.gz
tar -zxvf blackbox_exporter-0.18.0.linux-amd64.tar.gz
cd blackbox_exporter-0.18.0.linux-amd64/
./blackbox_exporter

访问localhost:9115,可以访问blackbox的UI界面:

image-20210505201633387