Class DNSSDConfig

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<DNSSDConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class DNSSDConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<DNSSDConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    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
    See Also:
    Serialized Form
    • Constructor Detail

      • DNSSDConfig

        public DNSSDConfig()
        No args constructor for use in serialization
    • Method Detail

      • getNames

        public List<String> getNames()
        A list of DNS domain names to be queried.
      • setNames

        public void setNames​(List<String> names)
        A list of DNS domain names to be queried.
      • getPort

        public Integer getPort()
        The port number used if the query type is not SRV Ignored for SRV records
      • setPort

        public void setPort​(Integer port)
        The port number used if the query type is not SRV Ignored for SRV records
      • getRefreshInterval

        public String getRefreshInterval()
        RefreshInterval configures the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
      • setRefreshInterval

        public void setRefreshInterval​(String refreshInterval)
        RefreshInterval configures the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
      • getType

        public String getType()
        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

      • setType

        public void setType​(String type)
        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

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)