prometheus operator v0.93.1

Probe.spec.targets.ingress.namespaceSelector.matchNames.spec

spec defines the specification of desired Ingress selection for target discovery by Prometheus.

29 fields
Probe.spec.targets.ingress.namespaceSelector.matchNames.spec fields and descriptions
Field / TypeDescription
object

authorization configures the Authorization header credentials used by the client. Cannot be set at the same time as `basicAuth`, `bearerTokenSecret` or `oauth2`.

object

basicAuth defines the Basic Authentication credentials used by the client. Cannot be set at the same time as `authorization`, `bearerTokenSecret` or `oauth2`.

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.

  • x-kubernetes-map-type: "atomic"
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.

  • enum: ["PrometheusProto","OpenMetricsText0.0.1","OpenMetricsText1.0.0","PrometheusText0.0.4","PrometheusText1.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.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
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.

  • format: int64
  • minimum: 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.

  • format: int64
  • minimum: 0
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.

  • format: int64
  • minimum: 0
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.

  • format: int64
  • minimum: 0
object[]

metricRelabelings defines the RelabelConfig to apply to samples before ingestion.

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.

  • format: int64
  • minimum: 0
integer | 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.

  • pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  • x-kubernetes-int-or-string: true
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`.

object[]

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.

  • minItems: 1
  • x-kubernetes-list-map-keys: ["name"]
  • x-kubernetes-list-type: "map"
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.

  • format: int64
  • minimum: 0
scrapeClass
string

scrapeClass defines the scrape class to apply.

  • minLength: 1
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.

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.

  • x-kubernetes-list-type: "set"
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.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
targetLimit
integer

targetLimit defines a limit on the number of scraped targets that will be accepted.

  • format: int64
  • minimum: 0
object

targets defines a set of static or dynamically discovered targets to probe.

object

tlsConfig defines the TLS configuration used by the client.