prometheus operator v0.71.2

ScrapeConfig.spec.kubernetesSDConfigs.tlsConfig.cert.secret.spec

ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.

33 fields
ScrapeConfig.spec.kubernetesSDConfigs.tlsConfig.cert.secret.spec fields and descriptions
Field / TypeDescription
object

Authorization header to use on every scrape request.

object[]

AzureSDConfigs defines a list of Azure service discovery configurations.

object

BasicAuth information to use on every scrape request.

object[]

ConsulSDConfigs defines a list of Consul service discovery configurations.

object[]

DNSSDConfigs defines a list of DNS service discovery configurations.

object[]

EC2SDConfigs defines a list of EC2 service discovery configurations.

object[]

FileSDConfigs defines a list of file service discovery configurations.

object[]

GCESDConfigs defines a list of GCE service discovery configurations.

honorLabels
boolean

HonorLabels chooses the metric's labels on collisions with target labels.

honorTimestamps
boolean

HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data.

object[]

HTTPSDConfigs defines a list of HTTP service discovery configurations.

keepDroppedTargets
integer

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
object[]

KubernetesSDConfigs defines a list of Kubernetes service discovery configurations.

labelLimit
integer

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
labelNameLengthLimit
integer

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
labelValueLengthLimit
integer

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
object[]

MetricRelabelConfigs to apply to samples before ingestion.

metricsPath
string

MetricsPath HTTP path to scrape for metrics. If empty, Prometheus uses the default value (e.g. /metrics).

noProxy
string

`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.

object[]

OpenStackSDConfigs defines a list of OpenStack service discovery configurations.

map[string]string[]

Optional HTTP URL parameters

  • x-kubernetes-map-type: "atomic"
map[string]object

ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. It requires Prometheus >= v2.43.0.

  • x-kubernetes-map-type: "atomic"
proxyFromEnvironment
boolean

Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). If unset, Prometheus uses its default value. It requires Prometheus >= v2.43.0.

proxyUrl
string

`proxyURL` defines the HTTP proxy server to use. It requires Prometheus >= v2.43.0.

  • pattern: ^http(s)?://.+$
object[]

RelabelConfigs defines how to rewrite the target's labels before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields. The original scrape job's name is available via the `__tmp_prometheus_job_name` label. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config

sampleLimit
integer

SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.

  • format: int64
scheme
string

Configures the protocol scheme used for requests. If empty, Prometheus uses HTTP by default.

  • enum: ["HTTP","HTTPS"]
scrapeInterval
string

ScrapeInterval is the interval between consecutive scrapes.

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

ScrapeTimeout is the number of seconds to wait until a scrape request times out.

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

StaticConfigs defines a list of static targets with a common label set.

targetLimit
integer

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

  • format: int64
object

TLS configuration to use on every scrape request

trackTimestampsStaleness
boolean

TrackTimestampsStaleness whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data. Has no effect if `honorTimestamps` is false. It requires Prometheus >= v2.48.0.