Monitoring EKS Kubernetes LoadBalancer service Type

10/4/2019

I have created few services in Kubernetes with type: LoadBalancer. Platform: EKS Is there a way to get number of 4xx or 5xx errors from this LoadBalancer? I have tried the following: Prometheus - Does not seem to be any metric collected for services with HTTP response codes. AWS Cloudwatch - Does not show data points for the 2xx, 3xx, 4xx or 5xx errors. Shows other metrics like latency, request counts, etc.

-- ajmal hamza
amazon-eks
amazon-web-services
aws-eks
eks
kubernetes

1 Answer

10/4/2019

This should be solved using cloudwatch metrics.

https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html

Particularly, look at HTTPCode_ELB_5XX and HTTPCode_Backend_5XX

-- Palash Goel
Source: StackOverflow