prometheus operator v0.71.2
ServiceMonitor.spec.endpoints[].tlsConfig.cert.configMap.spec.endpoints.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`.
| Field / Type | Description |
|---|---|
`clientId` specifies a key of a Secret or ConfigMap containing the OAuth2 client's ID. | |
`clientSecret` specifies a key of a Secret containing the OAuth2 client's secret.
| |
`endpointParams` configures the HTTP parameters to append to the token URL. | |
`scopes` defines the OAuth2 scopes used for the token request. | |
tokenUrl | `tokenURL` configures the URL to fetch the token from.
|