symfony_example_app/docker/telemetry/otelcol-config.yaml

69 lines
1.8 KiB
YAML
Raw Normal View History

2024-01-16 15:54:06 +00:00
receivers:
loki:
protocols:
grpc:
use_incoming_timestamp: true
otlp:
protocols:
grpc:
processors:
attributes:
actions:
- action: insert
key: loki.attribute.labels
2024-01-18 17:37:41 +00:00
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
2024-01-16 15:54:06 +00:00
- action: insert
2024-01-18 17:37:41 +00:00
from_attribute: context
key: context
2024-01-16 15:54:06 +00:00
- action: insert
2024-01-18 17:37:41 +00:00
from_attribute: code.namespace
key: code.namespace
2024-01-16 15:54:06 +00:00
- action: insert
2024-01-18 17:37:41 +00:00
from_attribute: code.function
key: code.function
2024-01-16 15:54:06 +00:00
- action: insert
2024-01-18 17:37:41 +00:00
from_attribute: code.lineno
key: code.lineno
2024-01-16 15:54:06 +00:00
- action: insert
2024-01-18 17:37:41 +00:00
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
2024-01-16 15:54:06 +00:00
- 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]