prometheus operator v0.71.2

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

4 fields
ScrapeConfig.spec.dnsSDConfigs[] fields and descriptions
Field / TypeDescription
string[] required

A list of DNS domain names to be queried.

  • minItems: 1
port
integer

The port number used if the query type is not SRV Ignored for SRV records

refreshInterval
string

RefreshInterval configures the time after which the provided names are refreshed. If not set, Prometheus uses its default value.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
type
string

The type of DNS query to perform. One of SRV, A, AAAA or MX. If not set, Prometheus uses its default value.

  • enum: ["SRV","A","AAAA","MX"]