Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions model/labelname.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const (
// label names.
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 = "_"
// MetaLabelPrefix is a prefix for labels that provide meta information.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add something like "...that provide meta-information useful during target relabeling, but will not be attached to time series themselves."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certain yes to the final part. Meta is completely generic though and we might use it outside of SD/relabelling in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

// Labels with this prefix are used for intermediate label processing and
// will not be attached to time series.
MetaLabelPrefix = "__meta_"

// JobLabel is the label name indicating the job from which a timeseries
// was scraped.
Expand Down