google-cloud-platform - 是否可以禁用 Google Cloud Run 的 Stackdriver 日志记录?

标签 google-cloud-platform google-cloud-run

我在 Google Cloud Run 上建立了一个小项目,我正在查看生成的成本,Stackdriver Logging 看起来相当昂贵。是否可以禁用它?如何?我在文档中找不到它。

最佳答案

根据官方文档

Logging and viewing logs

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/

相关文章:

google-cloud-platform - 在 secret 更新时更新 Cloud Run 实例

node.js - 是否可以在谷歌云运行中重新启动一个进程

java - 无法更新 Firebase Java 中的完整子对象

database - 从 Google Cloud Run 服务中的 docker 容器到 Google Cloud SQL 的请求最多需要 2 分钟

google-cloud-platform - Serverless VPC Access 连接器是单点故障吗?

google-cloud-platform - 使用无服务器 VPC 连接器连接到 Cloud Run 服务时出现 403

azure - Google 的 BigQuery 与 Azure 数据湖 U-SQL

使用谷歌云函数的 Python Flask 应用程序

docker - 这是谷歌云构建错误吗?还是我做错了 Docker?

sql - BigQuery - 对于参数类型 : INT64, STRING,运算符 = 没有匹配的签名