Cloud Workstations 容器输出日志记录
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍了各个工作站生成的 Cloud Workstations 容器输出日志。
概览
工作站容器生成的标准容器输出日志和标准容器错误日志会发送到 Cloud Logging 以进行监控和调试。
如需查看特定工作站的容器输出日志,请执行以下操作:
- 确保您的配置指定的服务帐号具有项目的 Logs Writer 角色 (
roles/logging.logWriter
) 和 Monitoring Metric Writer (roles/monitoring.metricWriter
)。
- 启动工作站。
- 查看 Cloud Workstations 平台日志,确定分配给工作站的虚拟机 (VM) 的 ID。
如需查看此工作站的容器日志,请转到 Logs Explorer 并将查询更新为以下内容:
resource.type="gce_instance" resource.labels.instance_id=INSTANCE_ID
将 INSTANCE_ID 替换为上一步中的平台日志中显示的 instance_id
。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-03-29。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]