prometheus operator v0.71.2

PodMonitor.spec.podMetricsEndpoints[].tlsConfig.ca.configMap.spec.podMetricsEndpoints.oauth2

`oauth2` configures the OAuth2 settings to use when scraping the target. It requires Prometheus >= 2.27.0. Cannot be set at the same time as `authorization`, or `basicAuth`.

5 fields
PodMonitor.spec.podMetricsEndpoints[].tlsConfig.ca.configMap.spec.podMetricsEndpoints.oauth2 fields and descriptions
Field / TypeDescription
object required

`clientId` specifies a key of a Secret or ConfigMap containing the OAuth2 client's ID.

object required

`clientSecret` specifies a key of a Secret containing the OAuth2 client's secret.

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

`endpointParams` configures the HTTP parameters to append to the token URL.

string[]

`scopes` defines the OAuth2 scopes used for the token request.

tokenUrl
string required

`tokenURL` configures the URL to fetch the token from.

  • minLength: 1