prometheus operator v0.93.1

PrometheusAgent.spec.scrapeClasses[].attachMetadata

attachMetadata defines additional metadata to the discovered targets. When the scrape object defines its own configuration, it takes precedence over the scrape class configuration.

1 fields
PrometheusAgent.spec.scrapeClasses[].attachMetadata fields and descriptions
Field / TypeDescription
node
boolean

node when set to true, Prometheus attaches node metadata to the discovered targets. The Prometheus service account must have the `list` and `watch` permissions on the `Nodes` objects. Node metadata labels are not automatically added to scraped metrics. They are exposed as `__meta_kubernetes_node_*` labels and can be copied to timeseries with relabeling configuration.