blackbox_exporter icon indicating copy to clipboard operation
blackbox_exporter copied to clipboard

Handle HTTP regexps from params

Open cyphysical opened this issue 1 year ago • 2 comments

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.

cyphysical avatar May 27 '24 09:05 cyphysical

what is blocking the merge?

hatl avatar Sep 23 '24 18:09 hatl

@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

EconomicTouristsArmLate avatar Sep 25 '24 14:09 EconomicTouristsArmLate