我在 App Engine 中有一个 Java 应用程序,最近我开始收到以下错误:
Unable to export to Monitering service because: GaxError RPC failed, caused by 3:One or more TimeSeries could not be written: Metrics cannot be written to gae_app. See https://cloud.google.com/monitoring/custom-metrics/creating-metrics#which-resource for a list of writable resource types.: timeSeries[0]
Run Code Online (Sandbox Code Playgroud)
每次在健康检查日志后都会发生这种情况:
Health checks: instance=instanceName start=2020-01-14T14:28:07+00:00 end=2020-01-14T14:28:53+00:00 total=18 unhealthy=0 healthy=18
Run Code Online (Sandbox Code Playgroud)
一段时间后,我的实例将重新启动,同样的事情又开始发生。
应用程序.yaml :
#https://cloud.google.com/appengine/docs/flexible/java/reference/app-yaml
#General settings
runtime: java
api_version: '1.0'
env: flex
runtime_config:
jdk: openjdk8
#service: service_name #Required if creating a service. Optional for the default service.
#https://cloud.google.com/compute/docs/machine-types
#Resource …Run Code Online (Sandbox Code Playgroud) google-app-engine google-cloud-platform google-cloud-stackdriver