Skip to content

Commit 0a409d6

Browse files
authored
model: add constants for type and unit labels. (#801)
Useful to use e.g. in prometheus/prometheus#16784 Signed-off-by: bwplotka <[email protected]>
1 parent 75c3814 commit 0a409d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

model/labels.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ const (
3232
// MetricNameLabel is the label name indicating the metric name of a
3333
// timeseries.
3434
MetricNameLabel = "__name__"
35+
// MetricTypeLabel is the label name indicating the metric type of
36+
// timeseries as per the PROM-39 proposal.
37+
MetricTypeLabel = "__type__"
38+
// MetricUnitLabel is the label name indicating the metric unit of
39+
// timeseries as per the PROM-39 proposal.
40+
MetricUnitLabel = "__unit__"
3541

3642
// SchemeLabel is the name of the label that holds the scheme on which to
3743
// scrape a target.

0 commit comments

Comments
 (0)