Show the full output from "curl -v <url>" directly to the endpoint under 
test.

Maybe you'll find that "200 ok" is not part of the body, but is the status 
line ("HTTP/1.1 200 ok") which precedes the headers.

On Friday, 17 February 2023 at 04:24:07 UTC+8 joe94 wrote:

> 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? 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/69ef717f-32ef-41c4-a3b0-9154756a375dn%40googlegroups.com.

Reply via email to