Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Uptime checks not failing when receiving 499's

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 Solved
0 3 567
1 ACCEPTED 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?  

View solution in original post

3 REPLIES 3

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:

Screenshot 2024-01-15 09.34.14.png

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.

michellima_0-1705408594608.png

here's the request/response log on my nginx: michellima_0-1705409113434.png

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?  

Top Solution Authors