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
When exporting metrics of a rest method annotated with @Timed, some of the values are zero because of a conversion bug.
These conversion values:
private static final double NANOSECOND_CONVERSION = 1 / 1_000_000_000;
private static final double MICROSECOND_CONVERSION = 1 / 1_000_000;
private static final double MILLISECOND_CONVERSION = 1 / 1_000;
all convert to zero and therefore @Timed quantiles are 0.
The conversion to double is done after the integer division so all 3 conversion values are 0.0d.
Expected Outcome
Correct conversion is done for the timer metrics samples exported in prometheus format.
Current Outcome
All reported quantiles are 0.
Steps to reproduce (Only for bug reports)
Create a rest resource with a @Timed annotated method and call that method a few times.
Then observe /metrics in prometheus format.
Description
When exporting metrics of a rest method annotated with
@Timed
, some of the values are zero because of a conversion bug.These conversion values:
all convert to zero and therefore
@Timed
quantiles are 0.The conversion to double is done after the integer division so all 3 conversion values are
0.0d
.Expected Outcome
Correct conversion is done for the timer metrics samples exported in prometheus format.
Current Outcome
All reported quantiles are 0.
Steps to reproduce (Only for bug reports)
Create a rest resource with a
@Timed
annotated method and call that method a few times.Then observe /metrics in prometheus format.
Samples
Context (Optional)
fish.payara.microprofile.metrics.writer.PrometheusExporter
Environment
The text was updated successfully, but these errors were encountered: