Skip to main content

Google Cloud Compute diagnostics

v0.1.1

Read-only Google Cloud Compute diagnostics for VM instances, managed instance groups and asynchronous operations. Load-balancer diagnostics live in the gcp-load-balancing pack. Every action names the target project explicitly and uses fixed gcloud commands.

5 allowed by default
Pack ID
gcp-compute
Vendor
emisar
OS
linux
Actions
5
Required binaries. Install these on the host before relying on the pack — an action that calls a missing one fails at run time.
gcloud

Install

emisar pack install fetches this pack, re-validates it, and verifies its content hash against the --hash below — the exact bytes this page was rendered against, so a tampered copy is rejected — before copying it into the runner's packs dir. The command reloads a running daemon itself; no manual restart.

on the runner host
sudo emisar pack install gcp-compute --hash sha256:456de921d2f10e2c5795b4378195022f3d8e201156f01815615def87223f144a

Actions 5 total

View on GitHub
  • gcp.instance_describe exec low

    gcloud compute instances describe

    Show one Compute Engine instance's diagnostic configuration and lifecycle state. Metadata values are deliberately omitted because startup scripts and custom metadata can contain credentials; only the metadata fingerprint is returned.

    View source on GitHub
  • gcp.instance_serial_output exec low

    gcloud compute instances get-serial-port-output

    Get bounded serial-port output for one Compute Engine instance. Boot logs can contain application-written sensitive data, so restrict this action by policy. Use the byte offset returned by gcloud to resume a prior read.

    View source on GitHub
  • gcp.mig_health script low

    gcloud compute instance-groups managed describe (health summary)

    Show one managed instance group's target size, stability and version state, autohealing policy, update policy, and backing instance group.

    View source on GitHub
  • gcp.mig_instances script low

    gcloud compute instance-groups managed list-instances

    List up to 500 instances in one zonal or regional managed instance group, including lifecycle state, current action, version, and last-attempt errors.

    View source on GitHub
  • gcp.operation_status script low

    gcloud compute operations describe

    Show the status, progress, timing, target, warnings, and errors for one global, regional, or zonal Compute Engine operation.

    View source on GitHub