Class ProbeSpec

    • Method Detail

      • getAuthorization

        public SafeAuthorization getAuthorization()
        ProbeSpec contains specification parameters for a Probe.
      • setAuthorization

        public void setAuthorization​(SafeAuthorization authorization)
        ProbeSpec contains specification parameters for a Probe.
      • getBasicAuth

        public BasicAuth getBasicAuth()
        ProbeSpec contains specification parameters for a Probe.
      • setBasicAuth

        public void setBasicAuth​(BasicAuth basicAuth)
        ProbeSpec contains specification parameters for a Probe.
      • getBearerTokenSecret

        public SecretKeySelector getBearerTokenSecret()
        ProbeSpec contains specification parameters for a Probe.
      • setBearerTokenSecret

        public void setBearerTokenSecret​(SecretKeySelector bearerTokenSecret)
        ProbeSpec contains specification parameters for a Probe.
      • 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.
      • getEnableHttp2

        public Boolean getEnableHttp2()
        enableHttp2 can be used to disable HTTP2.
      • setEnableHttp2

        public void setEnableHttp2​(Boolean enableHttp2)
        enableHttp2 can be used to disable HTTP2.
      • 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.

      • getFollowRedirects

        public Boolean getFollowRedirects()
        followRedirects defines whether the client should follow HTTP 3xx redirects.
      • setFollowRedirects

        public void setFollowRedirects​(Boolean followRedirects)
        followRedirects defines whether the client should follow HTTP 3xx redirects.
      • getInterval

        public String getInterval()
        interval at which targets are probed using the configured prober. If not specified Prometheus' global scrape interval is used.
      • setInterval

        public void setInterval​(String interval)
        interval at which targets are probed using the configured prober. If not specified Prometheus' global scrape interval is used.
      • getJobName

        public String getJobName()
        jobName assigned to scraped metrics by default.
      • setJobName

        public void setJobName​(String jobName)
        jobName assigned to scraped metrics by default.
      • 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.

      • 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.
      • getMetricRelabelings

        public List<RelabelConfig> getMetricRelabelings()
        metricRelabelings defines the RelabelConfig to apply to samples before ingestion.
      • setMetricRelabelings

        public void setMetricRelabelings​(List<RelabelConfig> metricRelabelings)
        metricRelabelings defines the RelabelConfig to apply to samples before ingestion.
      • getModule

        public String getModule()
        module to use for probing specifying how to probe the target. Example module configuring in the blackbox exporter: https://github.com/prometheus/blackbox_exporter/blob/master/example.yml
      • setModule

        public void setModule​(String module)
        module to use for probing specifying how to probe the target. Example module configuring in the blackbox exporter: https://github.com/prometheus/blackbox_exporter/blob/master/example.yml
      • 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()
        ProbeSpec contains specification parameters for a Probe.
      • setNativeHistogramMinBucketFactor

        public void setNativeHistogramMinBucketFactor​(Quantity nativeHistogramMinBucketFactor)
        ProbeSpec contains specification parameters for a Probe.
      • getOauth2

        public OAuth2 getOauth2()
        ProbeSpec contains specification parameters for a Probe.
      • setOauth2

        public void setOauth2​(OAuth2 oauth2)
        ProbeSpec contains specification parameters for a Probe.
      • getParams

        public List<ProbeParam> getParams()
        params defines the list of HTTP query parameters for the scrape. Please note that the `.spec.module` field takes precedence over the `module` parameter from this list when both are defined. The module name must be added using Module under ProbeSpec.
      • setParams

        public void setParams​(List<ProbeParam> params)
        params defines the list of HTTP query parameters for the scrape. Please note that the `.spec.module` field takes precedence over the `module` parameter from this list when both are defined. The module name must be added using Module under ProbeSpec.
      • getProber

        public ProberSpec getProber()
        ProbeSpec contains specification parameters for a Probe.
      • setProber

        public void setProber​(ProberSpec prober)
        ProbeSpec contains specification parameters for a Probe.
      • 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.
      • 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.

      • 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 timeout for scraping metrics from the Prometheus exporter. If not specified, the Prometheus global scrape timeout is used. 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 timeout for scraping metrics from the Prometheus exporter. If not specified, the Prometheus global scrape timeout is used. The value cannot be greater than the scrape interval otherwise the operator will reject the resource.
      • 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.
      • getTargets

        public ProbeTargets getTargets()
        ProbeSpec contains specification parameters for a Probe.
      • setTargets

        public void setTargets​(ProbeTargets targets)
        ProbeSpec contains specification parameters for a Probe.
      • getTlsConfig

        public SafeTLSConfig getTlsConfig()
        ProbeSpec contains specification parameters for a Probe.
      • setTlsConfig

        public void setTlsConfig​(SafeTLSConfig tlsConfig)
        ProbeSpec contains specification parameters for a Probe.
      • getAdditionalProperties

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

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

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