-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 a metric that reports the VM snapshot create timestamp #12645
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
38e5671
to
33e736f
Compare
a140a95
to
7d5437a
Compare
Hi @machadovilaca I fixed most of your comments, the test failed with:
Trying to understand why |
can you push the new changes? |
@avlitman can the VM namespace be different then the snapshot namespace? |
e70bedc
to
caf22c9
Compare
a8693ce
to
3e17eff
Compare
/retest |
Add kubevirt_vmsnapshot_succeeded_timestamp_seconds metric, which reports the create timestamp per VM succeeded snapshot. In addition it also reports the "vm_name", "snapshot_name". Signed-off-by: avlitman <[email protected]>
3e17eff
to
e647361
Compare
/retest |
1 similar comment
/retest |
|
||
metrics.NewVMSnapshotCreated(vmSnapshot) | ||
|
||
metricTime, err := metrics.GetVmSnapshotSucceededTimestamp("vm-name", "snapshot-name", "namespace") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sradco vm-name it's not the label name it's just a name string for the test, here is the label name https://github.com/kubevirt/kubevirt/pull/12645/files#diff-1a38952b4e678a893790c3fe9ffd86cc9865aa1976fb163ad29ebd456eb47834R39
@avlitman: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/approve |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: machadovilaca The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc |
/lgtm |
What this PR does
Add kubevirt_vmsnapshot_succeeded_timestamp_seconds metric, which reports the create timestamp per VM succeeded snapshot. In addition it also reports the "vm_name", "snapshot_name".
jira-ticket: https://issues.redhat.com/browse/CNV-46581
Why we need it and why it was done in this way
This metric will help users to identify VMs that didn't created a snapshot for a long time, also show the current state of vm's snapshots in a dashboard.
Release note