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
1f33ba17
Commit
1f33ba17
authored
Jul 26, 2016
by
beorn7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emphasize the cumulative nature of a histogram.
Link the relevant Wikipedia entry.
parent
2a3cd113
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
metric_types.md
content/docs/concepts/metric_types.md
+9
-7
histograms.md
content/docs/practices/histograms.md
+4
-2
No files found.
content/docs/concepts/metric_types.md
View file @
1f33ba17
...
...
@@ -55,13 +55,15 @@ during a scrape:
*
the
**total sum**
of all observed values, exposed as
`<basename>_sum`
*
the
**count**
of events that have been observed, exposed as
`<basename>_count`
(identical to
`<basename>_bucket{le="+Inf"}`
above)
Use the
[
`histogram_quantile()`
function](/docs/querying/functions/#histogram_quantile) to calculate
quantiles from histograms or even aggregations of histograms. A
histogram is also suitable to calculate an
[
Apdex
score](http://en.wikipedia.org/wiki/Apdex). See
[
histograms and
summaries](/docs/practices/histograms) for details of histogram usage
and differences to
[
summaries
](
#summary
)
.
Use the
[
`histogram_quantile()` function
](
/docs/querying/functions/#histogram_quantile
)
to calculate quantiles from histograms or even aggregations of histograms. A
histogram is also suitable to calculate an
[
Apdex score
](
http://en.wikipedia.org/wiki/Apdex
)
. When operating on buckets,
remember that the histogram is
[
cumulative
](
https://en.wikipedia.org/wiki/Histogram#Cumulative_histogram
)
. See
[
histograms and summaries
](
/docs/practices/histograms
)
for details of histogram
usage and differences to
[
summaries
](
#summary
)
.
Client library usage documentation for histograms:
...
...
content/docs/practices/histograms.md
View file @
1f33ba17
...
...
@@ -80,8 +80,10 @@ following expression yields the Apdex score for each job over the last
) / 2 / sum(rate(http_request_duration_seconds_count[5m])) by (job)
Note that we divide the sum of both buckets. The reason is that the histogram
buckets are cumulative. The
`le="0.3"`
bucket is also contained in the
`le="1.2"`
bucket; dividing it by 2 corrects for that.
buckets are
[
cumulative
](
https://en.wikipedia.org/wiki/Histogram#Cumulative_histogram
)
. The
`le="0.3"`
bucket is also contained in the
`le="1.2"`
bucket; dividing it by 2
corrects for that.
## Quantiles
...
...
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