authorization
|
object
|
authorization configures the Authorization header credentials used by
the client.
Cannot be set at the same time as basicAuth, bearerTokenSecret or oauth2. |
basicAuth
|
object
|
basicAuth defines the Basic Authentication credentials used by the
client.
Cannot be set at the same time as authorization, bearerTokenSecret or oauth2. |
bearerTokenSecret
|
object
|
bearerTokenSecret defines a key of a Secret containing the bearer token
used by the client for authentication. The secret needs to be in the
same namespace as the custom resource and readable by the Prometheus
Operator.
Cannot be set at the same time as authorization, basicAuth or oauth2.
Deprecated: use authorization instead. |
convertClassicHistogramsToNHCB
|
boolean
|
convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.
It requires Prometheus >= v3.0.0. |
enableHttp2
|
boolean
|
enableHttp2 can be used to disable HTTP2. |
fallbackScrapeProtocol
|
string
|
fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.
It requires Prometheus >= v3.0.0. |
followRedirects
|
boolean
|
followRedirects defines whether the client should follow HTTP 3xx
redirects. |
interval
|
string
|
interval at which targets are probed using the configured prober.
If not specified Prometheus' global scrape interval is used. |
jobName
|
string
|
jobName assigned to scraped metrics by default. |
keepDroppedTargets
|
integer
|
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. |
labelLimit
|
integer
|
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. |
labelNameLengthLimit
|
integer
|
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. |
labelValueLengthLimit
|
integer
|
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. |
metricRelabelings
|
array
|
metricRelabelings defines the RelabelConfig to apply to samples before ingestion. |
metricRelabelings[]
|
object
|
RelabelConfig allows dynamic rewriting of the label set for targets, alerts,
scraped samples and remote write samples.
More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config |
module
|
string
|
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 |
nativeHistogramBucketLimit
|
integer
|
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. |
nativeHistogramMinBucketFactor
|
integer-or-string
|
nativeHistogramMinBucketFactor defines if the growth factor of one bucket to the next is smaller than this,
buckets will be merged to increase the factor sufficiently.
It requires Prometheus >= v2.50.0. |
oauth2
|
object
|
oauth2 defines the OAuth2 settings used by the client.
It requires Prometheus >= 2.27.0.
Cannot be set at the same time as authorization, basicAuth or bearerTokenSecret. |
params
|
array
|
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. |
params[]
|
object
|
ProbeParam defines specification of extra parameters for a Probe. |
prober
|
object
|
prober defines the specification for the prober to use for probing targets.
The prober.URL parameter is required. Targets cannot be probed if left empty. |
sampleLimit
|
integer
|
sampleLimit defines per-scrape limit on number of scraped samples that will be accepted. |
scrapeClass
|
string
|
scrapeClass defines the scrape class to apply. |
scrapeClassicHistograms
|
boolean
|
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. |
scrapeNativeHistograms
|
boolean
|
scrapeNativeHistograms defines whether to enable scraping of native histograms.
It requires Prometheus >= v3.8.0. |
scrapeProtocols
|
array (string)
|
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. |
scrapeTimeout
|
string
|
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. |
targetLimit
|
integer
|
targetLimit defines a limit on the number of scraped targets that will be accepted. |
targets
|
object
|
targets defines a set of static or dynamically discovered targets to probe. |
tlsConfig
|
object
|
tlsConfig defines the TLS configuration used by the client. |