LinuxCommandLibrary

gcpdiag

Google Cloud Platform troubleshooting and diagnostics tool.

TLDR

Run gcpdiag on your project, returning all rules

$ gcpdiag lint --project=[gcp_project_id]
copy


Hide rules that are ok
$ gcpdiag lint --project=[gcp_project_id] --hide-ok
copy


Authenticate using a service account private key file
$ gcpdiag lint --project=[gcp_project_id] --auth-key [path/to/private_key]
copy


Search logs and metrics from a number of days back (default: 3 days)
$ gcpdiag lint --project=[gcp_project_id] --within-days [number]
copy


Display help
$ gcpdiag lint --help
copy

Copied to clipboard