oneuptime/OTelCollector/config.yaml

49 lines
975 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-token
from_context: x-oneuptime-token
2023-11-12 14:24:27 +00:00
2023-10-10 10:16:22 +00:00
processors:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
2023-11-12 15:12:49 +00:00
include_metadata: true
2023-10-10 10:16:22 +00:00
http:
endpoint: 0.0.0.0:4318
2023-11-12 14:24:27 +00:00
include_metadata: true
cors:
allowed_origins: ["*"]
allowed_headers: ["*"]
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]