Metric.
One named measurement with its kind, its unit and the labels it may carry
Figure 1Metricspecified
- kind
- definition
- scope
- platform
- key
- its name
- store
- postgres
- family
- observability
Fields#
| field | type | required | note |
|---|---|---|---|
name | text | yes | |
kind | one of counter | gauge | histogram | yes | |
unit | text | yes | seconds, bytes, requests, dollars; a metric without a unit fails the check |
labels | [text] | yes | from the label allow-list; never a free value |
what_it_measures | text | yes |
Routes that use it#
No route takes or returns Metric directly. The record holds it, and the objects that point at it reach it.