APM Agent language and version: Java agent v1.10.0
Browser version: Chrome 79.0.3945.29
Original install method (e.g. download page, yum, deb, from source, etc.) and version: docker 19.03.4
Fresh install or upgraded from other version? Fresh install
Is there anything special in your setup?
Kubernetes cluster is OKD 3.10.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I noticed an issue with the kubernetes.pod.uid mismatched if I choose the "View pod APM traces" option from the Infrastructure UI - Kubernetes screen, i.e. the APM traces UI is expecting a pod UID with underscore separator, while the Infrastructure UI is querying with a pod UID using dash/hyphen as the pod UID separator.
Steps to reproduce:
Go to Infrastructure UI - Kubernetes
On one of the pod choose "View pod APM traces"
Redirected to APM traces screen with a sample URL:
/app/apm#/traces?_g=()&kuery=kubernetes.pod.uid:"7773f7c7-fd30-11e9-be82-005056938be8"
Noticed that the pod.uid is delimited with hyphen. This returned no result on APM traces page. However, If I replaced hyphen with underscore, the APM traces returned the correct pod APM traces, i.e.
/app/apm#/traces?_g=()&kuery=kubernetes.pod.uid:"7773f7c7_fd30_11e9_be82_005056938be8"
Hi and thanks for reporting.
This is indeed odd. In order to help us pinpoint the problem, please try to provide the following info:
Set the agent's log_level to TRACE. Look for a line starting with: "Found Kubernetes pod UID:" and check what is the discovered pod ID
The agent will log everything sent to APM server. Look for the metadata document, in which see what is the value of the system.kubernetes.pod.uid field
Pick a trace from the APM view that is traced through this pod, use the Action drop down menu to see the transaction document in Discover. Look for the kubernetes.pod.uid value stored in ES
See if using the query bar to filter APM traces based on the pod UID (as in kubernetes.pod.uid : "7773f7c7-fd30-11e9-be82-005056938be8" ) works with the expected UID or the underscore choice
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.