Skip to content

Commit d5f49ea

Browse files
committed
retrieve default config file via docker compose cp otel-collector:/etc/otelcol/config.yaml ./otel-collector-config.yaml
1 parent fe7e978 commit d5f49ea

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

otel-collector-config.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# To limit exposure to denial of service attacks, change the host in endpoints below from 0.0.0.0 to a specific network interface.
2+
# See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/security-best-practices.md#safeguards-against-denial-of-service-attacks
3+
4+
extensions:
5+
health_check:
6+
pprof:
7+
endpoint: 0.0.0.0:1777
8+
zpages:
9+
endpoint: 0.0.0.0:55679
10+
11+
receivers:
12+
otlp:
13+
protocols:
14+
grpc:
15+
endpoint: 0.0.0.0:4317
16+
http:
17+
endpoint: 0.0.0.0:4318
18+
19+
# Collect own metrics
20+
prometheus:
21+
config:
22+
scrape_configs:
23+
- job_name: 'otel-collector'
24+
scrape_interval: 10s
25+
static_configs:
26+
- targets: ['0.0.0.0:8888']
27+
28+
jaeger:
29+
protocols:
30+
grpc:
31+
endpoint: 0.0.0.0:14250
32+
thrift_binary:
33+
endpoint: 0.0.0.0:6832
34+
thrift_compact:
35+
endpoint: 0.0.0.0:6831
36+
thrift_http:
37+
endpoint: 0.0.0.0:14268
38+
39+
zipkin:
40+
endpoint: 0.0.0.0:9411
41+
42+
processors:
43+
batch:
44+
45+
exporters:
46+
debug:
47+
verbosity: detailed
48+
49+
service:
50+
51+
pipelines:
52+
53+
traces:
54+
receivers: [otlp, jaeger, zipkin]
55+
processors: [batch]
56+
exporters: [debug]
57+
58+
metrics:
59+
receivers: [otlp, prometheus]
60+
processors: [batch]
61+
exporters: [debug]
62+
63+
logs:
64+
receivers: [otlp]
65+
processors: [batch]
66+
exporters: [debug]
67+
68+
extensions: [health_check, pprof, zpages]

0 commit comments

Comments
 (0)