Skip to content

Commit 660ea6f

Browse files
Create Metric-Types.md
1 parent 0b9f7ec commit 660ea6f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

wiki/Metric-Types.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
There are four total metric types which are available for Prometheus use. These metrics are implemented in client libraries, but not used on the backed. Once scrapped the data is flattened and stored as untyped time series data.
2+
3+
## Counter
4+
A single value which can only increase. Used to track things like total number of requests
5+
## Gauge
6+
A single value which can increase and decrease. Used to track values over time (temperature) or an increasing value which may need to also decrease (successful sale that is then refunded).
7+
## Histogram
8+
Samples observations like request durations or sizes. These are broken up into three segments
9+
### Cumulative Counters
10+
Exposed as `<basename>_bucket{le="<upper inclusive bound>"}`. These are the singular samples that occur between scrapes.
11+
### Total Sum
12+
Exposed as `<basename>_sum`
13+
### Count of all events
14+
Exposed as `<basename>_count` or `<basename>_bucket{le="+Inf"}`
15+
## Summary
16+
Samples observations while also providing quartile data
17+
- streaming **φ-quantiles** (0 ≤ φ ≤ 1) of observed events, exposed as `<basename>{quantile="<φ>"}`
18+
- the **total sum** of all observed values, exposed as `<basename>_sum`
19+
- the **count** of events that have been observed, exposed as `<basename>_count`

0 commit comments

Comments
 (0)