安装blackbox_exporter
blackbox exporter是允许在HTTP
, HTTPS
, DNS
, TCP
and ICMP
等协议的端点进行黑盒探测的采取器 官方github: https://github.com/prometheus/blackbox_exporter
1 | wget https://github.com/prometheus/blackbox_exporter/releases/download/v0.14.0/blackbox_exporter-0.14.0.linux-amd64.tar.gz |
prometheus配置
1 | - job_name: 'blackbox' |
grafana模板
1 | https://grafana.com/grafana/dashboards/7587 |