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
5071bd23
Commit
5071bd23
authored
Jan 05, 2016
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #281 from RichiH/patch-3
operators.md: Switch order in operator precedence list
parents
e23674ac
0d25e3db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
operators.md
content/docs/querying/operators.md
+5
-5
No files found.
content/docs/querying/operators.md
View file @
5071bd23
...
@@ -207,13 +207,13 @@ applications, we could simply write:
...
@@ -207,13 +207,13 @@ applications, we could simply write:
## Binary operator precedence
## Binary operator precedence
The following list shows the precedence of binary operators in Prometheus, from
The following list shows the precedence of binary operators in Prometheus, from
lowest to high
est.
highest to low
est.
1.
`
OR
`
1.
`
*`
,
`/`
,
`%
`
2.
`
AND
`
2.
`
+`
,
`-
`
3.
`==`
,
`!=`
,
`<=`
,
`<`
,
`>=`
,
`>`
3.
`==`
,
`!=`
,
`<=`
,
`<`
,
`>=`
,
`>`
4.
`
+`
,
`-
`
4.
`
AND
`
5.
`
*`
,
`/`
,
`%
`
5.
`
OR
`
Operators on the same precedence level are left-associative. For example,
Operators on the same precedence level are left-associative. For example,
`2 * 3 % 2`
is equivalent to
`(2 * 3) % 2`
.
`2 * 3 % 2`
is equivalent to
`(2 * 3) % 2`
.
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