mirror of
https://github.com/prometheus/prometheus
synced 2025-01-11 17:19:45 +00:00
prevent adding empty target when CNAME is encountered
Signed-off-by: Matt Berther <mattberther@users.noreply.github.com>
This commit is contained in:
parent
0fd5ed0648
commit
31e86ed4bc
@ -213,6 +213,7 @@ func (d *Discovery) refreshOne(ctx context.Context, name string, ch chan<- *targ
|
||||
target = hostPort(addr.AAAA.String(), d.port)
|
||||
case *dns.CNAME:
|
||||
// CNAME responses can occur with "Type: A" dns_sd_config requests.
|
||||
continue
|
||||
default:
|
||||
level.Warn(d.logger).Log("msg", "Invalid record", "record", record)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user