![]() While most exporters accept static configurations and expose metrics accordingly. This is why I call the ICMP probes blackbox-ping. Blackbox Exporter can probe endpoints over HTTP, HTTPS, DNS, TCP, and ICMP. Now, I would like to select which host I would like to see blackboxexporter data, using a grafana dashboard. The other confusing part is answering the question: "How do I use the blackbox exporter for multiple protocols, say ICMP and HTTP?" In this case, there are various options, but the clearer one is to have one section per protocol. I installed blackboxexporter in two different hosts Both are exporting data to prometheus and are correctly installed and working, since I can see accessing 9915 port. Replacement: localhost:9115 # Blackbox exporter. describing desired deployments of Prometheus, Alertmanager, the Prometheus Blackbox Exporter, Grafana, and several other monitoring-related services. Relabel_configs: # <= This comes from the blackbox exporter README # this is to scrape blackbox itself (this is optional) I am assuming that the blackbox exporter and Prometheus are colocated (hence the localhost), otherwise adapt. Prometheus sends a probe request through HTTP for every target listed in its target list.Īlthough slightly confusing, the blackbox_exporter README does explain how to configure it, see section Prometheus Configuration.įor your Prometheus configuration, you need something like the following. Somewhere along the journey I expected my targets to be pinged by blackbox and prometheus collecting the result. icmp-target1 # supposed to be a switch, router, pc or anything that responds to ping However when I visit the web GUI for blackbox the config contains a bunch of parameters which I didn't specify. This is my blackbox_exporter config modules: I can't find any documentation in blackbox on where to list the targets should be listed so I made the odd assumption that it uses the targets provided in the prometheus config but from what I understand that just makes prometheus believe that there are many blackboxes to probe. I'm trying to ping a list of targets using blackbox_exporter with prometheus but I seem to only be able to probe blackbox_exporters and not the actual targets I want to check.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |