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
ffac51f0
Commit
ffac51f0
authored
May 28, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #92 from stapelberg/sum-rate
document caveat about combining sum and rate
parents
c09a8b07
ac5bfe76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
functions.md
content/docs/querying/functions.md
+5
-0
No files found.
content/docs/querying/functions.md
View file @
ffac51f0
...
@@ -184,6 +184,11 @@ rate(http_requests_total{job="api-server"}[5m])
...
@@ -184,6 +184,11 @@ rate(http_requests_total{job="api-server"}[5m])
`rate`
should only be used with counters.
`rate`
should only be used with counters.
Note that when combining
`rate()`
with an aggregation operator (e.g.
`sum()`
)
or a function aggregating over time (any function ending in
`_over_time`
),
always take a
`rate()`
first, then aggregate. Otherwise
`rate()`
cannot detect
counter resets when your target restarts.
## `resets()`
## `resets()`
For each input time series,
`resets(v range-vector)`
returns the number of
For each input time series,
`resets(v range-vector)`
returns the number of
...
...
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