Skip to main content

Compute Engine (GCE)

SmartSRE provides resource optimization and cleanup for Google Compute Engine.

What SmartSRE Scans

CategoryChecks
UtilizationCPU/memory usage, idle instances
StorageDetached disks, old snapshots
CostRight-sizing opportunities, preemptible candidates
OperationsInstance scheduling, labels

Findings

Issue TypeSeverityDescription
detached_diskMediumDisk not attached to any instance
old_snapshotLowSnapshot > 365 days old
idle_instanceMediumInstance with < 5% CPU for 7+ days
over_provisionedLowInstance could use smaller machine type

Available Fixes

OperationDescriptionImpact
stop_instanceStop idle instanceHigh
delete_detached_diskDelete unattached diskHigh
delete_old_snapshotDelete old snapshotMedium
resize_instanceChange machine typeMedium

Required Permissions

For Scanning

roles/compute.viewer
roles/monitoring.viewer

For Remediation

roles/compute.instanceAdmin.v1

Best Practices

  1. Schedule dev instances — Stop at night/weekends
  2. Clean up detached disks — Snapshot before deletion
  3. Use labels — Enable filtering by environment
  4. Review snapshots quarterly — Remove outdated backups