Class ScrapeConfigSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.ScrapeConfigSpec
-
- All Implemented Interfaces:
Editable<ScrapeConfigSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ScrapeConfigSpec extends Object implements Editable<ScrapeConfigSpecBuilder>, KubernetesResource
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScrapeConfigSpec()No args constructor for use in serializationScrapeConfigSpec(SafeAuthorization authorization, List<AzureSDConfig> azureSDConfigs, BasicAuth basicAuth, String bodySizeLimit, List<ConsulSDConfig> consulSDConfigs, Boolean convertClassicHistogramsToNHCB, List<DigitalOceanSDConfig> digitalOceanSDConfigs, List<DNSSDConfig> dnsSDConfigs, List<DockerSDConfig> dockerSDConfigs, List<DockerSwarmSDConfig> dockerSwarmSDConfigs, List<EC2SDConfig> ec2SDConfigs, Boolean enableCompression, Boolean enableHTTP2, List<EurekaSDConfig> eurekaSDConfigs, String fallbackScrapeProtocol, List<FileSDConfig> fileSDConfigs, List<GCESDConfig> gceSDConfigs, List<HetznerSDConfig> hetznerSDConfigs, Boolean honorLabels, Boolean honorTimestamps, List<HTTPSDConfig> httpSDConfigs, List<IonosSDConfig> ionosSDConfigs, String jobName, Long keepDroppedTargets, List<KubernetesSDConfig> kubernetesSDConfigs, List<KumaSDConfig> kumaSDConfigs, Long labelLimit, Long labelNameLengthLimit, Long labelValueLengthLimit, List<LightSailSDConfig> lightSailSDConfigs, List<LinodeSDConfig> linodeSDConfigs, List<RelabelConfig> metricRelabelings, String metricsPath, String nameEscapingScheme, String nameValidationScheme, Long nativeHistogramBucketLimit, Quantity nativeHistogramMinBucketFactor, String noProxy, List<NomadSDConfig> nomadSDConfigs, OAuth2 oauth2, List<OpenStackSDConfig> openstackSDConfigs, List<OVHCloudSDConfig> ovhcloudSDConfigs, Map<String,List<String>> params, Map<String,List<SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, List<PuppetDBSDConfig> puppetDBSDConfigs, List<RelabelConfig> relabelings, Long sampleLimit, List<ScalewaySDConfig> scalewaySDConfigs, String scheme, String scrapeClass, Boolean scrapeClassicHistograms, String scrapeInterval, Boolean scrapeNativeHistograms, List<String> scrapeProtocols, String scrapeTimeout, List<StaticConfig> staticConfigs, Long targetLimit, SafeTLSConfig tlsConfig, Boolean trackTimestampsStaleness)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScrapeConfigSpecBuilderedit()Map<String,Object>getAdditionalProperties()SafeAuthorizationgetAuthorization()ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.List<AzureSDConfig>getAzureSDConfigs()azureSDConfigs defines a list of Azure service discovery configurations.BasicAuthgetBasicAuth()ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.StringgetBodySizeLimit()bodySizeLimit defines a per-scrape limit on the size of the uncompressed response body that will be accepted by Prometheus.List<ConsulSDConfig>getConsulSDConfigs()consulSDConfigs defines a list of Consul service discovery configurations.BooleangetConvertClassicHistogramsToNHCB()convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.List<DigitalOceanSDConfig>getDigitalOceanSDConfigs()digitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations.List<DNSSDConfig>getDnsSDConfigs()dnsSDConfigs defines a list of DNS service discovery configurations.List<DockerSDConfig>getDockerSDConfigs()dockerSDConfigs defines a list of Docker service discovery configurations.List<DockerSwarmSDConfig>getDockerSwarmSDConfigs()dockerSwarmSDConfigs defines a list of Dockerswarm service discovery configurations.List<EC2SDConfig>getEc2SDConfigs()ec2SDConfigs defines a list of EC2 service discovery configurations.BooleangetEnableCompression()enableCompression when false, Prometheus will request uncompressed response from the scraped target.BooleangetEnableHTTP2()enableHTTP2 defines whether to enable HTTP2.List<EurekaSDConfig>getEurekaSDConfigs()eurekaSDConfigs defines a list of Eureka service discovery configurations.StringgetFallbackScrapeProtocol()fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.List<FileSDConfig>getFileSDConfigs()fileSDConfigs defines a list of file service discovery configurations.List<GCESDConfig>getGceSDConfigs()gceSDConfigs defines a list of GCE service discovery configurations.List<HetznerSDConfig>getHetznerSDConfigs()hetznerSDConfigs defines a list of Hetzner service discovery configurations.BooleangetHonorLabels()honorLabels defines when true the metric's labels when they collide with the target's labels.BooleangetHonorTimestamps()honorTimestamps defines whether Prometheus preserves the timestamps when exposed by the target.List<HTTPSDConfig>getHttpSDConfigs()httpSDConfigs defines a list of HTTP service discovery configurations.List<IonosSDConfig>getIonosSDConfigs()ionosSDConfigs defines a list of IONOS service discovery configurations.StringgetJobName()jobName defines the value of the `job` label assigned to the scraped metrics by default.LonggetKeepDroppedTargets()keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.List<KubernetesSDConfig>getKubernetesSDConfigs()kubernetesSDConfigs defines a list of Kubernetes service discovery configurations.List<KumaSDConfig>getKumaSDConfigs()kumaSDConfigs defines a list of Kuma service discovery configurations.LonggetLabelLimit()labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample.LonggetLabelNameLengthLimit()labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample.LonggetLabelValueLengthLimit()labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample.List<LightSailSDConfig>getLightSailSDConfigs()lightSailSDConfigs defines a list of Lightsail service discovery configurations.List<LinodeSDConfig>getLinodeSDConfigs()linodeSDConfigs defines a list of Linode service discovery configurations.List<RelabelConfig>getMetricRelabelings()metricRelabelings defines the metricRelabelings to apply to samples before ingestion.StringgetMetricsPath()metricsPath defines the HTTP path to scrape for metrics.StringgetNameEscapingScheme()nameEscapingScheme defines the metric name escaping mode to request through content negotiation.StringgetNameValidationScheme()nameValidationScheme defines the validation scheme for metric and label names.LonggetNativeHistogramBucketLimit()nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.QuantitygetNativeHistogramMinBucketFactor()ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.List<NomadSDConfig>getNomadSDConfigs()nomadSDConfigs defines a list of Nomad service discovery configurations.StringgetNoProxy()noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.OAuth2getOauth2()ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.List<OpenStackSDConfig>getOpenstackSDConfigs()openstackSDConfigs defines a list of OpenStack service discovery configurations.List<OVHCloudSDConfig>getOvhcloudSDConfigs()ovhcloudSDConfigs defines a list of OVHcloud service discovery configurations.Map<String,List<String>>getParams()params defines optional HTTP URL parametersMap<String,List<SecretKeySelector>>getProxyConnectHeader()proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.BooleangetProxyFromEnvironment()proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).StringgetProxyUrl()proxyUrl defines the HTTP proxy server to use.List<PuppetDBSDConfig>getPuppetDBSDConfigs()puppetDBSDConfigs defines a list of PuppetDB service discovery configurations.List<RelabelConfig>getRelabelings()relabelings defines how to rewrite the target's labels before scraping.LonggetSampleLimit()sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.List<ScalewaySDConfig>getScalewaySDConfigs()scalewaySDConfigs defines a list of Scaleway instances and baremetal service discovery configurations.StringgetScheme()scheme defines the protocol scheme used for requests.StringgetScrapeClass()scrapeClass defines the scrape class to apply.BooleangetScrapeClassicHistograms()scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram.StringgetScrapeInterval()scrapeInterval defines the interval between consecutive scrapes.BooleangetScrapeNativeHistograms()scrapeNativeHistograms defines whether to enable scraping of native histograms.List<String>getScrapeProtocols()scrapeProtocols defines the protocols to negotiate during a scrape.StringgetScrapeTimeout()scrapeTimeout defines the number of seconds to wait until a scrape request times out.List<StaticConfig>getStaticConfigs()staticConfigs defines a list of static targets with a common label set.LonggetTargetLimit()targetLimit defines a limit on the number of scraped targets that will be accepted.SafeTLSConfiggetTlsConfig()ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.BooleangetTrackTimestampsStaleness()trackTimestampsStaleness defines whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthorization(SafeAuthorization authorization)ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.voidsetAzureSDConfigs(List<AzureSDConfig> azureSDConfigs)azureSDConfigs defines a list of Azure service discovery configurations.voidsetBasicAuth(BasicAuth basicAuth)ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.voidsetBodySizeLimit(String bodySizeLimit)bodySizeLimit defines a per-scrape limit on the size of the uncompressed response body that will be accepted by Prometheus.voidsetConsulSDConfigs(List<ConsulSDConfig> consulSDConfigs)consulSDConfigs defines a list of Consul service discovery configurations.voidsetConvertClassicHistogramsToNHCB(Boolean convertClassicHistogramsToNHCB)convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.voidsetDigitalOceanSDConfigs(List<DigitalOceanSDConfig> digitalOceanSDConfigs)digitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations.voidsetDnsSDConfigs(List<DNSSDConfig> dnsSDConfigs)dnsSDConfigs defines a list of DNS service discovery configurations.voidsetDockerSDConfigs(List<DockerSDConfig> dockerSDConfigs)dockerSDConfigs defines a list of Docker service discovery configurations.voidsetDockerSwarmSDConfigs(List<DockerSwarmSDConfig> dockerSwarmSDConfigs)dockerSwarmSDConfigs defines a list of Dockerswarm service discovery configurations.voidsetEc2SDConfigs(List<EC2SDConfig> ec2SDConfigs)ec2SDConfigs defines a list of EC2 service discovery configurations.voidsetEnableCompression(Boolean enableCompression)enableCompression when false, Prometheus will request uncompressed response from the scraped target.voidsetEnableHTTP2(Boolean enableHTTP2)enableHTTP2 defines whether to enable HTTP2.voidsetEurekaSDConfigs(List<EurekaSDConfig> eurekaSDConfigs)eurekaSDConfigs defines a list of Eureka service discovery configurations.voidsetFallbackScrapeProtocol(String fallbackScrapeProtocol)fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.voidsetFileSDConfigs(List<FileSDConfig> fileSDConfigs)fileSDConfigs defines a list of file service discovery configurations.voidsetGceSDConfigs(List<GCESDConfig> gceSDConfigs)gceSDConfigs defines a list of GCE service discovery configurations.voidsetHetznerSDConfigs(List<HetznerSDConfig> hetznerSDConfigs)hetznerSDConfigs defines a list of Hetzner service discovery configurations.voidsetHonorLabels(Boolean honorLabels)honorLabels defines when true the metric's labels when they collide with the target's labels.voidsetHonorTimestamps(Boolean honorTimestamps)honorTimestamps defines whether Prometheus preserves the timestamps when exposed by the target.voidsetHttpSDConfigs(List<HTTPSDConfig> httpSDConfigs)httpSDConfigs defines a list of HTTP service discovery configurations.voidsetIonosSDConfigs(List<IonosSDConfig> ionosSDConfigs)ionosSDConfigs defines a list of IONOS service discovery configurations.voidsetJobName(String jobName)jobName defines the value of the `job` label assigned to the scraped metrics by default.voidsetKeepDroppedTargets(Long keepDroppedTargets)keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.voidsetKubernetesSDConfigs(List<KubernetesSDConfig> kubernetesSDConfigs)kubernetesSDConfigs defines a list of Kubernetes service discovery configurations.voidsetKumaSDConfigs(List<KumaSDConfig> kumaSDConfigs)kumaSDConfigs defines a list of Kuma service discovery configurations.voidsetLabelLimit(Long labelLimit)labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample.voidsetLabelNameLengthLimit(Long labelNameLengthLimit)labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample.voidsetLabelValueLengthLimit(Long labelValueLengthLimit)labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample.voidsetLightSailSDConfigs(List<LightSailSDConfig> lightSailSDConfigs)lightSailSDConfigs defines a list of Lightsail service discovery configurations.voidsetLinodeSDConfigs(List<LinodeSDConfig> linodeSDConfigs)linodeSDConfigs defines a list of Linode service discovery configurations.voidsetMetricRelabelings(List<RelabelConfig> metricRelabelings)metricRelabelings defines the metricRelabelings to apply to samples before ingestion.voidsetMetricsPath(String metricsPath)metricsPath defines the HTTP path to scrape for metrics.voidsetNameEscapingScheme(String nameEscapingScheme)nameEscapingScheme defines the metric name escaping mode to request through content negotiation.voidsetNameValidationScheme(String nameValidationScheme)nameValidationScheme defines the validation scheme for metric and label names.voidsetNativeHistogramBucketLimit(Long nativeHistogramBucketLimit)nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.voidsetNativeHistogramMinBucketFactor(Quantity nativeHistogramMinBucketFactor)ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.voidsetNomadSDConfigs(List<NomadSDConfig> nomadSDConfigs)nomadSDConfigs defines a list of Nomad service discovery configurations.voidsetNoProxy(String noProxy)noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.voidsetOauth2(OAuth2 oauth2)ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.voidsetOpenstackSDConfigs(List<OpenStackSDConfig> openstackSDConfigs)openstackSDConfigs defines a list of OpenStack service discovery configurations.voidsetOvhcloudSDConfigs(List<OVHCloudSDConfig> ovhcloudSDConfigs)ovhcloudSDConfigs defines a list of OVHcloud service discovery configurations.voidsetParams(Map<String,List<String>> params)params defines optional HTTP URL parametersvoidsetProxyConnectHeader(Map<String,List<SecretKeySelector>> proxyConnectHeader)proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.voidsetProxyFromEnvironment(Boolean proxyFromEnvironment)proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).voidsetProxyUrl(String proxyUrl)proxyUrl defines the HTTP proxy server to use.voidsetPuppetDBSDConfigs(List<PuppetDBSDConfig> puppetDBSDConfigs)puppetDBSDConfigs defines a list of PuppetDB service discovery configurations.voidsetRelabelings(List<RelabelConfig> relabelings)relabelings defines how to rewrite the target's labels before scraping.voidsetSampleLimit(Long sampleLimit)sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.voidsetScalewaySDConfigs(List<ScalewaySDConfig> scalewaySDConfigs)scalewaySDConfigs defines a list of Scaleway instances and baremetal service discovery configurations.voidsetScheme(String scheme)scheme defines the protocol scheme used for requests.voidsetScrapeClass(String scrapeClass)scrapeClass defines the scrape class to apply.voidsetScrapeClassicHistograms(Boolean scrapeClassicHistograms)scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram.voidsetScrapeInterval(String scrapeInterval)scrapeInterval defines the interval between consecutive scrapes.voidsetScrapeNativeHistograms(Boolean scrapeNativeHistograms)scrapeNativeHistograms defines whether to enable scraping of native histograms.voidsetScrapeProtocols(List<String> scrapeProtocols)scrapeProtocols defines the protocols to negotiate during a scrape.voidsetScrapeTimeout(String scrapeTimeout)scrapeTimeout defines the number of seconds to wait until a scrape request times out.voidsetStaticConfigs(List<StaticConfig> staticConfigs)staticConfigs defines a list of static targets with a common label set.voidsetTargetLimit(Long targetLimit)targetLimit defines a limit on the number of scraped targets that will be accepted.voidsetTlsConfig(SafeTLSConfig tlsConfig)ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.voidsetTrackTimestampsStaleness(Boolean trackTimestampsStaleness)trackTimestampsStaleness defines whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data.ScrapeConfigSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ScrapeConfigSpec
public ScrapeConfigSpec()
No args constructor for use in serialization
-
ScrapeConfigSpec
public ScrapeConfigSpec(SafeAuthorization authorization, List<AzureSDConfig> azureSDConfigs, BasicAuth basicAuth, String bodySizeLimit, List<ConsulSDConfig> consulSDConfigs, Boolean convertClassicHistogramsToNHCB, List<DigitalOceanSDConfig> digitalOceanSDConfigs, List<DNSSDConfig> dnsSDConfigs, List<DockerSDConfig> dockerSDConfigs, List<DockerSwarmSDConfig> dockerSwarmSDConfigs, List<EC2SDConfig> ec2SDConfigs, Boolean enableCompression, Boolean enableHTTP2, List<EurekaSDConfig> eurekaSDConfigs, String fallbackScrapeProtocol, List<FileSDConfig> fileSDConfigs, List<GCESDConfig> gceSDConfigs, List<HetznerSDConfig> hetznerSDConfigs, Boolean honorLabels, Boolean honorTimestamps, List<HTTPSDConfig> httpSDConfigs, List<IonosSDConfig> ionosSDConfigs, String jobName, Long keepDroppedTargets, List<KubernetesSDConfig> kubernetesSDConfigs, List<KumaSDConfig> kumaSDConfigs, Long labelLimit, Long labelNameLengthLimit, Long labelValueLengthLimit, List<LightSailSDConfig> lightSailSDConfigs, List<LinodeSDConfig> linodeSDConfigs, List<RelabelConfig> metricRelabelings, String metricsPath, String nameEscapingScheme, String nameValidationScheme, Long nativeHistogramBucketLimit, Quantity nativeHistogramMinBucketFactor, String noProxy, List<NomadSDConfig> nomadSDConfigs, OAuth2 oauth2, List<OpenStackSDConfig> openstackSDConfigs, List<OVHCloudSDConfig> ovhcloudSDConfigs, Map<String,List<String>> params, Map<String,List<SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, List<PuppetDBSDConfig> puppetDBSDConfigs, List<RelabelConfig> relabelings, Long sampleLimit, List<ScalewaySDConfig> scalewaySDConfigs, String scheme, String scrapeClass, Boolean scrapeClassicHistograms, String scrapeInterval, Boolean scrapeNativeHistograms, List<String> scrapeProtocols, String scrapeTimeout, List<StaticConfig> staticConfigs, Long targetLimit, SafeTLSConfig tlsConfig, Boolean trackTimestampsStaleness)
-
-
Method Detail
-
getAuthorization
public SafeAuthorization getAuthorization()
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
setAuthorization
public void setAuthorization(SafeAuthorization authorization)
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
getAzureSDConfigs
public List<AzureSDConfig> getAzureSDConfigs()
azureSDConfigs defines a list of Azure service discovery configurations.
-
setAzureSDConfigs
public void setAzureSDConfigs(List<AzureSDConfig> azureSDConfigs)
azureSDConfigs defines a list of Azure service discovery configurations.
-
getBasicAuth
public BasicAuth getBasicAuth()
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
setBasicAuth
public void setBasicAuth(BasicAuth basicAuth)
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
getBodySizeLimit
public String getBodySizeLimit()
bodySizeLimit defines a per-scrape limit on the size of the uncompressed response body that will be accepted by Prometheus. Targets responding with a body larger than this many bytes will cause the scrape to fail.It requires Prometheus >= v2.28.0.
-
setBodySizeLimit
public void setBodySizeLimit(String bodySizeLimit)
bodySizeLimit defines a per-scrape limit on the size of the uncompressed response body that will be accepted by Prometheus. Targets responding with a body larger than this many bytes will cause the scrape to fail.It requires Prometheus >= v2.28.0.
-
getConsulSDConfigs
public List<ConsulSDConfig> getConsulSDConfigs()
consulSDConfigs defines a list of Consul service discovery configurations.
-
setConsulSDConfigs
public void setConsulSDConfigs(List<ConsulSDConfig> consulSDConfigs)
consulSDConfigs defines a list of Consul service discovery configurations.
-
getConvertClassicHistogramsToNHCB
public Boolean getConvertClassicHistogramsToNHCB()
convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
-
setConvertClassicHistogramsToNHCB
public void setConvertClassicHistogramsToNHCB(Boolean convertClassicHistogramsToNHCB)
convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
-
getDigitalOceanSDConfigs
public List<DigitalOceanSDConfig> getDigitalOceanSDConfigs()
digitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations.
-
setDigitalOceanSDConfigs
public void setDigitalOceanSDConfigs(List<DigitalOceanSDConfig> digitalOceanSDConfigs)
digitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations.
-
getDnsSDConfigs
public List<DNSSDConfig> getDnsSDConfigs()
dnsSDConfigs defines a list of DNS service discovery configurations.
-
setDnsSDConfigs
public void setDnsSDConfigs(List<DNSSDConfig> dnsSDConfigs)
dnsSDConfigs defines a list of DNS service discovery configurations.
-
getDockerSDConfigs
public List<DockerSDConfig> getDockerSDConfigs()
dockerSDConfigs defines a list of Docker service discovery configurations.
-
setDockerSDConfigs
public void setDockerSDConfigs(List<DockerSDConfig> dockerSDConfigs)
dockerSDConfigs defines a list of Docker service discovery configurations.
-
getDockerSwarmSDConfigs
public List<DockerSwarmSDConfig> getDockerSwarmSDConfigs()
dockerSwarmSDConfigs defines a list of Dockerswarm service discovery configurations.
-
setDockerSwarmSDConfigs
public void setDockerSwarmSDConfigs(List<DockerSwarmSDConfig> dockerSwarmSDConfigs)
dockerSwarmSDConfigs defines a list of Dockerswarm service discovery configurations.
-
getEc2SDConfigs
public List<EC2SDConfig> getEc2SDConfigs()
ec2SDConfigs defines a list of EC2 service discovery configurations.
-
setEc2SDConfigs
public void setEc2SDConfigs(List<EC2SDConfig> ec2SDConfigs)
ec2SDConfigs defines a list of EC2 service discovery configurations.
-
getEnableCompression
public Boolean getEnableCompression()
enableCompression when false, Prometheus will request uncompressed response from the scraped target.It requires Prometheus >= v2.49.0.
If unset, Prometheus uses true by default.
-
setEnableCompression
public void setEnableCompression(Boolean enableCompression)
enableCompression when false, Prometheus will request uncompressed response from the scraped target.It requires Prometheus >= v2.49.0.
If unset, Prometheus uses true by default.
-
getEnableHTTP2
public Boolean getEnableHTTP2()
enableHTTP2 defines whether to enable HTTP2.
-
setEnableHTTP2
public void setEnableHTTP2(Boolean enableHTTP2)
enableHTTP2 defines whether to enable HTTP2.
-
getEurekaSDConfigs
public List<EurekaSDConfig> getEurekaSDConfigs()
eurekaSDConfigs defines a list of Eureka service discovery configurations.
-
setEurekaSDConfigs
public void setEurekaSDConfigs(List<EurekaSDConfig> eurekaSDConfigs)
eurekaSDConfigs defines a list of Eureka service discovery configurations.
-
getFallbackScrapeProtocol
public String getFallbackScrapeProtocol()
fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.It requires Prometheus >= v3.0.0.
-
setFallbackScrapeProtocol
public void setFallbackScrapeProtocol(String fallbackScrapeProtocol)
fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.It requires Prometheus >= v3.0.0.
-
getFileSDConfigs
public List<FileSDConfig> getFileSDConfigs()
fileSDConfigs defines a list of file service discovery configurations.
-
setFileSDConfigs
public void setFileSDConfigs(List<FileSDConfig> fileSDConfigs)
fileSDConfigs defines a list of file service discovery configurations.
-
getGceSDConfigs
public List<GCESDConfig> getGceSDConfigs()
gceSDConfigs defines a list of GCE service discovery configurations.
-
setGceSDConfigs
public void setGceSDConfigs(List<GCESDConfig> gceSDConfigs)
gceSDConfigs defines a list of GCE service discovery configurations.
-
getHetznerSDConfigs
public List<HetznerSDConfig> getHetznerSDConfigs()
hetznerSDConfigs defines a list of Hetzner service discovery configurations.
-
setHetznerSDConfigs
public void setHetznerSDConfigs(List<HetznerSDConfig> hetznerSDConfigs)
hetznerSDConfigs defines a list of Hetzner service discovery configurations.
-
getHonorLabels
public Boolean getHonorLabels()
honorLabels defines when true the metric's labels when they collide with the target's labels.
-
setHonorLabels
public void setHonorLabels(Boolean honorLabels)
honorLabels defines when true the metric's labels when they collide with the target's labels.
-
getHonorTimestamps
public Boolean getHonorTimestamps()
honorTimestamps defines whether Prometheus preserves the timestamps when exposed by the target.
-
setHonorTimestamps
public void setHonorTimestamps(Boolean honorTimestamps)
honorTimestamps defines whether Prometheus preserves the timestamps when exposed by the target.
-
getHttpSDConfigs
public List<HTTPSDConfig> getHttpSDConfigs()
httpSDConfigs defines a list of HTTP service discovery configurations.
-
setHttpSDConfigs
public void setHttpSDConfigs(List<HTTPSDConfig> httpSDConfigs)
httpSDConfigs defines a list of HTTP service discovery configurations.
-
getIonosSDConfigs
public List<IonosSDConfig> getIonosSDConfigs()
ionosSDConfigs defines a list of IONOS service discovery configurations.
-
setIonosSDConfigs
public void setIonosSDConfigs(List<IonosSDConfig> ionosSDConfigs)
ionosSDConfigs defines a list of IONOS service discovery configurations.
-
getJobName
public String getJobName()
jobName defines the value of the `job` label assigned to the scraped metrics by default.The `job_name` field in the rendered scrape configuration is always controlled by the operator to prevent duplicate job names, which Prometheus does not allow. Instead the `job` label is set by means of relabeling configs.
-
setJobName
public void setJobName(String jobName)
jobName defines the value of the `job` label assigned to the scraped metrics by default.The `job_name` field in the rendered scrape configuration is always controlled by the operator to prevent duplicate job names, which Prometheus does not allow. Instead the `job` label is set by means of relabeling configs.
-
getKeepDroppedTargets
public Long getKeepDroppedTargets()
keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.It requires Prometheus >= v2.47.0.
-
setKeepDroppedTargets
public void setKeepDroppedTargets(Long keepDroppedTargets)
keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.It requires Prometheus >= v2.47.0.
-
getKubernetesSDConfigs
public List<KubernetesSDConfig> getKubernetesSDConfigs()
kubernetesSDConfigs defines a list of Kubernetes service discovery configurations.
-
setKubernetesSDConfigs
public void setKubernetesSDConfigs(List<KubernetesSDConfig> kubernetesSDConfigs)
kubernetesSDConfigs defines a list of Kubernetes service discovery configurations.
-
getKumaSDConfigs
public List<KumaSDConfig> getKumaSDConfigs()
kumaSDConfigs defines a list of Kuma service discovery configurations.
-
setKumaSDConfigs
public void setKumaSDConfigs(List<KumaSDConfig> kumaSDConfigs)
kumaSDConfigs defines a list of Kuma service discovery configurations.
-
getLabelLimit
public Long getLabelLimit()
labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
setLabelLimit
public void setLabelLimit(Long labelLimit)
labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
getLabelNameLengthLimit
public Long getLabelNameLengthLimit()
labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
setLabelNameLengthLimit
public void setLabelNameLengthLimit(Long labelNameLengthLimit)
labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
getLabelValueLengthLimit
public Long getLabelValueLengthLimit()
labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
setLabelValueLengthLimit
public void setLabelValueLengthLimit(Long labelValueLengthLimit)
labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
getLightSailSDConfigs
public List<LightSailSDConfig> getLightSailSDConfigs()
lightSailSDConfigs defines a list of Lightsail service discovery configurations.
-
setLightSailSDConfigs
public void setLightSailSDConfigs(List<LightSailSDConfig> lightSailSDConfigs)
lightSailSDConfigs defines a list of Lightsail service discovery configurations.
-
getLinodeSDConfigs
public List<LinodeSDConfig> getLinodeSDConfigs()
linodeSDConfigs defines a list of Linode service discovery configurations.
-
setLinodeSDConfigs
public void setLinodeSDConfigs(List<LinodeSDConfig> linodeSDConfigs)
linodeSDConfigs defines a list of Linode service discovery configurations.
-
getMetricRelabelings
public List<RelabelConfig> getMetricRelabelings()
metricRelabelings defines the metricRelabelings to apply to samples before ingestion.
-
setMetricRelabelings
public void setMetricRelabelings(List<RelabelConfig> metricRelabelings)
metricRelabelings defines the metricRelabelings to apply to samples before ingestion.
-
getMetricsPath
public String getMetricsPath()
metricsPath defines the HTTP path to scrape for metrics. If empty, Prometheus uses the default value (e.g. /metrics).
-
setMetricsPath
public void setMetricsPath(String metricsPath)
metricsPath defines the HTTP path to scrape for metrics. If empty, Prometheus uses the default value (e.g. /metrics).
-
getNameEscapingScheme
public String getNameEscapingScheme()
nameEscapingScheme defines the metric name escaping mode to request through content negotiation.It requires Prometheus >= v3.4.0.
-
setNameEscapingScheme
public void setNameEscapingScheme(String nameEscapingScheme)
nameEscapingScheme defines the metric name escaping mode to request through content negotiation.It requires Prometheus >= v3.4.0.
-
getNameValidationScheme
public String getNameValidationScheme()
nameValidationScheme defines the validation scheme for metric and label names.It requires Prometheus >= v3.0.0.
-
setNameValidationScheme
public void setNameValidationScheme(String nameValidationScheme)
nameValidationScheme defines the validation scheme for metric and label names.It requires Prometheus >= v3.0.0.
-
getNativeHistogramBucketLimit
public Long getNativeHistogramBucketLimit()
nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit. It requires Prometheus >= v2.45.0.
-
setNativeHistogramBucketLimit
public void setNativeHistogramBucketLimit(Long nativeHistogramBucketLimit)
nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit. It requires Prometheus >= v2.45.0.
-
getNativeHistogramMinBucketFactor
public Quantity getNativeHistogramMinBucketFactor()
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
setNativeHistogramMinBucketFactor
public void setNativeHistogramMinBucketFactor(Quantity nativeHistogramMinBucketFactor)
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
getNoProxy
public String getNoProxy()
noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
setNoProxy
public void setNoProxy(String noProxy)
noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
getNomadSDConfigs
public List<NomadSDConfig> getNomadSDConfigs()
nomadSDConfigs defines a list of Nomad service discovery configurations.
-
setNomadSDConfigs
public void setNomadSDConfigs(List<NomadSDConfig> nomadSDConfigs)
nomadSDConfigs defines a list of Nomad service discovery configurations.
-
getOauth2
public OAuth2 getOauth2()
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
setOauth2
public void setOauth2(OAuth2 oauth2)
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
getOpenstackSDConfigs
public List<OpenStackSDConfig> getOpenstackSDConfigs()
openstackSDConfigs defines a list of OpenStack service discovery configurations.
-
setOpenstackSDConfigs
public void setOpenstackSDConfigs(List<OpenStackSDConfig> openstackSDConfigs)
openstackSDConfigs defines a list of OpenStack service discovery configurations.
-
getOvhcloudSDConfigs
public List<OVHCloudSDConfig> getOvhcloudSDConfigs()
ovhcloudSDConfigs defines a list of OVHcloud service discovery configurations.
-
setOvhcloudSDConfigs
public void setOvhcloudSDConfigs(List<OVHCloudSDConfig> ovhcloudSDConfigs)
ovhcloudSDConfigs defines a list of OVHcloud service discovery configurations.
-
setParams
public void setParams(Map<String,List<String>> params)
params defines optional HTTP URL parameters
-
getProxyConnectHeader
public Map<String,List<SecretKeySelector>> getProxyConnectHeader()
proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
setProxyConnectHeader
public void setProxyConnectHeader(Map<String,List<SecretKeySelector>> proxyConnectHeader)
proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
getProxyFromEnvironment
public Boolean getProxyFromEnvironment()
proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
setProxyFromEnvironment
public void setProxyFromEnvironment(Boolean proxyFromEnvironment)
proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
getProxyUrl
public String getProxyUrl()
proxyUrl defines the HTTP proxy server to use.
-
setProxyUrl
public void setProxyUrl(String proxyUrl)
proxyUrl defines the HTTP proxy server to use.
-
getPuppetDBSDConfigs
public List<PuppetDBSDConfig> getPuppetDBSDConfigs()
puppetDBSDConfigs defines a list of PuppetDB service discovery configurations.
-
setPuppetDBSDConfigs
public void setPuppetDBSDConfigs(List<PuppetDBSDConfig> puppetDBSDConfigs)
puppetDBSDConfigs defines a list of PuppetDB service discovery configurations.
-
getRelabelings
public List<RelabelConfig> getRelabelings()
relabelings defines how to rewrite the target's labels before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields. The original scrape job's name is available via the `__tmp_prometheus_job_name` label. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
-
setRelabelings
public void setRelabelings(List<RelabelConfig> relabelings)
relabelings defines how to rewrite the target's labels before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields. The original scrape job's name is available via the `__tmp_prometheus_job_name` label. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
-
getSampleLimit
public Long getSampleLimit()
sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
-
setSampleLimit
public void setSampleLimit(Long sampleLimit)
sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
-
getScalewaySDConfigs
public List<ScalewaySDConfig> getScalewaySDConfigs()
scalewaySDConfigs defines a list of Scaleway instances and baremetal service discovery configurations.
-
setScalewaySDConfigs
public void setScalewaySDConfigs(List<ScalewaySDConfig> scalewaySDConfigs)
scalewaySDConfigs defines a list of Scaleway instances and baremetal service discovery configurations.
-
getScheme
public String getScheme()
scheme defines the protocol scheme used for requests.
-
setScheme
public void setScheme(String scheme)
scheme defines the protocol scheme used for requests.
-
getScrapeClass
public String getScrapeClass()
scrapeClass defines the scrape class to apply.
-
setScrapeClass
public void setScrapeClass(String scrapeClass)
scrapeClass defines the scrape class to apply.
-
getScrapeClassicHistograms
public Boolean getScrapeClassicHistograms()
scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram. It requires Prometheus >= v2.45.0.Notice: `scrapeClassicHistograms` corresponds to the `always_scrape_classic_histograms` field in the Prometheus configuration.
-
setScrapeClassicHistograms
public void setScrapeClassicHistograms(Boolean scrapeClassicHistograms)
scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram. It requires Prometheus >= v2.45.0.Notice: `scrapeClassicHistograms` corresponds to the `always_scrape_classic_histograms` field in the Prometheus configuration.
-
getScrapeInterval
public String getScrapeInterval()
scrapeInterval defines the interval between consecutive scrapes.
-
setScrapeInterval
public void setScrapeInterval(String scrapeInterval)
scrapeInterval defines the interval between consecutive scrapes.
-
getScrapeNativeHistograms
public Boolean getScrapeNativeHistograms()
scrapeNativeHistograms defines whether to enable scraping of native histograms. It requires Prometheus >= v3.8.0.
-
setScrapeNativeHistograms
public void setScrapeNativeHistograms(Boolean scrapeNativeHistograms)
scrapeNativeHistograms defines whether to enable scraping of native histograms. It requires Prometheus >= v3.8.0.
-
getScrapeProtocols
public List<String> getScrapeProtocols()
scrapeProtocols defines the protocols to negotiate during a scrape. It tells clients the protocols supported by Prometheus in order of preference (from most to least preferred).If unset, Prometheus uses its default value.
It requires Prometheus >= v2.49.0.
-
setScrapeProtocols
public void setScrapeProtocols(List<String> scrapeProtocols)
scrapeProtocols defines the protocols to negotiate during a scrape. It tells clients the protocols supported by Prometheus in order of preference (from most to least preferred).If unset, Prometheus uses its default value.
It requires Prometheus >= v2.49.0.
-
getScrapeTimeout
public String getScrapeTimeout()
scrapeTimeout defines the number of seconds to wait until a scrape request times out. The value cannot be greater than the scrape interval otherwise the operator will reject the resource.
-
setScrapeTimeout
public void setScrapeTimeout(String scrapeTimeout)
scrapeTimeout defines the number of seconds to wait until a scrape request times out. The value cannot be greater than the scrape interval otherwise the operator will reject the resource.
-
getStaticConfigs
public List<StaticConfig> getStaticConfigs()
staticConfigs defines a list of static targets with a common label set.
-
setStaticConfigs
public void setStaticConfigs(List<StaticConfig> staticConfigs)
staticConfigs defines a list of static targets with a common label set.
-
getTargetLimit
public Long getTargetLimit()
targetLimit defines a limit on the number of scraped targets that will be accepted.
-
setTargetLimit
public void setTargetLimit(Long targetLimit)
targetLimit defines a limit on the number of scraped targets that will be accepted.
-
getTlsConfig
public SafeTLSConfig getTlsConfig()
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
setTlsConfig
public void setTlsConfig(SafeTLSConfig tlsConfig)
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
-
getTrackTimestampsStaleness
public Boolean getTrackTimestampsStaleness()
trackTimestampsStaleness defines whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data. Has no effect if `honorTimestamps` is false. It requires Prometheus >= v2.48.0.
-
setTrackTimestampsStaleness
public void setTrackTimestampsStaleness(Boolean trackTimestampsStaleness)
trackTimestampsStaleness defines whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data. Has no effect if `honorTimestamps` is false. It requires Prometheus >= v2.48.0.
-
edit
public ScrapeConfigSpecBuilder edit()
- Specified by:
editin interfaceEditable<ScrapeConfigSpecBuilder>
-
toBuilder
public ScrapeConfigSpecBuilder toBuilder()
-
-