From 6d25a4eee4f0485d3973885f250424757714e5e0 Mon Sep 17 00:00:00 2001 From: royalcat <k.adamovich20@gmail.com> Date: Tue, 19 Mar 2024 14:51:44 +0300 Subject: [PATCH] resource processors --- otel-collector/config.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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: