mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Show correct error on wrong DNS response.
This commit is contained in:
parent
49d67fc834
commit
36184f3530
|
@ -114,7 +114,7 @@ func (p *sdTargetProvider) Targets() ([]Target, error) {
|
||||||
for _, record := range response.Answer {
|
for _, record := range response.Answer {
|
||||||
addr, ok := record.(*dns.SRV)
|
addr, ok := record.(*dns.SRV)
|
||||||
if !ok {
|
if !ok {
|
||||||
glog.Warningf("%s is not a valid SRV record", addr)
|
glog.Warningf("%q is not a valid SRV record", record)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Remove the final dot from rooted DNS names to make them look more usual.
|
// Remove the final dot from rooted DNS names to make them look more usual.
|
||||||
|
|
Loading…
Reference in a new issue