-
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
Networking metrics are being swapped #9129
Comments
@feitnomore after some investigation with @akalenyu, I believe the behavior you're seeing is caused by the libvirt bug that's been addressed with libvirt commit |
I have no chance to test it again now, but as I explained on the initial comment, I've tested on the main like a week maybe 10 days ago: How to reproduce it (as minimally and precisely as possible): |
So apparently a libvirt bump happened recently by #8774 so that may explain why |
Yep, I've tested again and now it looks good on main, after pulling the repo again. |
/reopen |
@akalenyu: Reopened this issue. In response to this:
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/test-infra repository. |
/close |
@akalenyu: Closing this issue. In response to this:
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/test-infra repository. |
/cc @sradco |
What happened:
When using Prometheus to monitor VMI metrics,
kubevirt_vmi_network_receive_bytes_total
andkubevirt_vmi_network_transmit_bytes_total
are being swapped. I've performed a simple test on a lab environment by downloading a simple Ubuntu image twice:Each file is 3.89GB, with gives a total of ~7.5GB. This is the result I see in Prometheus:
As you will notice,
kubevirt_vmi_network_transmit_bytes_total
went from 18 to 27GB whilekubevirt_vmi_network_receive_bytes_total
went from 2.81 to 2.88GB.What you expected to happen:
As the VMI
downloaded
7.5GB, the expectation was to seekubevirt_vmi_network_receive_bytes_total
increase, and not the opposite.How to reproduce it (as minimally and precisely as possible):
This can be reproduced by downloading any file inside a VMI an checking the metrics. I was able to reproduce on my LAB as well as using
make cluster-up && make cluster-sync
using the vm-cirros example provided with the code.Additional context:
The problem seems to be related to this snippet:
I am not sure if we want to see the
host
perspective or thevmi
perspective. The metric name suggests vmi. Maybe introduce a host metric with the actual values, and swap the vmi metrics? Also, while discussing this issue with @akalenyu, looks like the values are not always swapped.Thanks
The text was updated successfully, but these errors were encountered: