Commit 25e19ac5 authored by Julius Volz's avatar Julius Volz

Merge pull request #98 from prometheus/document-changes-and-resets

Document changes() and resets() functions.
parents 1abb9008 04c67db2
......@@ -40,6 +40,12 @@ by sample value.
`ceil(v instant-vector)` rounds the sample values of all elements in `v` up to
the nearest integer.
## `changes()`
For each input time series, `changes(v range-vector)` returns the number of
times its value has changed within the provided time range as an instant
vector.
## `count_scalar()`
`count_scalar(v instant-vector)` returns the number of elements in a time series
......@@ -178,6 +184,15 @@ rate(http_requests_total{job="api-server"}[5m])
`rate` should only be used with counters.
## `resets()`
For each input time series, `resets(v range-vector)` returns the number of
counter resets within the provided time range as an instant vector. Any
decrease in the value between two consecutive samples is interpreted as a
counter reset.
`resets` should only be used with counters.
## `round()`
`round(v instant-vector, to_nearest=1 scalar)` rounds the sample values of all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment