File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ Prometheus 0.14.0 allows you to specify multiple SRV records to be queried in a
147147single scrape configuration, and also provides service-discovery-specific meta
148148information that is helpful during the relabeling phase.
149149
150- When querying the the DNS-SRV records, a label named ` __meta_dns_srv_name ` is
150+ When querying the the DNS-SRV records, a label named ` __meta_dns_name ` is
151151attached to each target. Its value is set to the SRV record name for which it was
152152returned. If we have structured SRV record names like ` telemetry.<zone>.<job>.srv.example.org ` ,
153153we can extract relevant labels from it those names:
@@ -164,11 +164,11 @@ scrape_configs:
164164 - 'telemetry.us-east.auth.srv.example.org'
165165
166166 relabel_configs:
167- - source_labels: ['__meta_dns_srv_name ']
167+ - source_labels: ['__meta_dns_name ']
168168 regex: 'telemetry\.(.+?)\..+?\.srv\.example\.org'
169169 target_label: 'zone'
170170 replacement: '$1'
171- - source_labels: ['__meta_dns_srv_name ']
171+ - source_labels: ['__meta_dns_name ']
172172 regex: 'telemetry\..+?\.(.+?)\.srv\.example\.org'
173173 target_label: 'job'
174174 replacement: '$1'
You can’t perform that action at this time.
0 commit comments