mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-07-28 03:22:38 +03:00
This commit adds four flags to allow managing label promotion for resource attributes and OTel scope metadata, while staying compatible with [Prometheus](https://prometheus.io/docs/prometheus/latest/configuration/configuration/): - `-opentelemetry.promoteScopeMetadata` - promote OTel scope metadata (i.e. name, version, schema URL, and attributes) to metric labels. - `opentelemetry.promoteAllResourceAttributes` - promote all resource attributes to labels, except for the ones configured with `-opentelemetry.ignoreResourceAttributes`. - `opentelemetry.promoteResourceAttributes` - promote specific list of resource attributes to labels. It cannot be configured simultaneously with `opentelemetry.promoteAllResourceAttributes`. - `opentelemetry.ignoreResourceAttributes` - which resource attributes to ignore, can only be set when `opentelemetry.promoteAllResourceAttributes` is true. `-opentelemetry.promoteScopeMetadata` and `opentelemetry.promoteAllResourceAttributes` are enabled by default in order to preserve the current behavior. fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10931.