Is there any way to copy resource attributes to data point attributes? #37868
Unanswered
zongsizhang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think the transformprocessor can help on that: processors:
transform/copy_resource_attributes:
metric_statements:
- context: datapoint
statements:
- merge_maps(attributes, resource.attributes, "insert") |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are sending metrics to the Grafana cloud through OTLP. Prometheus drops our resource attributes.
Is there any way to copy the resource attributes to the data point attributes?
Appreciate!
Beta Was this translation helpful? Give feedback.
All reactions