ScrapeConfig.spec.kubernetesSDConfigs[].proxyConnectHeader.[key].spec.kubernetesSDConfigs
KubernetesSDConfigs defines a list of Kubernetes service discovery configurations.
| Field / Type | Description |
|---|---|
apiServer | 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/. |
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. | |
Authorization header to use on every scrape request. Cannot be set at the same time as `basicAuth`, or `oauth2`. | |
BasicAuth information to use on every scrape request. Cannot be set at the same time as `authorization`, or `oauth2`. | |
enableHTTP2 | Whether to enable HTTP2. |
followRedirects | Configure whether HTTP requests follow HTTP 3xx redirects. |
Optional namespace discovery. If omitted, Prometheus discovers targets across all namespaces. | |
noProxy | `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. |
Optional OAuth 2.0 configuration. Cannot be set at the same time as `authorization`, or `basicAuth`. | |
ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. It requires Prometheus >= v2.43.0.
| |
proxyFromEnvironment | 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 | `proxyURL` defines the HTTP proxy server to use. It requires Prometheus >= v2.43.0.
|
role | Role of the Kubernetes entities that should be discovered.
|
Selector to select objects.
| |
TLS configuration to use on every scrape request. |