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
0acada74
Commit
0acada74
authored
Mar 25, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #54 from fabxc/fabxc/logexp
Add documentation for exp, ln, log2, and log10 functions.
parents
b9d86c73
40053901
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
functions.md
content/docs/querying/functions.md
+28
-0
No files found.
content/docs/querying/functions.md
View file @
0acada74
...
...
@@ -81,6 +81,14 @@ cpu_temp_celsius{host="zeus"} + deriv(cpu_temp_celsius{host="zeus"}[1h]) * 5 * 6
`drop_common_labels(instant-vector)`
drops all labels that have the same name
and value across all series in the input vector.
## `exp()`
`exp(v instant-vector)`
calculates the exponential function for all elements in
`v`
.
Special cases are:
*
`Exp(+Inf) = +Inf`
*
`Exp(NaN) = NaN`
## `floor()`
`floor(v instant-vector)`
rounds the sample values of all elements in
`v`
down
...
...
@@ -134,6 +142,26 @@ for quantiles located in the lowest bucket.
If
`b`
contains fewer than two buckets,
`NaN`
is returned. For φ < 0,
`-Inf`
is
returned. For φ > 1,
`+Inf`
is returned.
## `ln()`
`ln(v instant-vector)`
calculates the natural logarithm for all elements in
`v`
.
Special cases are:
*
`ln(+Inf) = +Inf`
*
`ln(0) = -Inf`
*
`ln(x < 0) = NaN`
*
`ln(NaN) = NaN`
## `log2()`
`log2(v instant-vector)`
calculates the binary logarithm for all elements in
`v`
.
The special cases are equivalent to those in
`ln`
.
## `log10()`
`log10(v instant-vector)`
calculates the decimal logarithm for all elements in
`v`
.
The special cases are equivalent to those in
`ln`
.
## `rate()`
`rate(v range-vector)`
calculate the per-second average rate of increase of 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