Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: volume clone info for ZAPI #2140

Merged
merged 2 commits into from
Jun 19, 2023
Merged

feat: volume clone info for ZAPI #2140

merged 2 commits into from
Jun 19, 2023

Conversation

rahulguptajss
Copy link
Contributor

No description provided.

@@ -73,13 +73,11 @@ endpoints:
- ^clone.parent_snapshot.name => clone_parent_snapshot
- ^clone.parent_svm.name => clone_parent_svm
- ^clone.parent_volume.name => clone_parent_volume
- ^clone.split_initiated => clone_split_initiated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed as it is not available in ZAPI

@@ -73,13 +73,11 @@ endpoints:
- ^clone.parent_snapshot.name => clone_parent_snapshot
- ^clone.parent_svm.name => clone_parent_svm
- ^clone.parent_volume.name => clone_parent_volume
- ^clone.split_initiated => clone_split_initiated
- clone.split_complete_percent => clone_split_complete_percent
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed as it is not available in Rest

v.updateAggrMap(disks, aggrDiskMap)
}

volumeCloneMap, err := v.getVolumeCloneInfo()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to call this zapi at each poll or as other zapi call happens at plugin frequency to update map but still update volume labels at each poll from cache map ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see any reson to cache this call. This Zapi doesn't seem expensive.

Copy link
Collaborator

@cgrinds cgrinds 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, two minor logging comments

cmd/collectors/zapi/plugins/volume/volume.go Outdated Show resolved Hide resolved
cmd/collectors/zapi/plugins/volume/volume.go Outdated Show resolved Hide resolved
@cgrinds cgrinds merged commit 87c4d05 into main Jun 19, 2023
@cgrinds cgrinds deleted the rg2-zapi-clone branch June 19, 2023 11:53
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.

Harvest should include volume clone info on volume dashboard
3 participants