
Workaround for this issue configuring Grafana to use Kubernetes StatefulSets or add dashbaord configuration json to Grafana dashboard config map, refer this post. Since we are use Kubernetes deployment for Grafana Pods, whenever Pod gets restarted these dashboards will disappear. Once dashboards are imported you can see Blackbox metric dashboards on Grafana. we already created this in Grafana setup. Then select source, since we are using Prometheus to scrape Blackbox endpoint source will be Prometheus. Then enter the Blackbox dashboard id that we copied and click on load. Open Grafana console and navigate to Dashbaords section and click on “Import” button to import a dashboard. and search for Blackbox dashboards.Ĭlick on the dashboard that we want to import and copy dashboard id.

Let’s add dashboards for Blackbox exporter metrics Grafana. Now we need to add below Blackbox scrape configuration to Prometheus server configuration and restart the Prometheus service. cloudshell:~/prometheus$ kubectl apply -f blockbox.yamlĬonfigmap/blackbox-exporter-config createdĭeployment.apps/blackbox-exporter created When applied it will create a config map for Blackbox configuration and service for exposing Blackbox pods and a deployment for Blackbox pod management. Apply above configuration using kubectl command. The above configuration monitors HTTP, HTTPS endpoints and SSL certificate expiration dates. Image: "jimmidyson/configmap-reload:v0.2.2" To deploy Blackbox exporter and service on Kubernetes cluster, copy below yaml configuration to blackbox.yaml file.
#PROMETHEUS BLACKBOX EXPORTER KUBERNETES HOW TO#

We can use Prometheus to scrap blackbox exporter metrics and create dashboards in Grafana. What is Blackbox Exporter?īlackbox exporter allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC. In this quick start demo, we are going to do Prometheus Blackbox Exporter setup on Kubernetes cluster to probe HTTP or HTTPS endpoints.
