VMware Cloud Community
vSohill
Expert
Expert

Snapshot supermetric

Hi,

Is this a right supermetric to be alerted about snapshot older than 30 days ?

min(${this, attribute=diskspace|snapshot|numberOfDays=30})

Any other recommendations ?

Reply
0 Kudos
2 Replies
dtaliafe
Hot Shot
Hot Shot

When I look for this property on a VM that has a snapshot it includes the datastore name/ID and a snapshot number (e.g. snapshot-1 for the first snapshot).

For example: Disk Space|<datastore name>|Snapshot|snapshot-1|Number of Days Old

Add it to a super metric and the datastore name is replaced with a numeric ID: diskspace:65061|snapshot:snapshot-1|numberOfDays

If you select a VM with a snapshot to add the property it should work, but unfortunately it is specific to a datastore and snapshot number.  If you don't have a lot of datastores you could create a temporary snapshot on each one and add the properties.  In anything but a small environment this doesn't seem practical.  I'm curious if anyone has a better way to use this property?

Instead of super metrics you might want to create symptoms for each snapshot property and add them to an alert.  If I didn't have so many datastores that's probably how I would do it.  Then I could receive an alert for at least the first snapshot on each VM (snapshot-1) that is older than X number of days.  I created a symptom to test with and it will work, but again it's specific to the datastore and snapshot number.

Reply
0 Kudos
Joseph_Jackson
Contributor
Contributor

The snapshot properties on VMs are much more usable in vRealize Operations 6.6. Out of the box, it comes with a Symptom for "VM has snapshot older than X days" based on the property "Disk Space|Snapshot|Age (Days)". There's a similar one for snapshot size. Setting up the alert you want is trivial in this version.

Reply
0 Kudos