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
5c55f50a
Commit
5c55f50a
authored
May 30, 2015
by
Brian Brazil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #102 from brian-brazil/increase
Document increase() function.
parents
615c1598
eb8a36fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
functions.md
content/docs/querying/functions.md
+18
-1
No files found.
content/docs/querying/functions.md
View file @
5c55f50a
...
...
@@ -149,6 +149,23 @@ 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.
## `increase()`
`increase(v range-vector)`
calculates the increase in the
time series in the range vector. Breaks in monotonicity (such as counter
resets due to target restarts) are automatically adjusted for.
The following example expression returns the number of HTTP requests as measured
over the last 5 minutes, per time series in the range vector:
```
increase(http_requests_total{job="api-server"}[5m])
```
`increase`
should only be used with counters.
`increase`
should be used
primarily for human readability, use
`rate`
for rules so that everything is
consistently per-second.
## `ln()`
`ln(v instant-vector)`
calculates the natural logarithm for all elements in
`v`
.
...
...
@@ -171,7 +188,7 @@ The special cases are equivalent to those in `ln`.
## `rate()`
`rate(v range-vector)`
calculate the per-second average rate of increase of the
`rate(v range-vector)`
calculate
s
the per-second average rate of increase of the
time series in the range vector. Breaks in monotonicity (such as counter
resets due to target restarts) are automatically adjusted for.
...
...
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