This repository was archived by the owner on Feb 25, 2026. It is now read-only.
forked from PostHog/posthog-foss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathotel-collector-config.dev.yaml
More file actions
60 lines (56 loc) · 1.74 KB
/
otel-collector-config.dev.yaml
File metadata and controls
60 lines (56 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
receivers:
filelog:
include:
- /var/lib/docker/containers/*/*.log
include_file_name: true
include_file_path: true
operators:
- id: container-parser
max_log_size: 102400
type: container
format: docker
on_error: send_quiet
add_metadata_from_filepath: false
- type: json_parser
parse_from: body
on_error: send_quiet
if: "hasPrefix(body, '{')"
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317 # Collector receiving OTLP gRPC
http:
endpoint: 0.0.0.0:4318 # Collector receiving OTLP HTTP
exporters:
otlp: # Using the standard OTLP exporter
endpoint: 'jaeger-local:4317' # Sending OTLP gRPC to Jaeger
tls:
insecure: true # For local communication to Jaeger
otlphttp/logs:
endpoint: 'http://capture-logs:4318'
compression: none
tls:
insecure: true
headers:
# special "local" token is automatically mapped to team_id 1 in dev environments
authorization: Bearer phc_local
extensions: # Declaring the extensions
health_check: # Default configuration is usually fine
zpages: # Default configuration is usually fine
processors:
batch:
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
logs:
exporters:
- otlphttp/logs
processors:
- batch
receivers:
- otlp
- filelog
extensions: [health_check, zpages] # Enabling the declared extensions