HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gcpdiag — Google Cloud Platform troubleshooting and diagnostics tool. Run in a Docker container or in GCP Clou

Submitted by: @import:tldr-pages··
0
Viewed 0 times
troubleshootingcommandcloudandgcpdiagcligoogleplatform

Problem

How to use the gcpdiag command: Google Cloud Platform troubleshooting and diagnostics tool. Run in a Docker container or in GCP Cloudshell. More information: <https://github.com/GoogleCloudPlatform/gcpdiag#usage>.

Solution

gcpdiag — Google Cloud Platform troubleshooting and diagnostics tool. Run in a Docker container or in GCP Cloudshell. More information: <https://github.com/GoogleCloudPlatform/gcpdiag#usage>.

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

Code Snippets

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

Context

tldr-pages: common/gcpdiag

Revisions (0)

No revisions yet.