ScrapeConfig.spec.dockerSDConfigs[].tlsConfig.cert.secret.spec.lightSailSDConfigs.oauth2
oauth2 defines the optional OAuth 2.0 configuration to authenticate against the target HTTP endpoint. Cannot be set at the same time as `authorization`, or `basicAuth`.
| Field / Type | Description |
|---|---|
clientId defines a key of a Secret or ConfigMap containing the OAuth2 client's ID. | |
clientSecret defines a key of a Secret containing the OAuth2 client's secret.
| |
endpointParams configures the HTTP parameters to append to the token URL. | |
noProxy | noProxy defines 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, Alertmanager >= v0.25.0 or Thanos >= v0.32.0. |
proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
| |
proxyFromEnvironment | proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0. |
proxyUrl | proxyUrl defines the HTTP proxy server to use.
|
scopes defines the OAuth2 scopes used for the token request. | |
tlsConfig defines the TLS configuration to use when connecting to the OAuth2 server. It requires Prometheus >= v2.43.0. | |
tokenUrl | tokenUrl defines the URL to fetch the token from.
|