Difference between revisions of "Blackbox exporter"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
# Multiple | # Multiple | ||
- https://stackoverflow.com/questions/52952805/register-multiple-blackbox-exporters-in-one-job-in-prometheus | - https://stackoverflow.com/questions/52952805/register-multiple-blackbox-exporters-in-one-job-in-prometheus | ||
+ | ``` | ||
+ | scrape_configs: | ||
+ | - job_name: probe | ||
+ | params: | ||
+ | module: | ||
+ | - http_2xx | ||
+ | target: | ||
+ | - http://xyz/api/serverping | ||
+ | metrics_path: /probe | ||
+ | scheme: http | ||
+ | static_configs: | ||
+ | - targets: | ||
+ | - bbexporter1:9115 | ||
+ | - bbexporter2:9115 | ||
+ | - bbexporter3:9115 | ||
+ | - bbexporter4:9115 | ||
+ | - bbexporter5:9115 | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | curl "http://192.x.x.x:9115/probe?target=https://google.com&module=http_2xx" | ||
+ | ``` | ||
# Best | # Best |
Revision as of 10:18, 21 February 2024
Multiple
scrape_configs: - job_name: probe params: module: - http_2xx target: - http://xyz/api/serverping metrics_path: /probe scheme: http static_configs: - targets: - bbexporter1:9115 - bbexporter2:9115 - bbexporter3:9115 - bbexporter4:9115 - bbexporter5:9115
curl "http://192.x.x.x:9115/probe?target=https://google.com&module=http_2xx"
Best
https://blog.devops.dev/prometheus-blackbox-exporter-with-kube-prometheus-stack-23a045ccbab2
https://www.opsramp.com/guides/prometheus-monitoring/prometheus-blackbox-exporter/
And more
https://blog.ruanbekker.com/cheatsheets/blackbox-exporter/
https://dmachard.github.io/posts/0043-blackbox-prometheus-dns/
https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md
Multiple Exporters from Single Job
More
https://www.opsramp.com/guides/prometheus-monitoring/prometheus-blackbox-exporter/
https://stackoverflow.com/questions/74759672/promethues-check-external-api-json-response