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
40f51855
Commit
40f51855
authored
Jul 21, 2016
by
Björn Rabenstein
Committed by
GitHub
Jul 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #487 from brian-brazil/quantile
Document quantile and quantile_over_time
parents
84a438a3
188e2a75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
functions.md
content/docs/querying/functions.md
+1
-0
operators.md
content/docs/querying/operators.md
+8
-7
No files found.
content/docs/querying/functions.md
View file @
40f51855
...
@@ -325,6 +325,7 @@ over time and return an instant vector with per-series aggregation results:
...
@@ -325,6 +325,7 @@ over time and return an instant vector with per-series aggregation results:
*
`max_over_time(range-vector)`
: the maximum value of all points in the specified interval.
*
`max_over_time(range-vector)`
: the maximum value of all points in the specified interval.
*
`sum_over_time(range-vector)`
: the sum of all values in the specified interval.
*
`sum_over_time(range-vector)`
: the sum of all values in the specified interval.
*
`count_over_time(range-vector)`
: the count of all values in the specified interval.
*
`count_over_time(range-vector)`
: the count of all values in the specified interval.
*
`quantile_over_time(scalar, range-vector)`
: the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval.
Note that all values in the specified interval have the same weight in the
Note that all values in the specified interval have the same weight in the
aggregation even if the values are not equally spaced throughout the interval.
aggregation even if the values are not equally spaced throughout the interval.
content/docs/querying/operators.md
View file @
40f51855
...
@@ -189,19 +189,20 @@ vector of fewer elements with aggregated values:
...
@@ -189,19 +189,20 @@ vector of fewer elements with aggregated values:
*
`count_values`
(count number of elements with the same value)
*
`count_values`
(count number of elements with the same value)
*
`bottomk`
(smallest k elements by sample value)
*
`bottomk`
(smallest k elements by sample value)
*
`topk`
(largest k elements by sample value)
*
`topk`
(largest k elements by sample value)
*
`quantile`
(calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions)
These operators can either be used to aggregate over
**all**
label dimensions
These operators can either be used to aggregate over
**all**
label dimensions
or preserve distinct dimensions by including a
`without`
or
`by`
clause.
or preserve distinct dimensions by including a
`without`
or
`by`
clause.
<aggr-op>([parameter,] <vector expression>) [without|by (<label list>)] [keep_common]
<aggr-op>([parameter,] <vector expression>) [without|by (<label list>)] [keep_common]
`parameter`
is only required for
`count_values`
,
`topk`
and
`bottomk`
.
`without`
`parameter`
is only required for
`count_values`
,
`quantile`
,
`topk`
and
removes the listed labels from the result vector, while all other labels ar
e
`bottomk`
.
`without`
removes the listed labels from the result vector, whil
e
preserved the output.
`by`
does the opposite and drops labels that are not
all other labels are preserved the output.
`by`
does the opposite and drops
l
isted in the
`by`
clause, even if their label values are identical between all
l
abels that are not listed in the
`by`
clause, even if their label values are
elements of the vector. The
`keep_common`
clause allows keeping those extra
identical between all elements of the vector. The
`keep_common`
clause allows
labels (labels that are identical between elements, but not in the
`by`
keeping those extra labels (labels that are identical between elements, but not
clause).
in the
`by`
clause).
`count_values`
outputs one time series per unique sample value. Each series has
`count_values`
outputs one time series per unique sample value. Each series has
an additional label. The name of that label is given by the aggregation
an additional label. The name of that label is given by the aggregation
...
...
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