File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,26 @@ const (
26
26
// timeseries.
27
27
MetricNameLabel LabelName = "__name__"
28
28
29
+ // AddressLabel is the name of the label that holds the address of
30
+ // a scrape target.
31
+ AddressLabel LabelName = "__address__"
32
+
29
33
// ReservedLabelPrefix is a prefix which is not legal in user-supplied
30
34
// label names.
31
35
ReservedLabelPrefix = "__"
32
36
37
+ // HiddenLabelPrefix is a prefix which is legal in user-supplied label names
38
+ // but will not appear in the eventual metrics.
39
+ // Reserved labels may be excepted from that rule.
40
+ HiddenLabelPrefix = "_"
41
+
33
42
// JobLabel is the label name indicating the job from which a timeseries
34
43
// was scraped.
35
44
JobLabel LabelName = "job"
36
45
46
+ // InstanceLabel is the label name used for the instance label.
47
+ InstanceLabel LabelName = "instance"
48
+
37
49
// BucketLabel is used for the label that defines the upper bound of a
38
50
// bucket of a histogram ("le" -> "less or equal").
39
51
BucketLabel = "le"
You can’t perform that action at this time.
0 commit comments