diff --git a/otel-collector/config.yaml b/otel-collector/config.yaml index 93d7a6c..be6dac9 100644 --- a/otel-collector/config.yaml +++ b/otel-collector/config.yaml @@ -8,6 +8,18 @@ receivers: processors: batch: + attributes: + actions: + - action: insert + key: loki.attribute.labels + value: event.domain + + resource: + attributes: + - action: insert + key: loki.resource.labels + value: service.name + exporters: otlp: # tempo endpoint: tempo:4317 @@ -41,5 +53,5 @@ service: exporters: [prometheusremotewrite] logs: receivers: [otlp] - processors: [batch] + processors: [batch, attributes, resource] exporters: [loki]