No Kubernetes data is reported by APM agent
search cancel

No Kubernetes data is reported by APM agent

book

Article ID: 217836

calendar_today

Updated On:

Products

DX Application Performance Management CA Application Performance Management (APM / Wily / Introscope) CA Application Performance Management Agent (APM / Wily / Introscope)

Issue/Introduction

We have an on premise DOI environment in our site. We want to monitor Kubernetes by using APM agent. We followed the steps at the documentation and installed APM agent to our internal test Kubernetes environment. We are able to see the agents at metric's tab. But nothing at Agents tab or no metric coming from Kubernetes environment. 

Environment

Release : 20.2

Component : CA DOI Foundations

Cause

The pod log (kubectl logs podname) showed an error in the OpenShift Monitor startup

6/21/21 10:09:28 AM GMT [INFO] [IntroscopeAgent.InfrastructureAgent] Starting Openshift Monitoring Service
6/21/21 10:09:29 AM GMT [WARN] [IntroscopeAgent.OpenShiftMonitor] /root/.kube/config does not exist
6/21/21 10:09:29 AM GMT [ERROR] [IntroscopeAgent.InfrastructureAgent] An error occurred while initializing service class com.ca.apm.openshift.OpenShiftMonitorService in "Openshift Info Collector Service".
6/21/21 10:09:29 AM GMT [ERROR] [IntroscopeAgent.InfrastructureAgent]
 
java.lang.NumberFormatException: For input string: "\\"60\\""
 


Resolution

In the caagent-kubernetesmonitor.yml file is a section

            - name: interval
              value: \\"60\\"

Change this to

            - name: interval
              value: "60"

the delete and recreate the deployment i.e. 

kubectl delete -f caagent-kubernetesmonitor.yml

kubectl create -f caagent-kubernetesmonitor.yml


Resulting agent then include Kubernetes
 

Additional Information

The source of this is the sample yml displayed from the agent download section of on premise agent for the Cloud Native Kubernetes agent download

Attachments