Skip to content

Available metrics

tom edited this page May 1, 2022 · 1 revision
# Dataproc idleness
dataproc_is_cluster_running{project="",region="",zone="",name=""}
max(dataproc_is_cluster_running) by (project, region, zone, name) < 1


# Compute Engine Instance idleness
gce_is_machine_running{project="",zone="",name=""}
max(gce_is_machine_running) by (project, zone, name) < 1


# Compute Engine Disk idleness
gce_is_disk_attached{project="",zone="",name=""}
max(gce_is_disk_attached) by (project, zone, name) < 1


# Getting the most recent snapshot's age
gce_disk_snapshot_age_days{project="",disk="",snapshot=""}
min(gce_disk_snapshot_age_days) by (project, disk)

# Disks snapshot amount
gce_disk_snapshot_amount{project="",disk=""}
sum(gce_disk_snapshot_amount) by (project, disk)
Clone this wiki locally