首页 > 解决方案 > 在 appengine 中获取 200 和 500 请求的数量?

问题描述

我正在尝试使用指标资源管理器从我的应用引擎中获取 200 和其他代码的数量。有没有办法得到这个?我不断得到1和2

标签: google-app-enginegoogle-cloud-platform

解决方案


在 Google Cloud Platform 控制台中,转到 Logging > Logs Explorer,然后运行以下查询,指定您感兴趣的时间范围。

(protoPayload.status=200 OR httpRequest.status=200)
resource.type="gae_app"

这同样适用于错误 500。

(protoPayload.status=500 OR httpRequest.status=500)
resource.type="gae_app"

推荐阅读