Class DNSSDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.DNSSDConfig
-
- All Implemented Interfaces:
Editable<DNSSDConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DNSSDConfig extends Object implements Editable<DNSSDConfigBuilder>, 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 Summary
Constructors Constructor Description DNSSDConfig()No args constructor for use in serializationDNSSDConfig(List<String> names, Integer port, String refreshInterval, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DNSSDConfigBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getNames()names defines a list of DNS domain names to be queried.IntegergetPort()port defines the port to scrape metrics from.StringgetRefreshInterval()refreshInterval defines the time after which the provided names are refreshed.StringgetType()type defines the type of DNS query to perform.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNames(List<String> names)names defines a list of DNS domain names to be queried.voidsetPort(Integer port)port defines the port to scrape metrics from.voidsetRefreshInterval(String refreshInterval)refreshInterval defines the time after which the provided names are refreshed.voidsetType(String type)type defines the type of DNS query to perform.DNSSDConfigBuildertoBuilder()
-
-
-
Method Detail
-
setNames
public void setNames(List<String> names)
names defines a list of DNS domain names to be queried.
-
getPort
public Integer getPort()
port defines the port to scrape metrics from. If using the public IP address, this must Ignored for SRV records
-
setPort
public void setPort(Integer port)
port defines the port to scrape metrics from. If using the public IP address, this must Ignored for SRV records
-
getRefreshInterval
public String getRefreshInterval()
refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
-
setRefreshInterval
public void setRefreshInterval(String refreshInterval)
refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
-
getType
public String getType()
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
-
setType
public void setType(String 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
-
edit
public DNSSDConfigBuilder edit()
- Specified by:
editin interfaceEditable<DNSSDConfigBuilder>
-
toBuilder
public DNSSDConfigBuilder toBuilder()
-
-