diff --git a/otel-collector/config.yaml b/otel-collector/config.yaml index c943e2a..6947b8a 100644 --- a/otel-collector/config.yaml +++ b/otel-collector/config.yaml @@ -5,14 +5,19 @@ receivers: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318 + processors: batch: - attributes: actions: - action: insert key: loki.attribute.labels value: [component, function, endpoint] + resource: + attributes: + - action: insert + key: loki.resource.labels + value: [host.name, service.name, service.namespace] exporters: otlp: # tempo @@ -25,9 +30,6 @@ exporters: endpoint: http://loki:3100/loki/api/v1/push tls: insecure: true - default_labels_enabled: - exporter: false - job: true extensions: health_check: