Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
d4748699
Commit
d4748699
authored
Oct 16, 2015
by
Brian Brazil
Committed by
Fabian Reinartz
Jan 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that 'bool' is required for scalar/scalar comparisons.
parent
ea22fd0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
operators.md
content/docs/querying/operators.md
+3
-5
No files found.
content/docs/querying/operators.md
View file @
d4748699
...
...
@@ -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`
for the value rather than filtering.
**Between two scalars**
, these operators result in another scalar that is
either
`0`
(
`false`
) or
`1`
(
`true`
), depending on the comparison result.
The
`bool`
modifier has no effect on this comparison, however it's
recommended to always provide it due to
[
upcoming changes
](
https://github.com/prometheus/prometheus/issues/482
)
.
**Between two scalars**
, the
`bool`
modifier must be provided and these
operators result in another scalar that is either
`0`
(
`false`
) or
`1`
(
`true`
), depending on the comparison result.
**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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment