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

fix: CPU Entitlement is zero when stats are missing #3854

Conversation

acrmp
Copy link
Member

@acrmp acrmp commented Jun 19, 2024

  • In Expose process CPU Entitlement in stats #3641 we exposed CPU Entitlement in process stats and returned null when stats are not yet available in Log Cache.
  • Change missing process stats to instead have CPU Entitlement of zero for consistency with other existing metrics. Recent versions of the cf CLI will show zero rather than an empty column for CPU Entitlement.
  • CPU Entitlement may still be null when the metric is not available on the deployment.
  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

- In cloudfoundry#3641 we exposed CPU Entitlement in process stats and returned null
  when stats are not yet available in Log Cache.
- Change missing process stats to instead have CPU Entitlement of zero
  for consistency with other existing metrics. Recent versions of the cf
  CLI will show zero rather than an empty column for CPU Entitlement.
- CPU Entitlement may still be null when the metric is not available on
  the deployment.

Signed-off-by: Andrew Costa <andrew.costa@broadcom.com>
@acrmp
Copy link
Member Author

acrmp commented Jun 19, 2024

We think the GitHub action failures are unrelated to our changes, let us know if that's not the case.

@philippthun philippthun merged commit 40fc8b7 into cloudfoundry:main Jun 28, 2024
9 checks passed
@acrmp acrmp deleted the fix/cpu-entitlement-zero-missing-stats branch June 28, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants