Need to add a Tag:environment to all metrics using opentelemetry collector #23658
debashish-github
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to add envionrment tag to all my metrics using open-telemetry collector and while going through some search I figured out that it can be done using metrictransform processor as below :
metricstransform:
transforms:
include: .*
match_type: regexp
action: update
operations:
- action: add_label
new_label: env
new_value: perf
I have also attached m configuration . The open telemetry collector starts up fine but I don't see the env tag being added to any of the metrics ? Is there anything else that I need to do to get this working ?
Any help is greatly appreciated!
config.txt
Thanks[
Beta Was this translation helpful? Give feedback.
All reactions