Make sure rendering config produces valid config
Fixes #2899 Signed-off-by: Goutham Veeramachaneni <goutham@boomerangcommerce.com>
This commit is contained in:
parent
3ed4fea58c
commit
98d20d5880
|
@ -1278,7 +1278,7 @@ func (a *RelabelAction) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||||
type RelabelConfig struct {
|
type RelabelConfig struct {
|
||||||
// A list of labels from which values are taken and concatenated
|
// A list of labels from which values are taken and concatenated
|
||||||
// with the configured separator in order.
|
// with the configured separator in order.
|
||||||
SourceLabels model.LabelNames `yaml:"source_labels,flow"`
|
SourceLabels model.LabelNames `yaml:"source_labels,flow,omitempty"`
|
||||||
// Separator is the string between concatenated values from the source labels.
|
// Separator is the string between concatenated values from the source labels.
|
||||||
Separator string `yaml:"separator,omitempty"`
|
Separator string `yaml:"separator,omitempty"`
|
||||||
// Regex against which the concatenation is matched.
|
// Regex against which the concatenation is matched.
|
||||||
|
|
Loading…
Reference in New Issue