ScrapeConfig.spec.dnsSDConfigs[]
DNSSDConfig allows specifying a set of DNS domain names which are periodically queried to discover a list of targets. The DNS servers to be contacted are read from /etc/resolv.conf. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config
| Field / Type | Description |
|---|---|
names defines a list of DNS domain names to be queried.
| |
port | port defines the port to scrape metrics from. If using the public IP address, this must Ignored for SRV records
|
refreshInterval | refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
|
type | type defines the type of DNS query to perform. One of SRV, A, AAAA, MX or NS. If not set, Prometheus uses its default value. When set to NS, it requires Prometheus >= v2.49.0. When set to MX, it requires Prometheus >= v2.38.0
|