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!

已提問 4 年前檢視次數 1027 次
1 個回答
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!

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南