I've set up the CloudWatch agent to collect kubernetes cluster metrics and send them to CloudWatch. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-metrics.html
I used the default configuration from the examples. Most things are working correctly, but I'm struggling to find a metric that shows the "pod count" for my background job workers. I do see a pod count metric for my web service under service_number_of_running_pods
. However my workers don't have a network service, and I can't find any *_number_of_running_pods
metric for the workers.
I do have a worker "deployment" though. I want to get these status metrics from the deployment into CloudWatch, e.g. 6 Desired | 6 Available | 6 Ready It looks like these aren't sent by default (or maybe I'm just not able to find them easily.)
Can someone help me find the "pod count" metric for a deployment, or configure cwagent to send it? Thanks!