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
e23674ac
Commit
e23674ac
authored
Jan 05, 2016
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #280 from RichiH/patch-2
functions.md: Add cross-references to operators.md
parents
98798346
77f9f806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
functions.md
content/docs/querying/functions.md
+6
-4
No files found.
content/docs/querying/functions.md
View file @
e23674ac
...
...
@@ -49,9 +49,10 @@ vector.
## `count_scalar()`
`count_scalar(v instant-vector)`
returns the number of elements in a time series
vector as a scalar. This is in contrast to the
`count()`
aggregation operator,
which always returns a vector (an empty one if the input vector is empty) and
allows grouping by labels via a
`by`
clause.
vector as a scalar. This is in contrast to the
`count()`
[
aggregation operator
](
/docs/querying/operators/#aggregation-operators
)
, which
always returns a vector (an empty one if the input vector is empty) and allows
grouping by labels via a
`by`
clause.
## `delta()`
...
...
@@ -179,7 +180,8 @@ Use `rate` for alerts and slow-moving counters, as brief changes
in the rate can reset the
`FOR`
clause and graphs consisting entirely of rare
spikes are hard to read.
Note that when combining
`irate()`
with an aggregation operator (e.g.
`sum()`
)
Note that when combining
`irate()`
with an
[
aggregation operator
](
/docs/querying/operators/#aggregation-operators
)
(
e.g.
`sum()`
)
or a function aggregating over time (any function ending in
`_over_time`
),
always take a
`irate()`
first, then aggregate. Otherwise
`irate()`
cannot detect
counter resets when your target restarts.
...
...
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