mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
config: Update tests/examples to use __tmp_
This commit is contained in:
parent
b5861b02ac
commit
43449b0581
|
@ -120,13 +120,13 @@ var expectedConf = &Config{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SourceLabels: clientmodel.LabelNames{"__address__"},
|
SourceLabels: clientmodel.LabelNames{"__address__"},
|
||||||
TargetLabel: "__hash",
|
TargetLabel: "__tmp_hash",
|
||||||
Modulus: 8,
|
Modulus: 8,
|
||||||
Separator: ";",
|
Separator: ";",
|
||||||
Action: RelabelHashMod,
|
Action: RelabelHashMod,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SourceLabels: clientmodel.LabelNames{"__hash"},
|
SourceLabels: clientmodel.LabelNames{"__tmp_hash"},
|
||||||
Regex: &Regexp{*regexp.MustCompile("^1$")},
|
Regex: &Regexp{*regexp.MustCompile("^1$")},
|
||||||
Separator: ";",
|
Separator: ";",
|
||||||
Action: RelabelKeep,
|
Action: RelabelKeep,
|
||||||
|
|
4
config/testdata/conf.good.yml
vendored
4
config/testdata/conf.good.yml
vendored
|
@ -75,9 +75,9 @@ scrape_configs:
|
||||||
action: drop
|
action: drop
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
modulus: 8
|
modulus: 8
|
||||||
target_label: __hash
|
target_label: __tmp_hash
|
||||||
action: hashmod
|
action: hashmod
|
||||||
- source_labels: [__hash]
|
- source_labels: [__tmp_hash]
|
||||||
regex: ^1$
|
regex: ^1$
|
||||||
action: keep
|
action: keep
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue