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
77f9f806
Commit
77f9f806
authored
Jan 05, 2016
by
Richard Hartmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
functions.md: Add cross-references to operators.md
parent
98798346
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 @
77f9f806
...
@@ -49,9 +49,10 @@ vector.
...
@@ -49,9 +49,10 @@ vector.
## `count_scalar()`
## `count_scalar()`
`count_scalar(v instant-vector)`
returns the number of elements in a time series
`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,
vector as a scalar. This is in contrast to the
`count()`
which always returns a vector (an empty one if the input vector is empty) and
[
aggregation operator
](
/docs/querying/operators/#aggregation-operators
)
, which
allows grouping by labels via a
`by`
clause.
always returns a vector (an empty one if the input vector is empty) and allows
grouping by labels via a
`by`
clause.
## `delta()`
## `delta()`
...
@@ -179,7 +180,8 @@ Use `rate` for alerts and slow-moving counters, as brief changes
...
@@ -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
in the rate can reset the
`FOR`
clause and graphs consisting entirely of rare
spikes are hard to read.
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`
),
or a function aggregating over time (any function ending in
`_over_time`
),
always take a
`irate()`
first, then aggregate. Otherwise
`irate()`
cannot detect
always take a
`irate()`
first, then aggregate. Otherwise
`irate()`
cannot detect
counter resets when your target restarts.
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