mirror of
https://github.com/prometheus/prometheus
synced 2025-01-13 10:22:46 +00:00
Update two more __meta_dns_srv_name references.
Although they are only in examples/tests and don't affect anything, they could be confusing (the label has been renamed in the rest of the code a while ago).
This commit is contained in:
parent
738e6f41d4
commit
829a029dda
@ -83,7 +83,7 @@ var expectedConf = &Config{
|
|||||||
|
|
||||||
RelabelConfigs: []*RelabelConfig{
|
RelabelConfigs: []*RelabelConfig{
|
||||||
{
|
{
|
||||||
SourceLabels: model.LabelNames{"job", "__meta_dns_srv_name"},
|
SourceLabels: model.LabelNames{"job", "__meta_dns_name"},
|
||||||
TargetLabel: "job",
|
TargetLabel: "job",
|
||||||
Separator: ";",
|
Separator: ";",
|
||||||
Regex: MustNewRegexp("(.*)some-[regex]"),
|
Regex: MustNewRegexp("(.*)some-[regex]"),
|
||||||
|
2
config/testdata/conf.good.yml
vendored
2
config/testdata/conf.good.yml
vendored
@ -39,7 +39,7 @@ scrape_configs:
|
|||||||
your: label
|
your: label
|
||||||
|
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [job, __meta_dns_srv_name]
|
- source_labels: [job, __meta_dns_name]
|
||||||
regex: (.*)some-[regex]
|
regex: (.*)some-[regex]
|
||||||
target_label: job
|
target_label: job
|
||||||
replacement: foo-${1}
|
replacement: foo-${1}
|
||||||
|
Loading…
Reference in New Issue
Block a user