

Generate Secret using the following command. Replacement: prometheus-blackbox-exporter:9115 # The blackbox exporter. Add Prometheus configĪfter deploying BlackBox exporter, write Prometheus scrape configuration in prometheus-additional.yaml. If you visit you will see the result of target URL( ).įor example, if the value of probe_success metrics is 1, it means success. This chart creates a Blackbox-Exporter deployment on a Kubernetes cluster using the Helm package manager. You can access Blackbox exporter Web UI using port-forward : kubectl -namespace=monitoring port-forward svc/prometheus-blackbox-exporter 9115:9115Ĭonnect to Blackbox exporter Web UI via using web browser. Verify that all service is running using the following command: kubectl -namespace=monitoring get all -selector=app=prometheus-blackbox-exporter kubectl -namespace=monitoring apply -f blackbox-exporter.yaml Blackbox Exporter can give you HTTP response time statistics, response codes, information on SSL certificates, etc. monitoring namespace is specified for Prometheus operator. The blackbox-exporter is an exporter that can monitor various endpoints URLs on the Internet, your LoadBalancers in AWS, or Services in a Kubernetes cluster, such as MySQL or PostgreSQL databases. What is Blackbox Exporter Blackbox exporter allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC.
#Prometheus blackbox exporter kubernetes install
For example, helm install -name my-release -set key1value1,key2value2 stable/prometheus-blackbox-exporter. Specify each parameter using the -set keyvalue ,keyvalue argument to helm install.

Image: "jimmidyson/configmap-reload:v0.2.2"īlackbox exporter can be deployed by the following command. In this quick start demo, we are going to do Prometheus Blackbox Exporter setup on Kubernetes cluster to probe HTTP or HTTPS endpoints. The following table lists the configurable parameters of the Blackbox-Exporter chart and their default values.

Write the Deployment and Service to be deployed to Kubernetes. Deploy Blackbox exporter to Kubernetes cluster Learn more about the Blackbox exporter configuration in this doc. The http_2xx module is used to check if the web service returns 2xx HTTP status code through the HTTP protocol. Write the Blackbox configuration file as ConfigMap to configure http module for monitoring web services. Environmentīefore you begin, you need to have these: Blackbox exporter is going to be running on Kubernetes.
#Prometheus blackbox exporter kubernetes how to
In this post, I’ll show you how to monitor HTTP/HTTPS using Blackbox exporter. Prometheus Monitoring Exporter Tutorials lapee79īlackbox exporter can monitor the external services over HTTP, HTTPS, DNS, TCP, ICMP on Prometheus.
