authorization
|
object
|
authorization section for this endpoint |
basicAuth
|
object
|
basicAuth allow an endpoint to authenticate over basic authentication.
More info: https://prometheus.io/docs/operating/configuration/#endpoint |
bearerTokenSecret
|
object
|
bearerTokenSecret defines the secret to mount to read bearer token for scraping targets. The secret
needs to be in the same namespace as the probe and accessible by
the Prometheus Operator. |
convertClassicHistogramsToNHCB
|
boolean
|
convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.
It requires Prometheus >= v3.0.0. |
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. |
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 for the URL. Only valid in Prometheus versions 2.27.0 and newer. |
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. |
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 to use when scraping the endpoint. |