Replies: 5 comments
-
I'd love an answer to this question as I'm also struggling to bend my head around how the range sampler metric is translated into a histogram. The range sampler internally tracks three variables: the current value, the minimum and the maximum observed value. These three values are read and stored in a histogram every 200 milliseconds (by default) and produce a value distribution on each reporting interval./metric-instruments I'm struggling to understand how these distribution values are represented in the histogram. |
Beta Was this translation helpful? Give feedback.
-
ping @SimunKaracic @ivantopo hoping you experts can help out |
Beta Was this translation helpful? Give feedback.
-
Looking into the code of the Prometheus exporter I realised one can decide if one wants the metric displayed as a summary or histogram.
The result in this case is that all distribution type metrics are displayed as summaries and not histograms.
Not that it made more sense to me.
The Active requests is more of a gauge than a distribution don't see how this really plays out. I'm going to work around at my end and generate my own metrics as these distribution types bring little value for this type of measurement. I get one can use histograms to measure e.g. latency but not for open connections. |
Beta Was this translation helpful? Give feedback.
-
Finally I got around and made a PR #1011 that addresses the topic of this discussion |
Beta Was this translation helpful? Give feedback.
-
Here, hopefully this will clarify any questions you have about Range Samplers! |
Beta Was this translation helpful? Give feedback.
-
Hi Kamon team,
I'm looking to better understand the
http.server.connection.open
metrics a little bit better for my akka-http application. I see on the docs that this metric is a "range sampler" which represents the "number of open connections", and that part is straightforward. However, when I use a prometheus exporter and view this metric in prometheus format, I don't quite understand the output, for example:Is the
_count
the total number of connections that have been opened since the application started up? What are the buckets used for in this case? Does it even make sense to plot this metric in histogram format?Any insight is appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions