blackbox_exporter
blackbox_exporter copied to clipboard
Handle HTTP regexps from params
This PR implements getting HTTP prober regexp matchers from the query parameters. It's a quick and dirty implementation, looking for comments.
Sample usage:
Config:
modules:
http_2xx:
prober: http
http:
preferred_ip_protocol: "ip4"
enable_regexps_from_params: true
Request:
http://localhost:9115/probe?target=https://prometheus.io&module=http_2xx&debug=true&fail_if_body_not_matches_regexp=https://github.com/prometheus
Regexps must be URI encoded.
what is blocking the merge?
@hatl Maintainers repeatedly stated they don't want to add dynamic configuration of probe modules (eg https://github.com/prometheus/blackbox_exporter/issues/986#issuecomment-1868848424), though it appears to me to be the most requested feature. Also there is https://github.com/prometheus/blackbox_exporter/issues/1277 i guess