根据文档:https ://cloud.google.com/stackdriver/docs/solutions/gke/migration
logName 字段可能会更改。Cloud Operations for GKE 日志条目在其日志名称中使用 stdout 或 stderr,而旧版 Logging 和 Monitoring 使用更广泛的名称,包括容器名称。容器名称仍可用作资源标签。
我有 GKE 版本1.17.9-gke.1504Cloud Operations for GKE 已启用。旧式日志记录已禁用,我在日志中有:
labels: {
...
container_name: "controller"
project_id: "aaa"
}
}
...
logName: "projects/aaa/logs/controller"
问题是为什么不logName: "projects/aaa/logs/stdout"呢?是否有任何配置参数对此负责?我想将stdout作为 log_id 而不是控制器,因为系统的其他部分依赖于此。