mufiye commented on issue #10341:
URL: https://github.com/apache/skywalking/issues/10341#issuecomment-1427386874

   I have done the research. And start a [new 
discussion](https://github.com/open-telemetry/opentelemetry-collector-contrib/discussions/18520)
 in the opentelemetry collector contrib.
   I have tried to use the [metrics transform 
processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor),
 [transform 
processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/transformprocessor)
 and [attributes 
processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/attributesprocessor).
   The metrics transform processor's combine function can process the counter 
and gauge data, but can not process summary and histogram data. It will 
encounter some problems when processing histogram data it will report errors in 
the terminal, and for summary data, the datapoint part of the result data is 
null.
   For the transform processor, I could use 
[functions](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/ottlfuncs#replace_pattern)
 like replace_pattern to make the metrics name concise, such as 
"ti.finish.<dag_id>.<task_id>." to "ti.finish", but I have no idea how to add 
the <dag_id> and <task_id> into the attributes, maybe the Split 
[function](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/ottlfuncs#Split)
 to split name by "." and set function, but it does not work.
   Could anyone give me some suggestions about my next step? I think I can try 
to process the counter and gauge in the stasD -> otel collector -> skywalking 
case. Or anyone who is familiar with opentelemetry collector contrib could have 
solution to solve the problem that splitting metrics names into key-value pair 
attributes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to