prometheus operator v0.71.2

ServiceMonitor.spec.endpoints[].bearerTokenSecret

`bearerTokenSecret` specifies a key of a Secret containing the bearer token for scraping targets. The secret needs to be in the same namespace as the ServiceMonitor object and readable by the Prometheus Operator. Deprecated: use `authorization` instead.

3 fields
ServiceMonitor.spec.endpoints[].bearerTokenSecret fields and descriptions
Field / TypeDescription
key
string required

The key of the secret to select from. Must be a valid secret key.

name
string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?

optional
boolean

Specify whether the Secret or its key must be defined