-
Notifications
You must be signed in to change notification settings - Fork 965
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
Histogram with negative values #1707
Comments
Can you help me understand how it would have negative AND positive values? I understand a difference is subtracting times. So START - END would be negative, but END - START would be positive. Just reversing the order to measure a duration makes more sense and would be supported. So a histogram with -1, -2, and -3 could just as easily be represented as 1, 2, and 3 with the understanding of that metric being a difference of time. |
In my use case, am I tracking synchronization of time across servers measuring the difference on timestamped messages passed between the system. The value is a measure of clock drift (and network latency.) The timestamp on a message from host |
Great use case! I think the problem you are running into is the Let me know if that works for you. |
Setting this value doesn't have any affect. Ref the record method in AbstractDistributionSummary . It ignores all negative values. Sample code and output:
Output:
|
Just for reference, the discussion in OpenMetrics. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open. |
What additional information is requested? There has been no movement on this in over 4 years, I assume this project is dead as I am talking to a bot. |
You might want to talk to people then. :) I think closing this was an accidental. Let me reopen it to track user interest: right now we don't support negative values since as far as I remember there are some arithmetical issues that we need to fix and max decaying to zero would be also weird. |
I'm migrating from drop wizard to micrometer. I used to use a Histogram to record the difference between two time values.
Micrometer doesn't support negative values, but here is a good use case here for doing just that.
The text was updated successfully, but these errors were encountered: