close
Skip to content

feat: monitor Snapshot Policy Compliance#3857

Merged
rahulguptajss merged 12 commits intomainfrom
rg2-snapshot
Aug 25, 2025
Merged

feat: monitor Snapshot Policy Compliance#3857
rahulguptajss merged 12 commits intomainfrom
rg2-snapshot

Conversation

@rahulguptajss
Copy link
Copy Markdown
Contributor

No description provided.

@cla-bot cla-bot bot added the cla-signed label Aug 25, 2025
@rahulguptajss rahulguptajss linked an issue Aug 25, 2025 that may be closed by this pull request
@rahulguptajss rahulguptajss requested a review from Copilot August 25, 2025 11:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds snapshot policy compliance monitoring by introducing a SnapshotViolation plugin that identifies snapshots not created by snapshot policies. The feature helps administrators monitor and track snapshot governance by highlighting volumes with non-policy snapshots.

  • Adds SnapshotViolation plugin for both REST and ZAPI collectors to monitor snapshot policy compliance
  • Updates Grafana data protection dashboard with new violation panels and metrics
  • Includes comprehensive test configuration updates and documentation for new violation metrics

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pkg/api/ontapi/zapi/client.go Adds streaming API call method to support batch processing of large datasets
cmd/collectors/zapi/plugins/snapshotviolation/snapshotviolation.go Implements ZAPI-based snapshot violation detection plugin
cmd/collectors/rest/plugins/snapshotviolation/snapshotviolation.go Implements REST-based snapshot violation detection plugin
cmd/collectors/plugins/snapshotviolation/snapshotviolation.go Provides shared violation detection logic between REST/ZAPI implementations
grafana/dashboards/cmode/data_protection.json Adds new dashboard panels for displaying snapshot policy violations
conf/zapi/cdot/9.8.0/snapshotpolicy.yaml Updates ZAPI template to include prefix field and violation plugin configuration
conf/rest/9.12.0/snapshotpolicy.yaml Updates REST template to include violation plugin configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread pkg/api/ontapi/zapi/client.go
Comment thread cmd/collectors/zapi/plugins/snapshotviolation/snapshotviolation.go Outdated
Comment thread cmd/collectors/plugins/snapshotviolation/snapshotviolation.go Outdated
@rahulguptajss rahulguptajss marked this pull request as draft August 25, 2025 11:21
@rahulguptajss rahulguptajss marked this pull request as ready for review August 25, 2025 11:29
Comment thread integration/test/dashboard_json_test.go Outdated
Comment thread conf/rest/9.12.0/snapshotpolicy.yaml
Comment thread conf/zapi/cdot/9.8.0/snapshotpolicy.yaml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

cgrinds
cgrinds previously approved these changes Aug 25, 2025
Copy link
Copy Markdown
Contributor

@Hardikl Hardikl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

@rahulguptajss rahulguptajss merged commit 8165526 into main Aug 25, 2025
10 checks passed
@rahulguptajss rahulguptajss deleted the rg2-snapshot branch August 25, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monitor Snapshot Policy Compliance

4 participants