resource processors

This commit is contained in:
royalcat 2024-03-19 14:51:44 +03:00
parent 12468e9a35
commit 6d25a4eee4

View file

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