blackbox_exporter icon indicating copy to clipboard operation
blackbox_exporter copied to clipboard

fail_if_body_not_matches_regexp didn't matches

Open balmajoe opened this issue 1 year ago • 1 comments

Hello I do a regex to check the body but I can't when I add an alphanumeric character. I have in my body AX/4.0.13 200 ok, If I put in my blackbox.yml fail_if_body_not_matches_regexp: -"AX/4.0.13" return ok but fail_if_body_not_matches_regexp: - "AX/4.0.13 200" msg="Body did not match regular expression" regexp="AX/4.0.13 200 ok" Any ideas?

balmajoe avatar Feb 16 '23 16:02 balmajoe

Can you post the output of a probe with &debug=true appended to the scrape URL?

dswarbrick avatar Mar 14 '23 15:03 dswarbrick