Prometheus does not have a built-in notion of units for time series sample
values, although there are conventions for putting unit suffixes into
metric names (see https://prometheus.io/docs/practices/naming/#metric-names
).

For quantile calculation, Prometheus does not need to know the unit at all
though - if the input is ms, the output will automatically be ms as well,
since units don't come into play anywhere in the quantile calculation.

Just when you display the resulting quantile, you have to know that it's
milliseconds (e.g. in Grafana you would configure the Y axis to interpret
values as milliseconds).

On Wed, Apr 29, 2020 at 2:11 PM Velmurugan C <[email protected]> wrote:

> I have grok exporter which takes the application log and provide the
> metrics to prometheus,
>
> Application log contains a part as "timetaken=100" where 100 in
> millisecond unit, Prometheus is getting that as timeTaken=100, for quantile
> calculation I need this to be in millisecond, how promethues will assume
> this as milliseconds?
>
> Where we need to mention this values as milliseconds ?
>
>
> Thanks..
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/e4c6e7f3-2187-4afc-be23-0d236b795e66%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/e4c6e7f3-2187-4afc-be23-0d236b795e66%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CA%2BT6Yoz6jgG6dVg01HT0%2BMnQ9Yq41h_ZkD%3DLU0%3DzZdA5V6Tf_Q%40mail.gmail.com.

Reply via email to