18 Dec 2017 06:28 PM - last edited on 18 Oct 2022 12:42 PM by MaciejNeumann
We have a status page for our site that our load balancer uses on a per server basis to tell if we are in the middle of a deployment. If everything is normal, it returns a 200, when we start a deployment we set a variable that tells the page to return a 503. Each time we do a deployment Dynatrace reports that the service is down (as it should in its default config). I'd like to tell it to ignore error code 503 from that particular page but cannot find how to do that. Note, I still want it to give us an error if the page returns any other 500 status codes beside 503. Is this possible? If so, where?
Solved! Go to Solution.
19 Dec 2017 12:58 AM
You can do this on the service's error detection page. See the attached screenshot. On that page you can specify any response codes to be detected as errors. If you do not want 503's to be reported as errors you would change the default to 500-502, 504-599.
Hope this helps!
Hayden
19 Dec 2017 04:40 PM
Thank you @Hayden M. I've confirmed that there is no way at this time to ignore a certain status code for a single URL. We are opting to change the status code we are emitting during a build so it is outside of the 500-599 range as I'm not comfortable ignoring all 503 for the entire site.
19 Dec 2017 05:12 PM
No problem David, glad to help!
19 Dec 2017 05:23 PM
You might consider using downtimes, instead...