From 43449b0581bbc87c88eb9676f86371f3dde1879b Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 13 Aug 2015 10:39:21 +0100 Subject: [PATCH] config: Update tests/examples to use __tmp_ --- config/config_test.go | 4 ++-- config/testdata/conf.good.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/config_test.go b/config/config_test.go index 16ab2c6045..57fc64d57a 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -120,13 +120,13 @@ var expectedConf = &Config{ }, { SourceLabels: clientmodel.LabelNames{"__address__"}, - TargetLabel: "__hash", + TargetLabel: "__tmp_hash", Modulus: 8, Separator: ";", Action: RelabelHashMod, }, { - SourceLabels: clientmodel.LabelNames{"__hash"}, + SourceLabels: clientmodel.LabelNames{"__tmp_hash"}, Regex: &Regexp{*regexp.MustCompile("^1$")}, Separator: ";", Action: RelabelKeep, diff --git a/config/testdata/conf.good.yml b/config/testdata/conf.good.yml index 33475960fd..65b0ce6cdd 100644 --- a/config/testdata/conf.good.yml +++ b/config/testdata/conf.good.yml @@ -75,9 +75,9 @@ scrape_configs: action: drop - source_labels: [__address__] modulus: 8 - target_label: __hash + target_label: __tmp_hash action: hashmod - - source_labels: [__hash] + - source_labels: [__tmp_hash] regex: ^1$ action: keep