Need to monitor kubernetes desired number of pods

book

Article ID: 225770

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

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?

 

Environment

Release : 20.2

Component : Introscope

Resolution

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.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/Universal-Monitoring-Agent/Cluster-Monitoring/Cluster-Deployment-Monitoring/Cluster-Monitoring-Metrics.html

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.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/administrating/manage-metric-data-by-using-management-modules/create-and-edit-calculators/use-javascript-calculators.html

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.
https://ca-broadcomcsm.wolkenservicedesk.com/wolken/esd/knowledgebase_search?articleId=201758