oneuptime/OTelCollector/config.yaml

44 lines
849 B
YAML
Raw Normal View History

2023-11-12 14:24:27 +00:00
extensions:
headers_setter:
headers:
2023-11-12 15:12:49 +00:00
- action: upsert
key: x-oneuptime-service-token
from_context: x-oneuptime-service-token
2023-11-12 14:24:27 +00:00
2023-10-10 10:16:22 +00:00
processors:
receivers:
otlp:
protocols:
grpc:
2023-11-12 15:12:49 +00:00
include_metadata: true
2023-10-10 10:16:22 +00:00
http:
2023-11-12 14:24:27 +00:00
include_metadata: true
2023-10-10 10:16:22 +00:00
exporters:
otlphttp:
endpoint: "http://${env:SERVER_INGESTOR_HOSTNAME}:${env:INGESTOR_PORT}/otlp"
2023-11-09 21:37:23 +00:00
headers: {"Content-Type": "application/json"}
2023-11-12 15:12:49 +00:00
auth:
authenticator: headers_setter
2023-10-10 10:16:22 +00:00
service:
# telemetry:
# logs:
# level: "debug"
2023-11-12 14:24:27 +00:00
extensions: [ headers_setter ]
2023-10-10 10:16:22 +00:00
pipelines:
traces:
receivers: [otlp]
processors: []
exporters: [otlphttp]
metrics:
receivers: [otlp]
processors: []
exporters: [otlphttp]
logs:
receivers: [otlp]
processors: []
exporters: [otlphttp]