How to get my k8s application name discovered by Google's ErrorReporting services?

78 Views Asked by At

I Google Cloud's ErrorReporting the "Seen in" section doesn't show anything useful for my GKE deployments. It's either empty or says gke_instance which is pretty useless. I have set the serviceContext correctly in my logs and the container name is also set in the labels of the log entries and yet it's not showing up. Is this a bug or am I missing something obvious here?

enter image description here

1

There are 1 best solutions below

0
Veera Nagireddy On

To resolve your issue try below 3 solutions :

Solution 1 : If you're using Legacy Stackdriver disable it and enable Stackdriver Kubernetes Engine Monitoring, for more information refer to the similar Stack Question.

Solution 2 : As stated by this release notes, the stackdriver agent actually becomes disabled by default in 1.15. To activate it again you need to edit the cluster following these instructions. Also refer to this Stack Question.

Solution 3 : If a new GKE cluster has Cloud Operations for GKE set to System and workload logging and monitoring, however no application logs are showing up refer to this Stack Question.

Note : Issue was the node pool using the default service account (which no longer existed). Created a new node pool following the document.