Is lower cased "+Inf", "-Inf", "NaN" allowed?

32 views
Skip to first unread message

Максим Кнышов

unread,
Feb 19, 2020, 2:33:10 AM2/19/20
to Prometheus Users
Hello!

Can i export metrics with lower "Inf", "-Inf", "NaN"?

- "inf" instead of "Inf" and "+Inf"
- "-inf" instead of "-Inf"
- "nan" instead of "NaN"

Thans.

Brian Brazil

unread,
Feb 19, 2020, 3:11:07 AM2/19/20
to Максим Кнышов, Prometheus Users
Yes, that should work. 

--

Julien Pivotto

unread,
Feb 19, 2020, 3:40:15 AM2/19/20
to Brian Brazil, Максим Кнышов, Prometheus Users
On 19 Feb 08:10, Brian Brazil wrote:
> On Wed, 19 Feb 2020 at 07:33, Максим Кнышов <babu...@gmail.com> wrote:
>
> > Hello!
> >
> > Can i export metrics with lower "Inf", "-Inf", "NaN"?
> >
> > - "inf" instead of "Inf" and "+Inf"
> > - "-inf" instead of "-Inf"
> > - "nan" instead of "NaN"
> >
>
> Yes, that should work.


Brian,

Is that true for openmetrics too?



--
(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits - https://www.inuits.eu
signature.asc

Brian Brazil

unread,
Feb 19, 2020, 3:42:22 AM2/19/20
to Julien Pivotto, Максим Кнышов, Prometheus Users
On Wed, 19 Feb 2020 at 08:40, Julien Pivotto <roidel...@inuits.eu> wrote:
On 19 Feb 08:10, Brian Brazil wrote:
> On Wed, 19 Feb 2020 at 07:33, Максим Кнышов <babu...@gmail.com> wrote:
>
> > Hello!
> >
> > Can i export metrics with lower "Inf", "-Inf", "NaN"?
> >
> > - "inf" instead of "Inf" and "+Inf"
> > - "-inf" instead of "-Inf"
> > - "nan" instead of "NaN"
> >
>
> Yes, that should work.


Brian,

Is that true for openmetrics too?

Yes. It's explicitly mentioned in the current draft spec, as various languages/runtimes vary here and using whatever the normal float rendering is should just work.

--

Al.

unread,
Feb 19, 2020, 4:00:53 AM2/19/20
to Prometheus Users

Yes, that should work. 


Thanks, Brian
Reply all
Reply to author
Forward
0 new messages