如何知道历史上超过了哪个应用引擎配额

How to know which appengine quota was exceeded historically

我使用来自 App Engine 和 Compute Engine 的 Google Datastore 服务。

晚上我看到一些计算引擎脚本超过了配额(得到了 python google.api_core.exceptions.TooManyRequests: 429 Quota exceeded 异常)

有以下 python 例外:

pytongrpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.RESOURCE_EXHAUSTED, Quota exceeded.)>

超出我的配额后,我的整个应用程序引擎应用程序变得不可用并且每个请求都出现 returns 503 错误。 我想了解哪个脚本对此负责。

  1. 有没有办法从触发抑制的实际 api 中查看超出了哪个配额?
  2. 有没有办法查看过去的配额数据(今天之前)以了解超出了哪些配额?
  3. 有没有办法从 google 云获取警报,警告 关闭配额过度使用?

谢谢!

您可能已经在 App Engine 上设置了每日支出限额 (https://cloud.google.com/appengine/docs/standard/python/console/#setting_a_spending_limit). If your GCP project hits this budget then you'll start getting out of quota errors. You may want to switch from a daily budget to budget alerts (https://cloud.google.com/billing/docs/how-to/budgets)。