-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Vhost user blk metrics #4226
Vhost user blk metrics #4226
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4226 +/- ##
==========================================
+ Coverage 81.74% 81.76% +0.01%
==========================================
Files 237 238 +1
Lines 29179 29223 +44
==========================================
+ Hits 23853 23894 +41
- Misses 5326 5329 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
bb71ee3
to
6712183
Compare
ec7f735
to
aebf91d
Compare
5ecf5de
to
df5c176
Compare
df5c176
to
dbc884a
Compare
2c5e163
to
9da8967
Compare
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.
Some minor comments inline and also:
First commit: feat(metrics): Add vhost user metrics
Suggestion for re-wording the commit message:
feat(metrics): add vhost-user metrics
Define metrics for vhost-user devices. These are metrics that are
independent of the device type. They refer to events during
initialization, configuration and activation of a vhost-user device.
Define metrics for vhost-user devices. These are metrics that are independent of the device type. They refer to events during initialization, configuration and activation of a vhost-user device. Signed-off-by: Sudan Landge <sudanl@amazon.com>
9430a5d
to
a3aa86e
Compare
a3aa86e
to
80ee5da
Compare
Use 3 metrics for vhost user block device: 1. to report activate failures. 2. to report failure to read config space. 3. to report time taken to init the device in micro seconds. 4. to report time taken to activate the device in micro seconds. Signed-off-by: Sudan Landge <sudanl@amazon.com>
Report addition of vhost user device metrics with an example. Signed-off-by: Sudan Landge <sudanl@amazon.com>
Flush vhost user device metrics as part of METRICS flush using a proxy serializer. Signed-off-by: Sudan Landge <sudanl@amazon.com>
Make FirecrackerMetrics schema local to validate function so that vhost-user schema added by different tests don't conflict with each other. Move timestamp validation up so that the check doesn't generate any false results. Signed-off-by: Sudan Landge <sudanl@amazon.com>
Add schema to validate breaking change in vhost-user metrics. Re-organize metrics validation function to accommodate vhost-user which has per device metrics but does not have aggregate metrics. Use existing vhost-user tests to check that there is no breaking change in vhost-user-block device metrics. Signed-off-by: Sudan Landge <sudanl@amazon.com>
Add basic test to check shared inc and store metrics. Signed-off-by: Sudan Landge <sudanl@amazon.com>
80ee5da
to
10af235
Compare
Changes
Reason
Vhost user block is a new device which doesn't have any metrics.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following
Developer Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
[ ] If a specific issue led to this PR, this PR closes the issue.[ ] API changes follow the Runbook for Firecracker API changes.CHANGELOG.md
.[ ] NewTODO
s link to an issue.rust-vmm
.