prometheus operator v0.71.2

ScrapeConfig.spec.kubernetesSDConfigs[].attachMetadata

Optional metadata to attach to discovered targets. It requires Prometheus >= v2.35.0 for `pod` role and Prometheus >= v2.37.0 for `endpoints` and `endpointslice` roles.

1 fields
ScrapeConfig.spec.kubernetesSDConfigs[].attachMetadata fields and descriptions
Field / TypeDescription
node
boolean

Attaches node metadata to discovered targets. When set to true, Prometheus must have the `get` permission on the `Nodes` objects. Only valid for Pod, Endpoint and Endpointslice roles.