Enable SnapshotViolation plugin for SnapshotPolicy template #3854
rahulguptajss
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
SnapshotViolationplugin is designed to generate metrics that help identify snapshots not created by a policy, displaying the count and total size of those snapshots. By default, this feature is disabled.Note: Metrics generated via this plugin are refreshed every 30 minutes by default. These metrics are
snapshot_volume_violation_countandsnapshot_volume_violation_total_size.To enable this feature in Harvest, follow the steps below:
Harvest Installation Type: Native/deb/rpm
Rest Collector
Step 1: Create
custom.yamlLet's assume Harvest is installed in
/opt/harvestdirectory. Adjust paths as needed.Update the file with the following content:
Step 2: Restart Harvest pollers
Zapi Collector
Step 1: Create
custom.yamlLet's assume Harvest is installed in
/opt/harvestdirectory. Adjust paths as needed.Navigate to the
zapidirectory:cd /opt/harvest/conf/zapiUpdate the file with the following content:
Step 2: Restart Harvest pollers
Harvest Installation Type: NABox4
Rest Collector
Step 1: Create
custom.yamlNavigate to the
restdirectory:cd /etc/nabox/harvest/user/restCreate custom.yaml:
Update the file with the following content:
mkdir -p /etc/nabox/harvest/user/rest/9.12.0 cp /data/packages/harvest/conf/rest/9.12.0/snapshotpolicy.yaml /etc/nabox/harvest/user/rest/9.12.0/custom_snapshotpolicy.yaml sed -i 's/^# - SnapshotViolation/ - SnapshotViolation/' /etc/nabox/harvest/user/rest/9.12.0/custom_snapshotpolicy.yamlStep 2: Restart NABox containers
Zapi Collector
Step 1: Create
custom.yamlNavigate to the
zapidirectory:cd /etc/nabox/harvest/user/zapiUpdate the file with the following content:
Step 2: Restart Harvest pollers
You can view the metrics generated by this plugin in
ONTAP: Data Protectionunder theSnapshot Policy Violationsrow.Beta Was this translation helpful? Give feedback.
All reactions