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

Add CSI VolumeSnapshot related metrics. #4818

Merged

Conversation

blackpiglet
Copy link
Contributor

@blackpiglet blackpiglet commented Apr 9, 2022

This PR is supposed to work when https://github.com/vmware-tanzu/velero-plugin-for-csi added CSI VolumeSnapshot handling code in BackupRequest, but https://github.com/vmware-tanzu/velero-plugin-for-csi is depending on the Velero repository's BackupRequest adding CsiVolumeSnapshots.
So creating this PR first, then make modification on https://github.com/vmware-tanzu/velero-plugin-for-csi to make the adding function work.

Signed-off-by: Xun Jiang jxun@vmware.com

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #2499

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

Signed-off-by: Xun Jiang <jxun@vmware.com>
@blackpiglet blackpiglet self-assigned this Apr 9, 2022
@blackpiglet blackpiglet force-pushed the 2499-add-metric-for-csi-snapshot branch from fe5dcf6 to c9ae1dc Compare April 9, 2022 11:17
Signed-off-by: Xun Jiang <jxun@vmware.com>
@blackpiglet blackpiglet force-pushed the 2499-add-metric-for-csi-snapshot branch from c9ae1dc to 4daeec7 Compare April 9, 2022 12:35
@blackpiglet blackpiglet marked this pull request as ready for review April 9, 2022 12:47
@github-actions github-actions bot requested a review from jenting April 9, 2022 12:47
@blackpiglet blackpiglet requested a review from sseago April 9, 2022 12:48
sseago
sseago previously approved these changes Apr 11, 2022
@reasonerjt
Copy link
Contributor

@blackpiglet based on our discussion, getting the storage size of snapshot is tricky so we'll not collect it in v1.9, please remove the related code.

…elated code.

Signed-off-by: Xun Jiang <jxun@vmware.com>
@blackpiglet blackpiglet force-pushed the 2499-add-metric-for-csi-snapshot branch from e98d363 to 9aa4e9e Compare April 15, 2022 08:09
// CsiVolumeSnapshotsAttempted is the total number of attempted
// CSI VolumeSnapshots for this backup.
// +optional
CsiVolumeSnapshotsAttempted int `json:"csiVolumeSnapshotsAttempted,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

for consistency can you rename the fields and funcs from Csixxx to CSIxxx

@qiuming-best qiuming-best merged commit 9373c8a into vmware-tanzu:main Apr 15, 2022
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.

Report metrics for CSI snapshots
4 participants