Closed dannykopping closed 5 months ago
Thanks @fedordikarev Do we need anyone else's approval before we merge?
@dannykopping one review was enough for the past PRs from what I see on changes:
we may wait for @inkel review as he is initial author of the tool and introduced structure for code and modules.
@inkel @Pokom please have another look; I've addressed your comments
Thank you for your contribution, @dannykopping!
This PR adds a
unused_disks_last_used_at
metric which exports the disk, PVC, and PV identifiers. The value of the gauge is the last time the disk was mounted (although this is only available on GCP for now).I want to use this metric to create an alert for a PVC which exists without its underlying disk/volume, which happened to my team recently when we ran a script to cleanup unused disks (but it didn't clean up the associated PVCs).
To my knowledge, neither
opencost
norkube-state-metrics
export a metric which allows 3-way correlation between PVCs, PVs, and their underlying disks.