Browse Source

config: Update tests/examples to use __tmp_

pull/983/head
Brian Brazil 9 years ago
parent
commit
43449b0581
  1. 4
      config/config_test.go
  2. 4
      config/testdata/conf.good.yml

4
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,

4
config/testdata/conf.good.yml vendored

@ -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

Loading…
Cancel
Save