Metric name to lower case #41098
-
Hi everyone, Apologies for the question, I'm starting to use the opentelemetry collector and some of the features are unknown to me. I have some metrics that are being received with a name containing multiple casing. I've seen a processor named "metricstransform" that can use some regexp but as far as I know it doesn't allow change the case. Thank you all for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @GGonzalezGomez, you can use the transform processor for that (see it in action here): processors:
transform/metric_names_lowercase:
metric_statements:
- set(metric.name, ToLowerCase(metric.name)) OTTL has several functions that can be used to manipulate/transform data. It also accepts conditions in case you need to apply it only to specific metrics. |
Beta Was this translation helpful? Give feedback.
-
Thank you @edmocosta, that was exactly what I was looking for. I had it just in front of me and didn't see it :) |
Beta Was this translation helpful? Give feedback.
Hi @GGonzalezGomez, you can use the transform processor for that (see it in action here):
OTTL has several functions that can be used to manipulate/transform data. It also accepts conditions in case you need to apply it only to specific metrics.