gcpspectre — GCP resource waste auditor with cost estimates. Part of SpectreHub.
- Scans Compute Engine instances, persistent disks, static IPs, snapshots, instance groups, Cloud SQL, and firewall rules
- Detects idle, orphaned, and oversized resources using Cloud Monitoring metrics
- Estimates monthly waste in USD per finding
- Supports configurable thresholds and exclusions
- Outputs text, JSON, SARIF, and SpectreHub formats
- Not a real-time monitor — point-in-time scanner
- Not a remediation tool — reports only, never modifies resources
- Not a security scanner — checks utilization, not vulnerabilities
- Not a billing replacement — uses embedded on-demand pricing
brew tap ppiankov/tap
brew install gcpspectregit clone https://github.com/ppiankov/gcpspectre.git
cd gcpspectre
make buildgcpspectre scan --project my-project --format json| Command | Description |
|---|---|
gcpspectre scan |
Scan GCP project for idle and wasteful resources |
gcpspectre init |
Generate config file and service account |
gcpspectre version |
Print version |
gcpspectre feeds GCP resource waste findings into SpectreHub for unified visibility across your infrastructure.
spectrehub collect --tool gcpspectregcpspectre operates in read-only mode. It inspects and reports — never modifies, deletes, or alters your resources.
| Document | Contents |
|---|---|
| CLI Reference | Full command reference, flags, and configuration |
MIT — see LICENSE.
Built by Obsta Labs