-
Notifications
You must be signed in to change notification settings - Fork 36
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
Metered - difference between Prometheus and JSON format #39
Comments
This should be fixed for 1.1.3 through #48
|
So unit gets ignored ? |
Yes. Meter computes the rates always in PER_SECOND unit (and the |
The bug was basically that the unit was not completely ignored when it should have been, leading to nonsensical unit conversions for the output. |
There are differences in reported results between Prometheus and JSON format.
When using the same deployment with OpenLiberty there are no differences in reported results between Prometheus and JSON format.
Code:
SmallRye Metrics via WF:
OpenLiberty:
Code: https://github.com/rsvoboda/rsvoboda-playground/blob/master/microprofile-metrics-hello-prometheus/src/main/java/com/sebastian_daschner/hello_prometheus/CoffeesResource.java#L47
The text was updated successfully, but these errors were encountered: