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

MicroProfile Metrics API returns no data for vendor:system_cpu_load PAYARA-4147 #4230

Closed
sschellh opened this issue Sep 19, 2019 · 1 comment · Fixed by #4292
Closed

MicroProfile Metrics API returns no data for vendor:system_cpu_load PAYARA-4147 #4230

sschellh opened this issue Sep 19, 2019 · 1 comment · Fixed by #4292
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@sschellh
Copy link

Description


Since Payara Micro 5.193 the /metrics endpoint does not return data for the field vendor:system_cpu_load anymore. The value is always zero.

Expected Outcome

Calling GET {baseUrl}/metrics/vendor returns the field vendor:system_cpu_load with a value > 0.

Current Outcome

Calling GET {baseUrl}/metrics/vendor the field vendor:system_cpu_load is always zero.

Also the naming of the field changed.
Before 5.193 it is vendor:system_cpu_load
Since 5.193 it is vendor_system_cpu_load
(not that the : was replaced by _)

Steps to reproduce (Only for bug reports)

Execute java -jar payara-micro-5.193.jar --deploy anyApplication.war
Visit http://localhost:8080/metrics/vendor

Samples

Payara Micro 5.191
vendor:system_cpu_load 0.15454493453568963

Payara Micro 5.192
vendor:system_cpu_load 0.5629938578656155

Payara Micro 5.193
vendor_system_cpu_load 0

Environment

  • Payara Version: 5.193
  • Edition: Micro
  • JDK Version: Oracle Jdk, OpenJdk (Version 1.8)
  • Operating System: Windows, Linux
@khasunuma khasunuma added Type: Bug Label issue as a bug defect reproducible labels Sep 20, 2019
@khasunuma
Copy link

I reproduced it. The data source that is "java.lang:type=OperatingSystem/SystemCpuLoad" in MBean indicates correct value, so it's certainly a bug. I reported it as an internal issue (PAYARA-4147).

Note that Payara Micro 5.193 supports MP Metrics 2.0 that introduces some breaking changes. It's not affected directly, but it seems a regression by some reason.

@rdebusscher rdebusscher added the Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev label Oct 1, 2019
@OndroMih OndroMih changed the title MicroProfile Metrics API returns no data for vendor:system_cpu_load MicroProfile Metrics API returns no data for vendor:system_cpu_load PAYARA-4147 Oct 8, 2019
Cousjava added a commit to Cousjava/Payara that referenced this issue Oct 30, 2019
This issue was causing CPU load to be displayed as 0.
Fixes payara#4230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants