prometheus operator v0.93.1

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

names defines a list of DNS domain names to be queried.

  • minItems: 1
port
integer

port defines the port to scrape metrics from. If using the public IP address, this must Ignored for SRV records

  • format: int32
  • minimum: 0
  • maximum: 65535
refreshInterval
string

refreshInterval defines 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

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

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