prometheus operator v0.93.1

Prometheus.spec.initContainers[].env[].valueFrom.configMapKeyRef.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
Prometheus.spec.initContainers[].env[].valueFrom.configMapKeyRef.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. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

  • default: ""
optional
boolean

Specify whether the Secret or its key must be defined