You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The values for a timer reported in Prometheus format are incorrect when the timer metadata specifies units of seconds. The reported are off by several powers of 10.
Steps to reproduce
Create a new MP QuickStart app. Add this to the GreetResource#getDefaultMessage method:
@Timed(name = "gets", absolute = true, unit = MetricUnits.SECONDS)
Build and run.
curl http://localhost:8080/greet
curl -H "Accept: application/json" http://localhost:8080/metrics/application | jq
Notice the very small values reported.
curl http://localhost:8080/metrics/application
Notice the much larger values reported.
The text was updated successfully, but these errors were encountered:
Environment Details
Problem Description
The values for a timer reported in Prometheus format are incorrect when the timer metadata specifies units of seconds. The reported are off by several powers of 10.
Steps to reproduce
GreetResource#getDefaultMessage
method:curl http://localhost:8080/greet
curl -H "Accept: application/json" http://localhost:8080/metrics/application | jq
Notice the very small values reported.
curl http://localhost:8080/metrics/application
Notice the much larger values reported.
The text was updated successfully, but these errors were encountered: