ELB HTTPCode_Target_5XX_Count is zero even when I'm seeing lots of 502s.

0

I have an elb with a target group using the dynamic port mapping ECS mechanism. When I trigger a 4XX from the target, say by asking for a route that doesn't exist, I can see the HTTPCode_Target_4XX_Count change in cloudwatch; however the corresponding 5XX metric does not change when I trigger any 5XX responses from the target. I can see that the status code is set correctly (Chrome thinks it is a 5XX request), but the HTTPCode_Target_5XX_Count remains '-' indicating no data. I've tried setting the statistic to sample count and the period to a minute. I've also tried setting the statistic to Sum as indicated in the docs, but no combination of statistic/ period gives any data - even though I'm receiving 5XX errors from my target (routed through the ELB).

I've tried in two different vpcs with the same results.

Thanks!

asked 4 years ago953 views
1 Answer
0

:facepalm:

This was because the 5XX errors I was seeing were coming from the elb rather than my targets. Looking at the HTTPCode_ELB_502_Count with SUM statistic gives me the data I expect.

Thanks!

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions