javagoogle-cloud-platformgoogle-kubernetes-enginegoogle-cloud-error-reporting

How get GCP Error Reporting from Java App running on GKE ( google kubernetes engine )


in case of Java App Engine, if exception occur from Java App, i can get GCP Error reporting automatically like this

But in case of Java App on GKE, i can't get GCP Error Reporting

How does it can?


Solution

  • As mentioned in the doc Stackdriver Error Reporting is automatically enabled for App Engine environment applications. However on GKE, you must add the cloud-platform access scope when creating the cluster. The preferred way to collect the error is to able to post to Stackdriver Error Reporting using the REST API or Error Reporting Client Libraries