search cancel

Need to monitor kubernetes desired number of pods


Article ID: 225770


Updated On:


CA Application Performance Management (APM / Wily / Introscope)


We have auto-scaling k8s deployments running.  We need to be able to monitor that the desired number of pods are running.

A deployment has the following metrics:

We need to be able to alert when Ready != Desired for a period of time.  Is this possible?  We are also not clear what the Health metric does?



Release : 20.2

Component : Introscope


With the UMA running, we can use "Total NonRunning Containers" under the Kubernetes.
Kubernetes is pretty good at figuring that out itself, and if there an issue, the NonRunning Containers will give us the amount of pods not running. 

The Health metric details in the online guide.

If we want to monitor the "replica-sets", we will have to use a javascript calculator, as that metric is only available inside the Namespace|<namespace>|deployment|>deployment-name>|Desired.

The details are available here how to write javascript calculator.

Even thought this information is in the APM 10.7 guide, but it has good information to start on this topic.

Check under the tenant, there may be already sample javascript calculator available. 

Here is procedure how to upload javascript calculator the to APM SAAS. This will also show the current javascript calculator for the tenant.