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

doc(metrics): Make metrics related info easily accessible #4341

Merged
merged 2 commits into from
Dec 27, 2023
Merged

doc(metrics): Make metrics related info easily accessible #4341

merged 2 commits into from
Dec 27, 2023

Conversation

wearyzen
Copy link
Contributor

@wearyzen wearyzen commented Dec 21, 2023

Present a list of metrics emitted by Firecracker and to make it easier to understand the metrics, provide links to the definition of each metrics.

Added a misc commit not related to the documentation to fix the validation of 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.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.

- [ ] API changes follow the Runbook for Firecracker API changes.
- [ ] User-facing changes are mentioned in CHANGELOG.md.
- [ ] All added/changed functionality is tested.
- [ ] New TODOs link to an issue.


  • This functionality cannot be added in rust-vmm.

@wearyzen wearyzen self-assigned this Dec 22, 2023
@wearyzen wearyzen added the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Dec 22, 2023
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a6f0a9) 81.52% compared to head (e725ff7) 81.52%.

❗ Current head e725ff7 differs from pull request most recent head 2913dac. Consider uploading reports for the commit 2913dac to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4341   +/-   ##
=======================================
  Coverage   81.52%   81.52%           
=======================================
  Files         240      240           
  Lines       29364    29364           
=======================================
  Hits        23939    23939           
  Misses       5425     5425           
Flag Coverage Δ
4.14-c7g.metal 76.94% <ø> (ø)
4.14-m5d.metal 78.84% <ø> (ø)
4.14-m6a.metal 77.96% <ø> (ø)
4.14-m6g.metal 76.94% <ø> (ø)
4.14-m6i.metal 78.84% <ø> (ø)
5.10-c7g.metal 79.83% <ø> (ø)
5.10-m5d.metal 81.50% <ø> (ø)
5.10-m6a.metal 80.72% <ø> (ø)
5.10-m6g.metal ?
5.10-m6i.metal 81.50% <ø> (ø)
6.1-c7g.metal 79.83% <ø> (ø)
6.1-m5d.metal 81.50% <ø> (ø)
6.1-m6a.metal 80.72% <ø> (ø)
6.1-m6g.metal ?
6.1-m6i.metal 81.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/host_tools/fcmetrics.py Outdated Show resolved Hide resolved
docs/metrics.md Outdated Show resolved Hide resolved
docs/metrics.md Outdated Show resolved Hide resolved
docs/metrics.md Outdated Show resolved Hide resolved
Sudan Landge added 2 commits December 22, 2023 13:32
Present a list of metrics emitted by Firecracker.
To make it easier to understand the metrics, provide links
to the definition of each metrics.

Signed-off-by: Sudan Landge <[email protected]>
validate_missing_metrics is actually just validating the jsonschema
library and not any Firecracker property itself which is fine since
it is kind of a reassurance that it is working as we expect it to.
However, atm it only checks if jsonschema throws an exception on
the missing metrics and it should in fact also check if there was an
exception raised at all. If for some reason jsonschema doesn't raise
an exception then the test passes and the purpose of this function is
defeated.
So, raise exception if jsonschema doesn't raise one.

Signed-off-by: Sudan Landge <[email protected]>
@wearyzen wearyzen marked this pull request as draft December 22, 2023 14:25
@wearyzen wearyzen removed the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Dec 22, 2023
@wearyzen wearyzen marked this pull request as ready for review December 22, 2023 15:44
@wearyzen wearyzen added the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Dec 22, 2023
@wearyzen wearyzen requested review from bchalios, pb8o and roypat December 22, 2023 17:23
@wearyzen wearyzen merged commit 1afbaca into firecracker-microvm:main Dec 27, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants