prometheus operator v0.93.1
PrometheusAgent.spec.containers[].restartPolicyRules.exitCodes.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.
| Field / Type | Description |
|---|---|
node | 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. |