prometheus operator v0.71.2

PrometheusAgent.spec.volumes.projected.sources.serviceAccountToken.spec.additionalScrapeConfigs

AdditionalScrapeConfigs allows specifying a key of a Secret containing additional Prometheus scrape configurations. Scrape configurations specified are appended to the configurations generated by the Prometheus Operator. Job configurations specified must have the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config. As scrape configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible scrape configs are going to break Prometheus after the upgrade.

3 fields
PrometheusAgent.spec.volumes.projected.sources.serviceAccountToken.spec.additionalScrapeConfigs 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