gcpdiag: add page (#9678)

* Create gcpdiag.md

* Rename gcpdiag.md to pages/common/gcpdiag.md

* Update gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md

* Update pages/common/gcpdiag.md
pull/3/head
444B 2022-12-31 00:39:28 +02:00 committed by GitHub
parent d03096f087
commit 65def218b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

25
pages/common/gcpdiag.md Normal file
View File

@ -0,0 +1,25 @@
# gcpdiag
> Google Cloud Platform troubleshooting and diagnostics tool.
> Run in a docker container or in GCP Cloudshell.
> More information: <https://github.com/GoogleCloudPlatform/gcpdiag>.
- Run `gcpdiag` on your project, returning all rules:
`gcpdiag lint --project={{gcp_project_id}}`
- Hide rules that are ok:
`gcpdiag lint --project={{gcp_project_id}} --hide-ok`
- Authenticate using a service account private key file:
`gcpdiag lint --project={{gcp_project_id}} --auth-key {{path/to/private_key}}`
- Search logs and metrics from a number of days back (default: 3 days):
`gcpdiag lint --project={{gcp_project_id}} --within-days {{number}}`
- Display help:
`gcpdiag lint --help`