--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a7cbf9c2-bf47-4409-999a-a750f0198626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f8adba85-19aa-4284-9bb7-cc89d40bc521%40googlegroups.com.
Could you share the JSON. I was looking at the iostat.c in github and was going to look at doing a translation but it looks like you already have something. I would love to check it out and if I can make it better would of course share back.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f6a0f0c0-6d24-4ef2-abb5-4ad6265dab32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f6a0f0c0-6d24-4ef2-abb5-4ad6265dab32%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a7614525-580e-44b2-a01d-61a310f05585%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.
So this is what I see when doing an iostat -xky and I've checked the article out(thank you). Any incite into the others? Not to learn about templates to get the variables correct. Thank you again.r/s -- Yesw/s -- YesrkB/s -- YeswkB/s -- Yesrrqm/s -- Yeswrqm/s -- Yes%rrqm -- Yes%wrqm-- Yesr_await -- Yesw_await -- Yes
aqu-sz -- I didn't see this calculationrareq-sz -- I didn't see this calculationwareq-sz -- I didn't see this calculation
svctm -- Yes%util -- Yes
On Wednesday, November 28, 2018 at 11:50:48 AM UTC-5, fntn...@gmail.com wrote:Hello,I'm starting to use Prometheus.After searching a lot, I couldn't find a way to get the equivalent of "avgqu-sz" from the following output by "iostat -nz 1" command:
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %utilsda 0.00 0.00 0.00 1.00 0.00 4.00 8.00 0.00 0.00 0.00 0.00 0.00 0.00dm-0 0.00 0.00 0.00 1.00 0.00 4.00 8.00 0.00 0.00 0.00 0.00 0.00 0.00Is there any idea on how to get it (or similar) from Prometheus?Best,Francisco Neves
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/93ca5701-fb87-45d2-a5e2-5cf35eb3f371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Thu, 21 Mar 2019 at 01:29, Harald Koch <c...@pobox.com> wrote:On Wed, Mar 20, 2019, at 19:58, Brian Brazil wrote:Is there a cut and paste error in that article? To my layman's eyes, it looks like the calculations for "avgrq-sz" and "await" are using the same metrics and formula.Yip, fixed. Thanks.
--Harald
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7f05422a-bf02-4831-bb91-b701ee0a5d34%40www.fastmail.com.
> On Thu, Mar 21, 2019, at 04:58, Brian Brazil wrote:
> > On Thu, 21 Mar 2019 at 01:29, Harald Koch <c...@pobox.com> wrote:
> >> On Wed, Mar 20, 2019, at 19:58, Brian Brazil wrote:
> >>> https://www.robustperception.io/mapping-iostat-to-the-node-exporters-node_disk_-metrics
> >>> may be of use.
> >>
> >> Is there a cut and paste error in that article? To my layman's
> >> eyes, it looks like the calculations for "avgrq-sz" and "await" are
> >> using the same metrics and formula.
> >
> > Yip, fixed. Thanks.
>
> Thanks! This helped me discover, and then eliminate, a performance
> issue with ActiveMQ and excessive disk writes.
There is a minor issue with avgqu-sz (which has been renamed to 'aqu-sz'
in recent enough versions of Linux iostat); while it's based on field 11,
node_disk_io_time_weighted_seconds_total, I believe that it has to be
computed as the rate of node_disk_io_time_weighted_seconds_total divided
by the rate of node_disk_io_time_seconds_total.
(Actually looking at the current iostat code for this makes my head
hurt. I believe that dividing weighted seconds total by time seconds
total is the correct calculation for the average queue size, but I'm
not convinced that it's what the current iostat is doing.)
svctm is deprecated because it is basically meaningless, as you can
tell from the calculation. It would be nice to actually know the device
service time, but Linux doesn't provide it; all you can get is the total
wait time, covering both the time a request spent in the queue and the
time it spent actually dispatched to the device.
- cks
(I have long standing opinions on Linux disk IO stats and iostat, and I
was quite pleased to discover that node_exporter exposes the raw kernel
stats intact apart from minor changes like mapping milliseconds into
seconds and 'sectors' into bytes, which makes the metrics far more natural
in Prometheus.)
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/20190326015116.4F2B8320405%40apps1.cs.toronto.edu.
On Tue, Mar 26, 2019 at 2:51 AM Chris Siebenmann <cks.prom...@cs.toronto.edu> wrote:> On Thu, Mar 21, 2019, at 04:58, Brian Brazil wrote:
> > On Thu, 21 Mar 2019 at 01:29, Harald Koch <c...@pobox.com> wrote:
> >> On Wed, Mar 20, 2019, at 19:58, Brian Brazil wrote:
> >>> https://www.robustperception.io/mapping-iostat-to-the-node-exporters-node_disk_-metrics
> >>> may be of use.
> >>
> >> Is there a cut and paste error in that article? To my layman's
> >> eyes, it looks like the calculations for "avgrq-sz" and "await" are
> >> using the same metrics and formula.
> >
> > Yip, fixed. Thanks.
>
> Thanks! This helped me discover, and then eliminate, a performance
> issue with ActiveMQ and excessive disk writes.
There is a minor issue with avgqu-sz (which has been renamed to 'aqu-sz'
in recent enough versions of Linux iostat); while it's based on field 11,
node_disk_io_time_weighted_seconds_total, I believe that it has to be
computed as the rate of node_disk_io_time_weighted_seconds_total divided
by the rate of node_disk_io_time_seconds_total.
(Actually looking at the current iostat code for this makes my head
hurt. I believe that dividing weighted seconds total by time seconds
total is the correct calculation for the average queue size, but I'm
not convinced that it's what the current iostat is doing.)I looked at that code as well, with the same reaction. :-)
--I don't think it was dividing by the node_disk_io_time_seconds_total, just the number of seconds in the requested step. This is basically the same as taking a rate() in PromQL.
svctm is deprecated because it is basically meaningless, as you can
tell from the calculation. It would be nice to actually know the device
service time, but Linux doesn't provide it; all you can get is the total
wait time, covering both the time a request spent in the queue and the
time it spent actually dispatched to the device.
- cks
(I have long standing opinions on Linux disk IO stats and iostat, and I
was quite pleased to discover that node_exporter exposes the raw kernel
stats intact apart from minor changes like mapping milliseconds into
seconds and 'sectors' into bytes, which makes the metrics far more natural
in Prometheus.)Yup, we prefer raw counter stats converted to base units in Prometheus.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/20190326015116.4F2B8320405%40apps1.cs.toronto.edu.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmp-d0Jmf_WT5-4Nn99tyaVE-Mr8WRtLL5TP7YuDi5kdBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.