mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-16 10:34:06 -08:00
3a204be6b7
* WIP: PromQL: Allow engine to return strings Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com> * Add test suggested by @roidelapluie Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com> * Fix typo in React UI Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com> * Fix parenthesis handling for functions and aggregator params Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com> * Add more tests Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com> * Fix React UI test Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
60 lines
660 B
Plaintext
60 lines
660 B
Plaintext
eval instant at 50m 12.34e6
|
|
12340000
|
|
|
|
eval instant at 50m 12.34e+6
|
|
12340000
|
|
|
|
eval instant at 50m 12.34e-6
|
|
0.00001234
|
|
|
|
eval instant at 50m 1+1
|
|
2
|
|
|
|
eval instant at 50m 1-1
|
|
0
|
|
|
|
eval instant at 50m 1 - -1
|
|
2
|
|
|
|
eval instant at 50m .2
|
|
0.2
|
|
|
|
eval instant at 50m +0.2
|
|
0.2
|
|
|
|
eval instant at 50m -0.2e-6
|
|
-0.0000002
|
|
|
|
eval instant at 50m +Inf
|
|
+Inf
|
|
|
|
eval instant at 50m inF
|
|
+Inf
|
|
|
|
eval instant at 50m -inf
|
|
-Inf
|
|
|
|
eval instant at 50m NaN
|
|
NaN
|
|
|
|
eval instant at 50m nan
|
|
NaN
|
|
|
|
eval instant at 50m 2.
|
|
2
|
|
|
|
eval instant at 50m 1 / 0
|
|
+Inf
|
|
|
|
eval instant at 50m ((1) / (0))
|
|
+Inf
|
|
|
|
eval instant at 50m -1 / 0
|
|
-Inf
|
|
|
|
eval instant at 50m 0 / 0
|
|
NaN
|
|
|
|
eval instant at 50m 1 % 0
|
|
NaN
|