7onn/gcp-idleness-exporter

Snapshots and old backups (disks with more than snapshot, only the last one should prevail)

Closed this issue · 1 comments

7onn commented
Snapshots and old backups (disks with more than snapshot, only the last one should prevail)
7onn commented

The current way this is being exported became unflexible.

I'll change the snapshot metrics to something like:

gce_disk_last_snapshot_seconds{project, zone, disk, snapshot_name} x
gce_disk_snapshot_count{project, zone, disk} x

So I can alert upon the following scenarios:

More than X snapshots for the same disk (means you should clean up old snapshots)
Snapshots older than X days
Last snapshot older than X days (if you want to keep daily snapshots, for instance)