About this tool
HTTP 502 Bad Gateway means A proxy got an invalid response from the upstream server. Servers send it when The gateway could not get a valid reply from the app.
Common causes: The app crashed mid-response, a bad upstream header, or a connection reset. The practical fix is: Check the app process and the proxy error log. The gateway is telling you the upstream failed.
Retry: Retry idempotent requests. A storm of retries can make the outage worse.
Alert on it? Yes. A 502 means the thing behind the proxy is unhealthy.
Trigv is a push for the moment a status starts mattering, not a log of every response. If the code is one you should hear about, the snippet posts a single event with level error or warning. The status page itself does not call your API.