With our Go agent, you can monitor applications that reside in the Google App Engine (GAE) flexible environment. Adding New Relic to your GAE flex app gives you insight into the health and performance of your app and extends GAE with metrics you can view in APM and .
Here we explain how to add New Relic to your GAE flex app by configuring a custom runtime, and give an example of deploying a Go app with Docker.
중요
The Go agent can run in a GAE flexible environment using a custom runtime. Due to limitations of other environments, don't use the GAE standard environment or Google App Engine's "native mode" installation.
Build a custom runtime using Docker
See Google's documentation for building custom runtimes. This example describes how to add New Relic to your GAE flex app by installing the Go agent, building a custom Go runtime for Docker, and deploying a golang application.
For more information about deploying and configuring your Go app in the GAE flexible environment, see:
- Google App Engine's documentation for Go
- Google App Engine's tutorials to deploy a Go app
이 문서가 설치하는데 도움이 되셨나요?
Recommendation: Disable health checks
Google App Engine sends periodic health check requests to confirm that an instance has been successfully deployed, and to check that a running instance maintains a healthy status. A health check is an HTTP request to the URL /_ah/health
.
If you create a custom runtime, your app must be able to handle a large number of health check requests. Otherwise, your app data may not display correctly in APM.
Recommendation: Configure your app.yaml
to disable health checks by adding:
health_check: enable_health_check: False
Get agent troubleshooting logs from GAE
Use these resources to troubleshoot your GAE flex environment app:
To connect to the GAE instance and start a shell in the Docker container running your code, see GAE's documentation for debugging an instance.
To redirect New Relic Go agent logs to Stackdriver in the Cloud Platform Console, change the
newrelic.yml
file to:log_file_name: STDOUT