The configuration file consists of lists of modules.Each module is the probing configuration in the blackbox exporter.Īs we are going to check the Status code of the HTTP endpoint, We are going to use the HTTP proberįirst We need to download the latest version of blackbox_exporter from the official respository.
The configuration file of the blackbox exporter is configured in YAML format. Using the above command we have created blackbox_exporter user. We will create a user account blackbox_exporter, We will run the blackbox exporter service using this user for the security concerns.Īlso the files and folder of the blackbox exporter service should be owned by blackbox_exporter sudo useradd -no-create-home -shell /bin/false blackbox_exporter With the help of blackbox exporter we can scrape the details of all the endpoints on the target instances with the details such as response time, Status code, SSL certificate expiry, DNS lookup latencies. What is Blackbox Exporter?īlackbox exporter is a ( probing exporter) tool to monitor HTTP, DNS, TCP and ICMP endpoints. Once you have the Prometheus setup in place, Lets go ahead and setup blackbox exporter on the target servers where we are running http endpoints.
In my previous posts, I have explained on, In this blog post, We will see how to monitor the health of the HTTP endpoints with the help of Prometheus and Blackbox exporter.Īnd also how we can use grafana to alert in case of HTTP endpoints failure status codes.