Symptoms
No data is displayed in Application Monitoring after the Application Real-Time Monitoring
Service (ARMS) agent is installed on a Java application in an ACK cluster.
Causes
The pod of the application is not injected to arms-init-container, the YAML file of
the application contains no annotations, or Security Token Service (STS) is not authorized.
Solutions
- Log on to the Alibaba Cloud Container Service for Kubernetes console.
- In the left-side navigation pane, click Clusters. On the Clusters page, find the required cluster, and click Applications in the Actions column.
- In the upper part of the Pods tab, select the namespace in which your application resides. Click Edit next to the application.
- In the Edit YAML dialog box, check whether the YAML file contains initContainers.
- If the YAML file does not contain initContainers, the pod has not been injected to
arms-init-container. Perform 5.
- If the YAML file contains initContainers, the pod has been injected to arms-init-container.
Perform 8.
- In the upper part of the Pods tab, set Namespace to arms-pilot. Check whether any pods that have the arms-pilot prefix exist in the Pod list.
- On the Deployments or StatefulSets tab, choose in the Actions column. In the Edit YAML dialog box, check whether the YAML file contains the following annotations:
annotations:
armsPilotAutoEnable: 'on'
armsPilotCreateAppName: <your-deployment-name>
- If the YAML file contains these annotations, perform 7.
- If the YAML file does not contain these annotations, add the preceding annotations
to the spec > template > metadata section in the Edit YAML dialog box, replace
<your-deployment-name>
with your application name, and then click Update.
- On the Pods tab, click Logs,next to the required pod to check whether the pod logs of arms-pilot report an STS
error in the
"Message":"STS error"
format.
- On the Pods tab, click Edit next to the required pod. In the Edit YAML dialog box, check whether the YAML file contains the following javaagent parameter:
-javaagent:/home/admin/.opt/ArmsAgent/arms-bootstrap-1.7.0-SNAPSHOT.jar