-
Notifications
You must be signed in to change notification settings - Fork 894
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
Add AbsoluteValueRecorder instrument #608
Comments
(I feel like I already asked you this, but I can't remember your answer.)
Edit: This question was meant to be about |
Can the user instead use a |
@jmacd sorry I had the response pending for this: I think it is a matter of what is the natural way to report that metric, if the |
I wonder about the following names:
The term "Measure" implies a size, which is generally non-negative. |
Another possibility: I think this emphasizes the use-case given above ("bytes sent"); this is an instrument you use when you have a count and want to record individual values and expose the sum as a rate. It's less technical jargon too. |
Summary of the above four responses of mine: In #625 I've proposed calling this new instrument a Collective instrument, and I favor the term Today's specification has six instruments, We could discuss at length the mathematical and/or statistical rationalization for having this instrument, but for me the primary motivation is to answer the question about Prometheus/Statsd Gauges. The reason that we need more than two Collective instruments ( As in OTEP 88, we could enumerate more instruments than seven. Why not For the asynchronous instruments, is there a need for a Collective Observer instrument with a default Gauge interpretation? This is a different case because Observer instruments are specified to report only one value per collection interval, so the pragmatic rationalization used above to support a (synchronous) |
I think this is a bit over-thought. Non-mathematicians measure negative things all the time: voltage and temperature spring to mind immediately. |
Measure was being used as a noun, not a verb. :-) In any case, I agree it's not a good term for us, regardless of whether it's accurate. I still favor "CountRecorder". |
So, "the best kind of correct". :) |
@bogdandrutu There's not much support here. The number of people paying attention is also very small. I'm inclined to close this and not add a new instrument, given that no one has added any support. |
I'm closing this because there hasn't been much support. I was only in favor of this because I was thinking that users want a way to select an instrument with either Histogram or LastValue aggregation by default. After some feedback, I'm starting to think that the default (for ValueRecorder) should be LastValue. To support the use-case in question, I think we should focus on making the SDK configurable. A programmatic Views API would let users configure a Counter to expose a histogram that translates into a meaningful rate, for example. |
AbsoluteValueRecorder - use case is the following: user wants to report bytes sent (always positive) naturally will want a distribution so will recommend to use ValueRecorder - but if someone is concerned about the cost and they want to just see the Sum will configure a View to produce only Sum. Now the problem is that it will be good to see a monotonic Sum which we cannot guarantee unless we know the values are absolute (non negative).
Proposal 1
New instrument “AbsoluteValueRecorder”:
Proposal 2
Have the view support restricting this in a view:
The text was updated successfully, but these errors were encountered: