fn withAlwaysScrapeClassicHistograms(value=true)fn withBodySizeLimit(value)fn withConvertClassicHistogramsToNhcb(value=true)fn withEnableCompression(value=true)fn withFallbackScrapeProtocol(value)fn withHTTPClientConfig(value)fn withHTTPClientConfigMixin(value)fn withHonorLabels(value=true)fn withHonorTimestamps(value=true)fn withJobName(value)fn withKeepDroppedTargets(value)fn withLabelLimit(value)fn withLabelNameLengthLimit(value)fn withLabelValueLengthLimit(value)fn withMetricNameValidationScheme(value)fn withMetricRelabelConfigs(value)fn withMetricRelabelConfigsMixin(value)fn withMetricsPath(value)fn withNativeHistogramBucketLimit(value)fn withNativeHistogramMinBucketFactor(value)fn withParams(value)fn withParamsMixin(value)fn withRelabelConfigs(value)fn withRelabelConfigsMixin(value)fn withSampleLimit(value)fn withScheme(value)fn withScrapeFailureLogFile(value)fn withScrapeInterval(value)fn withScrapeProtocols(value)fn withScrapeProtocolsMixin(value)fn withScrapeTimeout(value)fn withTargetLimit(value)fn withTrackTimestampsStaleness(value=true)obj HTTPClientConfigfn withAuthorization(value)fn withAuthorizationMixin(value)fn withBasicAuth(value)fn withBasicAuthMixin(value)fn withBearerToken(value)fn withBearerTokenFile(value)fn withEnableHttp2(value=true)fn withFollowRedirects(value=true)fn withHttpHeaders(value)fn withHttpHeadersMixin(value)fn withNoProxy(value)fn withOauth2(value)fn withOauth2Mixin(value)fn withProxyConnectHeader(value)fn withProxyConnectHeaderMixin(value)fn withProxyFromEnvironment(value=true)fn withProxyUrl(value)fn withProxyUrlMixin(value)fn withTlsConfig(value)fn withTlsConfigMixin(value)obj authorizationobj basic_authobj http_headersobj oauth2fn withClientId(value)fn withClientSecret(value)fn withClientSecretFile(value)fn withClientSecretRef(value)fn withEndpointParams(value)fn withEndpointParamsMixin(value)fn withNoProxy(value)fn withProxyConnectHeader(value)fn withProxyConnectHeaderMixin(value)fn withProxyFromEnvironment(value=true)fn withProxyUrl(value)fn withProxyUrlMixin(value)fn withScopes(value)fn withScopesMixin(value)fn withTlsConfig(value)fn withTlsConfigMixin(value)fn withTokenUrl(value)obj proxy_urlobj tls_config
obj proxy_urlobj tls_config
withAlwaysScrapeClassicHistograms(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Whether to scrape a classic histogram, even if it is also exposed as a native histogram.
withBodySizeLimit(value)PARAMETERS:
- value (
integer)
An uncompressed response body larger than this many bytes will cause the scrape to fail. 0 means no limit.
withConvertClassicHistogramsToNhcb(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Whether to convert all scraped classic histograms into a native histogram with custom buckets.
withEnableCompression(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Indicator whether to request compressed response from the target.
withFallbackScrapeProtocol(value)PARAMETERS:
- value (
string)
The fallback protocol to use if the Content-Type provided by the target is not provided, blank, or not one of the expected values. Supported values (case sensitive): PrometheusProto, OpenMetricsText0.0.1, OpenMetricsText1.0.0, PrometheusText1.0.0, PrometheusText0.0.4.
withHTTPClientConfig(value)PARAMETERS:
- value (
object)
HTTPClientConfig configures an HTTP client.
withHTTPClientConfigMixin(value)PARAMETERS:
- value (
object)
HTTPClientConfig configures an HTTP client.
withHonorLabels(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Indicator whether the scraped metrics should remain unmodified.
withHonorTimestamps(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Indicator whether the scraped timestamps should be respected.
withJobName(value)PARAMETERS:
- value (
string)
The job name to which the job label is set by default.
withKeepDroppedTargets(value)PARAMETERS:
- value (
integer)
Keep no more than this many dropped targets per job. 0 means no limit.
withLabelLimit(value)PARAMETERS:
- value (
integer)
More than this many labels post metric-relabeling will cause the scrape to fail. 0 means no limit.
withLabelNameLengthLimit(value)PARAMETERS:
- value (
integer)
More than this label name length post metric-relabeling will cause the scrape to fail. 0 means no limit.
withLabelValueLengthLimit(value)PARAMETERS:
- value (
integer)
More than this label value length post metric-relabeling will cause the scrape to fail. 0 means no limit.
withMetricNameValidationScheme(value)PARAMETERS:
- value (
string)
Allow UTF8 Metric and Label Names.
withMetricRelabelConfigs(value)PARAMETERS:
- value (
array)
List of metric relabel configurations.
withMetricRelabelConfigsMixin(value)PARAMETERS:
- value (
array)
List of metric relabel configurations.
withMetricsPath(value)PARAMETERS:
- value (
string)
The HTTP resource path on which to fetch metrics from targets.
withNativeHistogramBucketLimit(value)PARAMETERS:
- value (
integer)
If there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.
withNativeHistogramMinBucketFactor(value)PARAMETERS:
- value (
number)
If the growth factor of one bucket to the next is smaller than this, buckets will be merged to increase the factor sufficiently.
withParams(value)PARAMETERS:
- value (
object)
A set of query parameters with which the target is scraped.
withParamsMixin(value)PARAMETERS:
- value (
object)
A set of query parameters with which the target is scraped.
withRelabelConfigs(value)PARAMETERS:
- value (
array)
List of target relabel configurations.
withRelabelConfigsMixin(value)PARAMETERS:
- value (
array)
List of target relabel configurations.
withSampleLimit(value)PARAMETERS:
- value (
integer)
More than this many samples post metric-relabeling will cause the scrape to fail. 0 means no limit.
withScheme(value)PARAMETERS:
- value (
string)
The URL scheme with which to fetch metrics from targets.
withScrapeFailureLogFile(value)PARAMETERS:
- value (
string)
File to which scrape failures are logged.
withScrapeInterval(value)PARAMETERS:
- value (
integer)
How frequently to scrape the targets of this scrape config.
withScrapeProtocols(value)PARAMETERS:
- value (
array)
The protocols to negotiate during a scrape. It tells clients what protocol are accepted by Prometheus and with what preference (most wanted is first). Supported values (case sensitive): PrometheusProto, OpenMetricsText0.0.1, OpenMetricsText1.0.0, PrometheusText1.0.0, PrometheusText0.0.4.
withScrapeProtocolsMixin(value)PARAMETERS:
- value (
array)
The protocols to negotiate during a scrape. It tells clients what protocol are accepted by Prometheus and with what preference (most wanted is first). Supported values (case sensitive): PrometheusProto, OpenMetricsText0.0.1, OpenMetricsText1.0.0, PrometheusText1.0.0, PrometheusText0.0.4.
withScrapeTimeout(value)PARAMETERS:
- value (
integer)
The timeout for scraping targets of this config.
withTargetLimit(value)PARAMETERS:
- value (
integer)
More than this many targets after the target relabeling will cause the scrapes to fail. 0 means no limit.
withTrackTimestampsStaleness(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Indicator whether to track the staleness of the scraped timestamps.
HTTPClientConfig.withAuthorization(value)PARAMETERS:
- value (
object)
The HTTP authorization credentials for the targets.
HTTPClientConfig.withAuthorizationMixin(value)PARAMETERS:
- value (
object)
The HTTP authorization credentials for the targets.
HTTPClientConfig.withBasicAuth(value)PARAMETERS:
- value (
object)
BasicAuth contains basic HTTP authentication credentials.
HTTPClientConfig.withBasicAuthMixin(value)PARAMETERS:
- value (
object)
BasicAuth contains basic HTTP authentication credentials.
HTTPClientConfig.withBearerToken(value)PARAMETERS:
- value (
string)
The bearer token for the targets. Deprecated in favour of Authorization.Credentials.
HTTPClientConfig.withBearerTokenFile(value)PARAMETERS:
- value (
string)
The bearer token file for the targets. Deprecated in favour of Authorization.CredentialsFile.
HTTPClientConfig.withEnableHttp2(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
EnableHTTP2 specifies whether the client should configure HTTP2. The omitempty flag is not set, because it would be hidden from the marshalled configuration when set to false.
HTTPClientConfig.withFollowRedirects(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
FollowRedirects specifies whether the client should follow HTTP 3xx redirects. The omitempty flag is not set, because it would be hidden from the marshalled configuration when set to false.
HTTPClientConfig.withHttpHeaders(value)PARAMETERS:
- value (
object)
Headers represents the configuration for HTTP headers.
HTTPClientConfig.withHttpHeadersMixin(value)PARAMETERS:
- value (
object)
Headers represents the configuration for HTTP headers.
HTTPClientConfig.withNoProxy(value)PARAMETERS:
- value (
string)
NoProxy contains addresses that should not use a proxy.
HTTPClientConfig.withOauth2(value)PARAMETERS:
- value (
object)
OAuth2 is the oauth2 client configuration.
HTTPClientConfig.withOauth2Mixin(value)PARAMETERS:
- value (
object)
OAuth2 is the oauth2 client configuration.
HTTPClientConfig.withProxyConnectHeader(value)PARAMETERS:
- value (
object)
ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. Assume that at least some of these headers are going to contain secrets and use Secret as the value type instead of string.
HTTPClientConfig.withProxyConnectHeaderMixin(value)PARAMETERS:
- value (
object)
ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. Assume that at least some of these headers are going to contain secrets and use Secret as the value type instead of string.
HTTPClientConfig.withProxyFromEnvironment(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function to determine proxies.
HTTPClientConfig.withProxyUrl(value)PARAMETERS:
- value (
object)
URL is a custom URL type that allows validation at configuration load time.
HTTPClientConfig.withProxyUrlMixin(value)PARAMETERS:
- value (
object)
URL is a custom URL type that allows validation at configuration load time.
HTTPClientConfig.withTlsConfig(value)PARAMETERS:
- value (
object)
TLSConfig configures the options for TLS connections.
HTTPClientConfig.withTlsConfigMixin(value)PARAMETERS:
- value (
object)
TLSConfig configures the options for TLS connections.
HTTPClientConfig.authorization.withCredentials(value)PARAMETERS:
- value (
string)
HTTPClientConfig.authorization.withCredentialsFile(value)PARAMETERS:
- value (
string)
HTTPClientConfig.authorization.withCredentialsRef(value)PARAMETERS:
- value (
string)
CredentialsRef is the name of the secret within the secret manager to use as credentials.
HTTPClientConfig.authorization.withType(value)PARAMETERS:
- value (
string)
HTTPClientConfig.basic_auth.withPassword(value)PARAMETERS:
- value (
string)
HTTPClientConfig.basic_auth.withPasswordFile(value)PARAMETERS:
- value (
string)
HTTPClientConfig.basic_auth.withPasswordRef(value)PARAMETERS:
- value (
string)
PasswordRef is the name of the secret within the secret manager to use as the password.
HTTPClientConfig.basic_auth.withUsername(value)PARAMETERS:
- value (
string)
HTTPClientConfig.basic_auth.withUsernameFile(value)PARAMETERS:
- value (
string)
HTTPClientConfig.basic_auth.withUsernameRef(value)PARAMETERS:
- value (
string)
UsernameRef is the name of the secret within the secret manager to use as the username.
HTTPClientConfig.http_headers.withHeaders(value)PARAMETERS:
- value (
object)
HTTPClientConfig.http_headers.withHeadersMixin(value)PARAMETERS:
- value (
object)
HTTPClientConfig.oauth2.withClientId(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.withClientSecret(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.withClientSecretFile(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.withClientSecretRef(value)PARAMETERS:
- value (
string)
ClientSecretRef is the name of the secret within the secret manager to use as the client secret.
HTTPClientConfig.oauth2.withEndpointParams(value)PARAMETERS:
- value (
object)
HTTPClientConfig.oauth2.withEndpointParamsMixin(value)PARAMETERS:
- value (
object)
HTTPClientConfig.oauth2.withNoProxy(value)PARAMETERS:
- value (
string)
NoProxy contains addresses that should not use a proxy.
HTTPClientConfig.oauth2.withProxyConnectHeader(value)PARAMETERS:
- value (
object)
ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. Assume that at least some of these headers are going to contain secrets and use Secret as the value type instead of string.
HTTPClientConfig.oauth2.withProxyConnectHeaderMixin(value)PARAMETERS:
- value (
object)
ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. Assume that at least some of these headers are going to contain secrets and use Secret as the value type instead of string.
HTTPClientConfig.oauth2.withProxyFromEnvironment(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function to determine proxies.
HTTPClientConfig.oauth2.withProxyUrl(value)PARAMETERS:
- value (
object)
URL is a custom URL type that allows validation at configuration load time.
HTTPClientConfig.oauth2.withProxyUrlMixin(value)PARAMETERS:
- value (
object)
URL is a custom URL type that allows validation at configuration load time.
HTTPClientConfig.oauth2.withScopes(value)PARAMETERS:
- value (
array)
HTTPClientConfig.oauth2.withScopesMixin(value)PARAMETERS:
- value (
array)
HTTPClientConfig.oauth2.withTlsConfig(value)PARAMETERS:
- value (
object)
TLSConfig configures the options for TLS connections.
HTTPClientConfig.oauth2.withTlsConfigMixin(value)PARAMETERS:
- value (
object)
TLSConfig configures the options for TLS connections.
HTTPClientConfig.oauth2.withTokenUrl(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withForceQuery(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
HTTPClientConfig.oauth2.proxy_url.withFragment(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withHost(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withOmitHost(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
HTTPClientConfig.oauth2.proxy_url.withOpaque(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withPath(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withRawFragment(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withRawPath(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withRawQuery(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withScheme(value)PARAMETERS:
- value (
string)
HTTPClientConfig.oauth2.proxy_url.withUser(value)PARAMETERS:
- value (
object)
HTTPClientConfig.oauth2.proxy_url.withUserMixin(value)PARAMETERS:
- value (
object)
HTTPClientConfig.oauth2.tls_config.withCa(value)PARAMETERS:
- value (
string)
Text of the CA cert to use for the targets.
HTTPClientConfig.oauth2.tls_config.withCaFile(value)PARAMETERS:
- value (
string)
The CA cert to use for the targets.
HTTPClientConfig.oauth2.tls_config.withCaRef(value)PARAMETERS:
- value (
string)
CARef is the name of the secret within the secret manager to use as the CA cert for the targets.
HTTPClientConfig.oauth2.tls_config.withCert(value)PARAMETERS:
- value (
string)
Text of the client cert file for the targets.
HTTPClientConfig.oauth2.tls_config.withCertFile(value)PARAMETERS:
- value (
string)
The client cert file for the targets.
HTTPClientConfig.oauth2.tls_config.withCertRef(value)PARAMETERS:
- value (
string)
CertRef is the name of the secret within the secret manager to use as the client cert for the targets.
HTTPClientConfig.oauth2.tls_config.withInsecureSkipVerify(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Disable target certificate validation.
HTTPClientConfig.oauth2.tls_config.withKey(value)PARAMETERS:
- value (
string)
Text of the client key file for the targets.
HTTPClientConfig.oauth2.tls_config.withKeyFile(value)PARAMETERS:
- value (
string)
The client key file for the targets.
HTTPClientConfig.oauth2.tls_config.withKeyRef(value)PARAMETERS:
- value (
string)
KeyRef is the name of the secret within the secret manager to use as the client key for the targets.
HTTPClientConfig.oauth2.tls_config.withMaxVersion(value)PARAMETERS:
- value (
integer)
Maximum TLS version.
HTTPClientConfig.oauth2.tls_config.withMinVersion(value)PARAMETERS:
- value (
integer)
Minimum TLS version.
HTTPClientConfig.oauth2.tls_config.withServerName(value)PARAMETERS:
- value (
string)
Used to verify the hostname for the targets.
HTTPClientConfig.proxy_url.withForceQuery(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
HTTPClientConfig.proxy_url.withFragment(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withHost(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withOmitHost(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
HTTPClientConfig.proxy_url.withOpaque(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withPath(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withRawFragment(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withRawPath(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withRawQuery(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withScheme(value)PARAMETERS:
- value (
string)
HTTPClientConfig.proxy_url.withUser(value)PARAMETERS:
- value (
object)
HTTPClientConfig.proxy_url.withUserMixin(value)PARAMETERS:
- value (
object)
HTTPClientConfig.tls_config.withCa(value)PARAMETERS:
- value (
string)
Text of the CA cert to use for the targets.
HTTPClientConfig.tls_config.withCaFile(value)PARAMETERS:
- value (
string)
The CA cert to use for the targets.
HTTPClientConfig.tls_config.withCaRef(value)PARAMETERS:
- value (
string)
CARef is the name of the secret within the secret manager to use as the CA cert for the targets.
HTTPClientConfig.tls_config.withCert(value)PARAMETERS:
- value (
string)
Text of the client cert file for the targets.
HTTPClientConfig.tls_config.withCertFile(value)PARAMETERS:
- value (
string)
The client cert file for the targets.
HTTPClientConfig.tls_config.withCertRef(value)PARAMETERS:
- value (
string)
CertRef is the name of the secret within the secret manager to use as the client cert for the targets.
HTTPClientConfig.tls_config.withInsecureSkipVerify(value=true)PARAMETERS:
- value (
boolean)- default value:
true
- default value:
Disable target certificate validation.
HTTPClientConfig.tls_config.withKey(value)PARAMETERS:
- value (
string)
Text of the client key file for the targets.
HTTPClientConfig.tls_config.withKeyFile(value)PARAMETERS:
- value (
string)
The client key file for the targets.
HTTPClientConfig.tls_config.withKeyRef(value)PARAMETERS:
- value (
string)
KeyRef is the name of the secret within the secret manager to use as the client key for the targets.
HTTPClientConfig.tls_config.withMaxVersion(value)PARAMETERS:
- value (
integer)
Maximum TLS version.
HTTPClientConfig.tls_config.withMinVersion(value)PARAMETERS:
- value (
integer)
Minimum TLS version.
HTTPClientConfig.tls_config.withServerName(value)PARAMETERS:
- value (
string)
Used to verify the hostname for the targets.