-
Notifications
You must be signed in to change notification settings - Fork 164
Add Summary metrics #57
Comments
Thanks for opening this issue to start the dicussion! 🙂 My feeling is that we would probably do more harm if we add it, as most people don't understand that summaries are meant for cases where you can't control latencies at all, and would just enable it without understanding what they're doing. I understand your case and I think what you're doing makes sense in your situation, and you understand that the histogram is actually the appropriate use, but I think I'd prefer people do it as explicitly as you and really understand the implications that has. I'd still like to hear @Bplotka's thoughts as well. |
I have mixed feelings, I agree with both @brancz arguments and @markeijsermans motivation. What about doing.. both? Instead, of adding explicit Method for On the other hand, Prometheus has What do you think about adding just extension like custom reporters? That would unblock you @markeijsermans? |
I think extensibility would be a good compromise. |
My understanding of the hesitance to directly support summary metrics is that it is less flexible and performant. The quantiles are fixed and need to be computed for each observation. I agree with your reasoning. An extension point works for us. @Bplotka if I understand you correctly, it would look something like this
type ServerReporter interface {
ReceivedMessage()
SentMessage()
Handled(code codes.Code)
}
|
Yup, something like this.
pt., 27 lip 2018, 20:24 użytkownik Mark Eijsermans <notifications@github.com>
napisał:
… My understanding of the hesitance to directly support summary metrics is
that it is less flexible and performant. The quantiles are fixed and need
to be computed for each observation. I understand and agree with your
reasoning. An extension point works for us.
@Bplotka <https://github.com/Bplotka> if I understand you correctly, it
would look something like this
- create ServerReporter interface
type ServerReporter interface {
ReceivedMessage()
SentMessage()
Handled(code codes.Code)
}
- add an extension function WithCustomServerReporter(s ServerReporter)
- update interceptors to handle the customServerReporter in the same
fashion as the default
- same for the client side
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGoNu5WuYOFDzvxPO9TEdY0GhnlgGA7Dks5uK1rrgaJpZM4VibNN>
.
|
I've POC'd adding summary metrics in a similar way as histograms. It's enabled via a similar method
EnableHandlingTimeSummary()
. Is there interest in me submitting a PR?Motivation:
Our monitoring situation is in transition as we move to prometheus/grafana. We currently export metrics to a hosted solution via a prometheus remote adapter. In that hosted solution calculating a p99 from histogram buckets is not possible (normally you would use
histogram_quantile()
)The text was updated successfully, but these errors were encountered: