grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.31k stars 180 forks source link

Use Collector's loki translator in otelcol.receiver.loki #459

Open ptodev opened 1 year ago

ptodev commented 1 year ago

We need to upgrade the Agent to a new version of OpenTelemetry Collector. However, otelcol.receiver.loki has a dependency on a convert function which has been removed. A similar conversion from loki to plog is already available in the loki translator. We can use the translator even with the old version of the Collector. It would therefore be good to upgrade otelcol.receiver.loki to use the translator prior to the full Collector upgrade, to make the Collector upgrade a bit easier.

The loki translator is also used by the Collector's loki components, so this will also bring the Agent more in line with them.

rfratto commented 1 year ago

Hi @ptodev, I'm going to remove the flow/feature-parity label from this, since it's not clear why this is needed for feature party with static mode.