Hi, it might be a stupid question but I can't get
fail_if_body_matches_regexp to run.
Briefly what I want to achieve. I have a redirect set up, when a web page
returns error code 503, it redirects to a maintenance web page.Now when I
query the http probe results with the blackboxexporter, there is also when
the maintenance page is displayed a return code of 200 (which is also
correct the maintenance page is working). How can I make it so that when
the maintenance page is displayed I don't get the return code 200?
I have the following configuration at the moment. But it is not clear to me
why this does not work.
modules:
http_2xx:
http:
no_follow_redirects: false
preferred_ip_protocol: ip4
fail_if_body_matches_regexp:
- "The page is temporarily unavailable"
valid_http_versions:
- HTTP/1.1
- HTTP/2
valid_status_codes: []
prober: http
timeout: 5s
tcp_connect:
prober: tcp
If someone knows what is wrong, I would appreciate any help.
Also sorry for my bad english, it is not my native language. I hope you
understand what I want to do.
Greetings Alexandra
--
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/71f96aa1-e7d5-450e-a804-153fc1a74494n%40googlegroups.com.