See https://github.com/prometheus/blackbox_exporter/ for how to configure Prometheus and the Blackbox Exporter.