is there no way in prometheus to take a series of gauges (e.g. load average across all hosts) and then calculate a derived histogram from that at query time?
If not, what's the best workaround for this, outside of accompanying every histogram with a gauge just in case you might want to aggregate it in this way?
is there no way in prometheus to take a series of gauges (e.g. load average across all hosts) and then calculate a derived histogram from that at query time?
If not, what's the best workaround for this, outside of accompanying every histogram with a gauge just in case you might want to aggregate it in this way?
--
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/6c2af7b5-816c-4661-a990-6e15c915a41e%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/CAHJKeLrbjb1s2CoTnk7XJMCoTPsiif97MT%2BZwHWQ1c27EocHAA%40mail.gmail.com.
Hi Matthias,I tried this today, and it got me part of the way there, but it’s not giving me quite what I want. I think I may be approaching this wrong.I recorded CPU utilization gauges into a histogram, as you suggested.When I take quantile(0.5, hist) I get the count of hosts that are less than 50% utilized, rather than the utilization of the median host. Can you help me understand what I’m doing wrong?J
On Fri, Jul 20, 2018 at 12:23 AM Matthias Rampke <m...@soundcloud.com> wrote:
What would you like to do with the histogram?For showing an overview of the state of a cluster, I like to throw collections of gauges into Grafana heat maps. This isn't very useful quantitatively (I can't get it to reliably count), but it is great for seeing at a glance if e.g. there is an outlier or load is rising across the cluster. Plotting quantiles or max/avg/min takes longer to interpret right.This is not at query time, but I suppose you could construct the histogram with a series of recording rules likehist{le="+Inf"} = count(gauge) or vector(0)hist{le="100"} = count(gauge <= 100) or vector(0)and so on. please excuse the old syntax, it's too early to write YAML on a touch keyboard./MR
On Fri, Jul 20, 2018, 08:45 Brian Brazil <brian.brazil@robustperception.io> wrote:
On Fri 20 Jul 2018, 00:47 , <jbu...@gmail.com> wrote:is there no way in prometheus to take a series of gauges (e.g. load average across all hosts) and then calculate a derived histogram from that at query time?
Look at the quantile aggregator. Though I'm not sure the result is meaningful for load average.Brian
--If not, what's the best workaround for this, outside of accompanying every histogram with a gauge just in case you might want to aggregate it in this way?
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6c2af7b5-816c-4661-a990-6e15c915a41e%40googlegroups.com.
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAHJKeLrbjb1s2CoTnk7XJMCoTPsiif97MT%2BZwHWQ1c27EocHAA%40mail.gmail.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABSx2R1npt%2BGVu0wTZW2LKC65dw0ZA4kgE%3DBFtkHb39_WWEepg%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.