Commit d4748699 authored by Brian Brazil's avatar Brian Brazil Committed by Fabian Reinartz

Document that 'bool' is required for scalar/scalar comparisons.

parent ea22fd0f
...@@ -53,11 +53,9 @@ and vector/vector value pairs. By default they filter. Their behaviour can be ...@@ -53,11 +53,9 @@ and vector/vector value pairs. By default they filter. Their behaviour can be
modified by providing `bool` after the operator, which will return `0` or `1` modified by providing `bool` after the operator, which will return `0` or `1`
for the value rather than filtering. for the value rather than filtering.
**Between two scalars**, these operators result in another scalar that is **Between two scalars**, the `bool` modifier must be provided and these
either `0` (`false`) or `1` (`true`), depending on the comparison result. operators result in another scalar that is either `0` (`false`) or `1`
The `bool` modifier has no effect on this comparison, however it's (`true`), depending on the comparison result.
recommended to always provide it due to [upcoming changes](https://github.com/prometheus/prometheus/issues/482).
**Between an instant vector and a scalar**, these operators are applied to the **Between an instant vector and a scalar**, these operators are applied to the
value of every data sample in the vector, and vector elements between which the value of every data sample in the vector, and vector elements between which the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment