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
d9a38c22
Commit
d9a38c22
authored
Aug 07, 2015
by
Brian Brazil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for predict_linear
parent
8bf820ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
functions.md
content/docs/querying/functions.md
+8
-7
No files found.
content/docs/querying/functions.md
View file @
d9a38c22
...
@@ -74,13 +74,6 @@ delta(cpu_temp_celsius{host="zeus"}[2h])
...
@@ -74,13 +74,6 @@ delta(cpu_temp_celsius{host="zeus"}[2h])
`deriv(v range-vector)`
calculates the derivative of the time series in a range
`deriv(v range-vector)`
calculates the derivative of the time series in a range
vector
`v`
, using
[
simple linear regression
](
http://en.wikipedia.org/wiki/Simple_linear_regression
)
.
vector
`v`
, using
[
simple linear regression
](
http://en.wikipedia.org/wiki/Simple_linear_regression
)
.
The following example expression returns the predicted CPU temperature in 5
minutes based on the previous hour of data:
```
cpu_temp_celsius{host="zeus"} + deriv(cpu_temp_celsius{host="zeus"}[1h]) * 5 * 60
```
`deriv`
should only be used with gauges.
`deriv`
should only be used with gauges.
## `drop_common_labels()`
## `drop_common_labels()`
...
@@ -186,6 +179,14 @@ The special cases are equivalent to those in `ln`.
...
@@ -186,6 +179,14 @@ The special cases are equivalent to those in `ln`.
`log10(v instant-vector)`
calculates the decimal logarithm for all elements in
`v`
.
`log10(v instant-vector)`
calculates the decimal logarithm for all elements in
`v`
.
The special cases are equivalent to those in
`ln`
.
The special cases are equivalent to those in
`ln`
.
## `predict_linear()`
`predict_linear(v range-vector, t scalar)`
predicts the value of time series
`t`
seconds from now, based on the range vector
`v`
, using
[
simple linear
regression](http://en.wikipedia.org/wiki/Simple_linear_regression).
`predict_linear`
should only be used with gauges.
## `rate()`
## `rate()`
`rate(v range-vector)`
calculates the per-second average rate of increase of the
`rate(v range-vector)`
calculates 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