Hi all, hope I'm in the right place.
IHAC that needed a very specific dashboard view on Grafana, and they are using NAbox.
They want to see that a each volume's snapshot policy is the correct snapshot policy as they have defined it.
for example - a volume has a snapshot policy with the name "NAS_default", that needs to have 5 hourly and 5 daily copies.
Customer wants to make sure that
(1) the policy by this name really has those 5&5 copies and that nobody accidently (or not) changed it to have les/more snapshots, and (2) that volume doesn’t have other snapshots outside of its scope, for example snapshots that are labeled “weekly” (because the policy doesn’t and shouldn’t have this label).
I'm not sure what's the right approach to it. Is it possible to get metrics with harvest to the snapshot policy rules & retentions and display them in Grafana?
Thanks!
#Display snapshot policy rules
1 messages · Page 1 of 1 (latest)
@bold oak Harvest has a dashboard called ONTAP: Data Protection. Could you check if it contains the information you are looking for?
Unfortunately, it doesn’t have enough info. It contains how many snapshot copies each volume has, but not the type (prefix) that each snapshot has
Okay. Could you provide the ONTAP CLI command that contains the relevant snapshot information you would like to see in Harvest?
Yeah sure. This is a combination of commands - (1) first getting the policy from "snapshot policy show", and getting the prefixes, (2) searching for snapshots without the prefix, with "vol snapshot show -volume <> -snapshot !<prefix1>, !<prefix2>,...". That gives the snapshots name, and (3) the amount of snapshots.
Thanks @bold oak . I believe this data could be quite large and may generate lot of traffic for prometheus. Would it be beneficial to publish a metric indicating the number of snapshots that fall outside the policy and their total size per volume? This would be a form of metadata.
That sounds good, and might do the trick for this customer!
Thanks! I have opened an issue for it https://github.com/NetApp/harvest/issues/3798.
@bold oak This feature is now available via the nightly build. Steps to enable it are documented at https://github.com/NetApp/harvest/discussions/3854. Please let us know your feedback.