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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠