Scale Intelligence■ Docs
Docs / The model / Metric

Metric.

One named measurement with its kind, its unit and the labels it may carry

Figure 1Metricspecified
METRICdefinition at platform scopenametextkindenum:counter|gauge|histogramseconds, bytes, requests, dollars; a metric without a unit fails the checkunittextfrom the label allow-list; never a free valuelabels[text]what_it_measurestextpoints at no other object
Metric is a definition at platform scope. The drawing shows its fields and the objects that they point at.
kind
definition
scope
platform
key
its name
store
postgres
family
observability

Fields#

fieldtyperequirednote
nametextyes
kindone of counter | gauge | histogramyes
unittextyesseconds, bytes, requests, dollars; a metric without a unit fails the check
labels[text]yesfrom the label allow-list; never a free value
what_it_measurestextyes

Routes that use it#

No route takes or returns Metric directly. The record holds it, and the objects that point at it reach it.