On 19.04.20 11:01, Matteo Olivi wrote:
> I have instrumented a Go application with Prometheus' client_golang v 0.9.2,
Probably unrelated to your problem, but that version is more than 16
months old. You might consider upgrading to the most recent version.
> histogram_quantile(0.99, rate
> (kos_agent_attachment_create_to_local_ifc_latency_seconds_bucket
> {waited_for_ipam="false", waited_for_local_ca="true"}[1m]))
My first intuition is that `[1m]` is way too short. You need a scrape
interval of 15s or less to make this a meaningful duration for the
`rate`. And even then, the observations you want to see have to happen
in this 1m timeframe.
What happens if to use 10m or 1h?
_However_, if really no observations happen in the 1m range, then the
result should be NaN rather than the lowest bucket. The latter would
happen if the only bucket that gets an increase is the lowest one.
To debug that, you could check the result without the
`histogram_quantile`, i.e. run the following:
rate(kos_agent_attachment_create_to_local_ifc_latency_seconds_bucket{waited_for_ipam="false",waited_for_local_ca="true"}[1m])
Then check which buckets have a value at all, which have a value of
zero, and which have a higher one.
> Prometheus binary is v2.6.1 and runs within a Kubernetes Pod (like the
> instrumented application).
Again probably unrelated, but it's highly recommended to upgrade to a
more recent version.
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in