add comment about interpolation

This commit is contained in:
Matti Savolainen 2016-10-19 00:42:49 +03:00
parent 3b8e7c1277
commit 7a36af1c85
1 changed files with 1 additions and 0 deletions

View File

@ -988,6 +988,7 @@ type RelabelConfig struct {
// Modulus to take of the hash of concatenated values from the source labels. // Modulus to take of the hash of concatenated values from the source labels.
Modulus uint64 `yaml:"modulus,omitempty"` Modulus uint64 `yaml:"modulus,omitempty"`
// The label to which the resulting string is written in a replacement. // The label to which the resulting string is written in a replacement.
// regex interpolation is allowed for the replace action.
TargetLabel string `yaml:"target_label,omitempty"` TargetLabel string `yaml:"target_label,omitempty"`
// Replacement is the regex replacement pattern to be used. // Replacement is the regex replacement pattern to be used.
Replacement string `yaml:"replacement,omitempty"` Replacement string `yaml:"replacement,omitempty"`