prometheus operator v0.71.2

ScrapeConfig.spec.kubernetesSDConfigs[].tlsConfig.cert.secret.spec.kubernetesSDConfigs

KubernetesSDConfigs defines a list of Kubernetes service discovery configurations.

15 fields
ScrapeConfig.spec.kubernetesSDConfigs[].tlsConfig.cert.secret.spec.kubernetesSDConfigs fields and descriptions
Field / TypeDescription
apiServer
string

The API server address consisting of a hostname or IP address followed by an optional port number. If left empty, Prometheus is assumed to run inside of the cluster. It will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.

object

Optional metadata to attach to discovered targets. It requires Prometheus >= v2.35.0 for `pod` role and Prometheus >= v2.37.0 for `endpoints` and `endpointslice` roles.

object

Authorization header to use on every scrape request. Cannot be set at the same time as `basicAuth`, or `oauth2`.

object

BasicAuth information to use on every scrape request. Cannot be set at the same time as `authorization`, or `oauth2`.

enableHTTP2
boolean

Whether to enable HTTP2.

followRedirects
boolean

Configure whether HTTP requests follow HTTP 3xx redirects.

object

Optional namespace discovery. If omitted, Prometheus discovers targets across all namespaces.

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

Optional OAuth 2.0 configuration. Cannot be set at the same time as `authorization`, or `basicAuth`.

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)?://.+$
role
string required

Role of the Kubernetes entities that should be discovered.

  • enum: ["Node","node","Service","service","Pod","pod","Endpoints","endpoints","EndpointSlice","endpointslice","Ingress","ingress"]
object[]

Selector to select objects.

  • x-kubernetes-list-map-keys: ["role"]
  • x-kubernetes-list-type: "map"
object

TLS configuration to use on every scrape request.