Class RemoteReadSpec

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class RemoteReadSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<RemoteReadSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
    See Also:
    Serialized Form
    • Method Detail

      • getAuthorization

        public Authorization getAuthorization()
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • setAuthorization

        public void setAuthorization​(Authorization authorization)
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • getBasicAuth

        public BasicAuth getBasicAuth()
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • setBasicAuth

        public void setBasicAuth​(BasicAuth basicAuth)
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • getBearerToken

        public String getBearerToken()
        *Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.*


        Deprecated: this will be removed in a future release.

      • setBearerToken

        public void setBearerToken​(String bearerToken)
        *Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.*


        Deprecated: this will be removed in a future release.

      • getBearerTokenFile

        public String getBearerTokenFile()
        File from which to read the bearer token for the URL.


        Deprecated: this will be removed in a future release. Prefer using `authorization`.

      • setBearerTokenFile

        public void setBearerTokenFile​(String bearerTokenFile)
        File from which to read the bearer token for the URL.


        Deprecated: this will be removed in a future release. Prefer using `authorization`.

      • getFilterExternalLabels

        public Boolean getFilterExternalLabels()
        Whether to use the external labels as selectors for the remote read endpoint.


        It requires Prometheus >= v2.34.0.

      • setFilterExternalLabels

        public void setFilterExternalLabels​(Boolean filterExternalLabels)
        Whether to use the external labels as selectors for the remote read endpoint.


        It requires Prometheus >= v2.34.0.

      • getFollowRedirects

        public Boolean getFollowRedirects()
        Configure whether HTTP requests follow HTTP 3xx redirects.


        It requires Prometheus >= v2.26.0.

      • setFollowRedirects

        public void setFollowRedirects​(Boolean followRedirects)
        Configure whether HTTP requests follow HTTP 3xx redirects.


        It requires Prometheus >= v2.26.0.

      • getHeaders

        public Map<String,​String> getHeaders()
        Custom HTTP headers to be sent along with each remote read request. Be aware that headers that are set by Prometheus itself can't be overwritten. Only valid in Prometheus versions 2.26.0 and newer.
      • setHeaders

        public void setHeaders​(Map<String,​String> headers)
        Custom HTTP headers to be sent along with each remote read request. Be aware that headers that are set by Prometheus itself can't be overwritten. Only valid in Prometheus versions 2.26.0 and newer.
      • getName

        public String getName()
        The name of the remote read queue, it must be unique if specified. The name is used in metrics and logging in order to differentiate read configurations.


        It requires Prometheus >= v2.15.0.

      • setName

        public void setName​(String name)
        The name of the remote read queue, it must be unique if specified. The name is used in metrics and logging in order to differentiate read configurations.


        It requires Prometheus >= v2.15.0.

      • getNoProxy

        public String getNoProxy()
        `noProxy` is 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` is 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.

      • getOauth2

        public OAuth2 getOauth2()
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • setOauth2

        public void setOauth2​(OAuth2 oauth2)
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • getProxyConnectHeader

        public Map<String,​List<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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()
        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)
        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.
      • getReadRecent

        public Boolean getReadRecent()
        Whether reads should be made for queries for time ranges that the local storage should have complete data for.
      • setReadRecent

        public void setReadRecent​(Boolean readRecent)
        Whether reads should be made for queries for time ranges that the local storage should have complete data for.
      • getRemoteTimeout

        public String getRemoteTimeout()
        Timeout for requests to the remote read endpoint.
      • setRemoteTimeout

        public void setRemoteTimeout​(String remoteTimeout)
        Timeout for requests to the remote read endpoint.
      • getRequiredMatchers

        public Map<String,​String> getRequiredMatchers()
        An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.
      • setRequiredMatchers

        public void setRequiredMatchers​(Map<String,​String> requiredMatchers)
        An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.
      • getTlsConfig

        public TLSConfig getTlsConfig()
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • setTlsConfig

        public void setTlsConfig​(TLSConfig tlsConfig)
        RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
      • getUrl

        public String getUrl()
        The URL of the endpoint to query from.
      • setUrl

        public void setUrl​(String url)
        The URL of the endpoint to query from.
      • getAdditionalProperties

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

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

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