我在 Google Cloud Run 上建立了一个小项目,我正在查看生成的成本,Stackdriver Logging 看起来相当昂贵。是否可以禁用它?如何?我在文档中找不到它。
最佳答案
根据官方文档
Cloud Run has two types of logs, and these are automatically sent to Cloud Logging:
Request logs: logs of requests sent to Cloud Run services. These logs are created automatically. Container logs: logs emitted from the container instances, typically from your own code, written to supported locations as described in Writing container logs.
"Request logs are created automatically. Although you cannot control the amount of request logs directly from Cloud Run, you can make use of the logs exclusion feature from Cloud Logging."
因此您无法禁用Cloud Run的日志,但可以使用 logs exculusion 控制日志量
关于google-cloud-platform - 是否可以禁用 Google Cloud Run 的 Stackdriver 日志记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65631936/