Hi there, this is my first post in the community so apologies if I butch any rules.
I have a uptime check sending HTTP requests to a URL (my Wordpress website running inside GKE), and I noticed that the uptime check doesn't report errors when it gets responses of HTTP code 499, which is basically what my website is throwing when it goes down lately.
Is this intended behaviour? Other third-party uptime checks I have in place always treat 499's as an indication of failure.
Solved! Go to Solution.
Hi,
So from the user agent of the log that appears to be a load balancer healthcheck. For an uptime check you should see a user agent of:
"GoogleStackdriverMonitoring-UptimeChecks(https://cloud.google.com/monitoring)"
See: https://cloud.google.com/monitoring/uptime-checks/using-uptime-checks#identify-traffic
Are you sure the uptime check is reaching the right service?
Hi!
Welcome to the community.
This should be configurable, check out this from the uptime check config screen in the console, you can pick by class, you can explicitly set, or you can accept any response:
How is yours configured?
Docs are here: https://cloud.google.com/monitoring/uptime-checks/response-validation
Alex
Hi Alex, thanks for the reply.
That already is how my uptime check is configured, and I still don't get alerts when receiving HTTP error 499.
here's the request/response log on my nginx:
Hi,
So from the user agent of the log that appears to be a load balancer healthcheck. For an uptime check you should see a user agent of:
"GoogleStackdriverMonitoring-UptimeChecks(https://cloud.google.com/monitoring)"
See: https://cloud.google.com/monitoring/uptime-checks/using-uptime-checks#identify-traffic
Are you sure the uptime check is reaching the right service?