Files
tldr/pages.zh/common/gcpdiag.md

25 lines
687 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# gcpdiag
> Google Cloud Platform 故障排除和诊断工具。
> 在 Docker 容器或 GCP Cloudshell 中运行。
> 更多信息:<https://github.com/GoogleCloudPlatform/gcpdiag>。
- 在您的项目上运行 `gcpdiag`,返回所有规则:
`gcpdiag lint --project={{gcp_project_id}}`
- 隐藏正常的规则:
`gcpdiag lint --project={{gcp_project_id}} --hide-ok`
- 使用服务账户私钥文件进行身份验证:
`gcpdiag lint --project={{gcp_project_id}} --auth-key {{path/to/private_key}}`
- 从几天前搜索日志和指标默认3天
`gcpdiag lint --project={{gcp_project_id}} --within-days {{number}}`
- 显示帮助信息:
`gcpdiag lint --help`