Expand description
label_replace and label_join over evaluated series, following Prometheus
evalLabelReplace, evalLabelJoin and mergeSeriesWithSameLabelset.
Structsยง
- Label
Rewrite - The label change of
label_replaceorlabel_join, checked and compiled once and applied to each series on its own. Series that end up with one label set are the callerโs to merge.
Enumsยง
- Change ๐
Staticsยง
- GROUP_
NAME ๐ - Go
regexp.Expandreads a group name as Unicode letters (L), decimal digits (Nd) and_, narrower thanchar::is_alphanumeric.
Functionsยง
- expand ๐
- Go
regexp.Expand, whose template syntax differs fromregex::Captures::expand: a numeric reference with a leading zero, like$01, or of more than nine digits is a group name. - label_
join label_join(v, dst, separator, src...):dstis set to the values ofsrcjoined byseparator, an absent label joining as the empty string.- label_
replace label_replace(v, dst, replacement, src, regex): whereregexmatches the whole value ofsrc,dstis set toreplacementwith$1,${name}and$$expanded.- rewrite_
all ๐ - set_
label ๐ - An empty value removes the label, as Prometheus label sets have no empty values.