Can I do regex pattern matching on metrics in the transform processor?
otelcol.processor.transform “normalize” {
metric_statements {
context = “datapoint”
statements = [
set(datapoint.attributes["http_route"], "combine") where not attributes["http_route"] =~ 'v.*/accounts/.*'
,
]
}
output {
metrics = [otelcol.processor.attributes.default.input]
}
}
I am getting below error-
Failed to build component: decoding configuration: statement has invalid syntax: 1:90: lexer: invalid input text "~ ‘v./accounts/.’""