Add constants for instance/address labels and hidden prefix.
This commit is contained in:
parent
692492e54b
commit
37a1f3ea97
|
@ -26,14 +26,26 @@ const (
|
||||||
// timeseries.
|
// timeseries.
|
||||||
MetricNameLabel LabelName = "__name__"
|
MetricNameLabel LabelName = "__name__"
|
||||||
|
|
||||||
|
// AddressLabel is the name of the label that holds the address of
|
||||||
|
// a scrape target.
|
||||||
|
AddressLabel LabelName = "__address__"
|
||||||
|
|
||||||
// ReservedLabelPrefix is a prefix which is not legal in user-supplied
|
// ReservedLabelPrefix is a prefix which is not legal in user-supplied
|
||||||
// label names.
|
// label names.
|
||||||
ReservedLabelPrefix = "__"
|
ReservedLabelPrefix = "__"
|
||||||
|
|
||||||
|
// HiddenLabelPrefix is a prefix which is legal in user-supplied label names
|
||||||
|
// but will not appear in the eventual metrics.
|
||||||
|
// Reserved labels may be excepted from that rule.
|
||||||
|
HiddenLabelPrefix = "_"
|
||||||
|
|
||||||
// JobLabel is the label name indicating the job from which a timeseries
|
// JobLabel is the label name indicating the job from which a timeseries
|
||||||
// was scraped.
|
// was scraped.
|
||||||
JobLabel LabelName = "job"
|
JobLabel LabelName = "job"
|
||||||
|
|
||||||
|
// InstanceLabel is the label name used for the instance label.
|
||||||
|
InstanceLabel LabelName = "instance"
|
||||||
|
|
||||||
// BucketLabel is used for the label that defines the upper bound of a
|
// BucketLabel is used for the label that defines the upper bound of a
|
||||||
// bucket of a histogram ("le" -> "less or equal").
|
// bucket of a histogram ("le" -> "less or equal").
|
||||||
BucketLabel = "le"
|
BucketLabel = "le"
|
||||||
|
|
Loading…
Reference in New Issue