Class ScrapeConfigSpec

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

        public Map<String,​List<String>> getParams()
        params defines optional HTTP URL parameters
      • 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.
      • getAdditionalProperties

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

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

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