69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
receivers:
|
|
loki:
|
|
protocols:
|
|
grpc:
|
|
use_incoming_timestamp: true
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
processors:
|
|
attributes:
|
|
actions:
|
|
- action: insert
|
|
key: loki.attribute.labels
|
|
value: context, code.filepath, code.namespace, code.function, code.lineno, http.request.method, http.request.body.size, url.full, url.scheme, url.path, http.route, http.response.status_code
|
|
- action: insert
|
|
from_attribute: context
|
|
key: context
|
|
- action: insert
|
|
from_attribute: code.namespace
|
|
key: code.namespace
|
|
- action: insert
|
|
from_attribute: code.function
|
|
key: code.function
|
|
- action: insert
|
|
from_attribute: code.lineno
|
|
key: code.lineno
|
|
- action: insert
|
|
from_attribute: http.request.method
|
|
key: http.request.method
|
|
- action: insert
|
|
from_attribute: http.request.body.size
|
|
key: http.request.body.size
|
|
- action: insert
|
|
from_attribute: http.response.status_code
|
|
key: http.response.status_code
|
|
- action: insert
|
|
from_attribute: url.full
|
|
key: url.full
|
|
- action: insert
|
|
from_attribute: url.scheme
|
|
key: url.scheme
|
|
- action: insert
|
|
from_attribute: url.path
|
|
key: url.path
|
|
- action: insert
|
|
from_attribute: http.route
|
|
key: http.route
|
|
- 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]
|