51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
|
receivers:
|
||
|
loki:
|
||
|
protocols:
|
||
|
grpc:
|
||
|
use_incoming_timestamp: true
|
||
|
otlp:
|
||
|
protocols:
|
||
|
grpc:
|
||
|
processors:
|
||
|
attributes:
|
||
|
actions:
|
||
|
- action: insert
|
||
|
key: loki.attribute.labels
|
||
|
value: log.file, log.line, log.module_path, http.request_id, http.uri
|
||
|
- action: insert
|
||
|
from_attribute: log.file
|
||
|
key: log.file
|
||
|
- action: insert
|
||
|
from_attribute: log.line
|
||
|
key: log.line
|
||
|
- action: insert
|
||
|
from_attribute: log.module_path
|
||
|
key: log.module_path
|
||
|
- action: insert
|
||
|
from_attribute: http.request_id
|
||
|
key: http.request_id
|
||
|
- action: insert
|
||
|
from_attribute: http.uri
|
||
|
key: http.uri
|
||
|
- action: insert
|
||
|
key: loki.format
|
||
|
value: raw
|
||
|
exporters:
|
||
|
loki:
|
||
|
endpoint: http://loki:3100/loki/api/v1/push
|
||
|
otlp:
|
||
|
endpoint: tempo:4317
|
||
|
tls:
|
||
|
insecure: true
|
||
|
logging:
|
||
|
verbosity: Detailed
|
||
|
service:
|
||
|
pipelines:
|
||
|
logs:
|
||
|
receivers: [otlp]
|
||
|
processors: [attributes]
|
||
|
exporters: [logging,loki]
|
||
|
traces:
|
||
|
receivers: [otlp]
|
||
|
exporters: [logging,otlp]
|