From 98d20d588081a97cfffd7fadefdc2289cc5c5b34 Mon Sep 17 00:00:00 2001 From: Goutham Veeramachaneni Date: Wed, 5 Jul 2017 16:09:29 +0200 Subject: [PATCH] Make sure rendering config produces valid config Fixes #2899 Signed-off-by: Goutham Veeramachaneni --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 93d2ecd4d..ca1a1d57d 100644 --- a/config/config.go +++ b/config/config.go @@ -1278,7 +1278,7 @@ func (a *RelabelAction) UnmarshalYAML(unmarshal func(interface{}) error) error { type RelabelConfig struct { // A list of labels from which values are taken and concatenated // 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 string `yaml:"separator,omitempty"` // Regex against which the concatenation is matched.