-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopentelemetry_collector_config.yaml
More file actions
75 lines (69 loc) · 2.22 KB
/
Copy pathopentelemetry_collector_config.yaml
File metadata and controls
75 lines (69 loc) · 2.22 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Run : ./otelcol --config=./opentelemetry_collector_config.yaml
# The OpenTelemetry Collector uses port 8888 by default to expose its own internal metrics in the Prometheus format. This port is used for monitoring the collector's performance and resource consumption, not for receiving general telemetry data from other services.
# http://localhost:8899/metrics
extensions:
health_check:
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
# Prometheus 형식으로 메트릭 수집 (Pull 방식)
prometheus:
config:
scrape_configs:
#- job_name: 'otel-collector'
# scrape_interval: 10s
# static_configs:
# - targets: ['0.0.0.0:8889']
#- job_name: 'otel-collector-custom-es-metrics'
# scrape_interval: 10s
# static_configs:
# - targets: ['0.0.0.0:5001']
- job_name: 'otel-collector-dev-exporter-metrics'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:9002']
processors:
batch: # 데이터를 묶어서 전송 (효율화)
exporters:
debug:
# Prometheus로 다시 전달하거나, 다른 곳으로 전송
prometheus:
endpoint: "0.0.0.0:8889"
# 또는 Prometheus Remote Write 사용
# prometheusremotewrite:
# endpoint: "http://prometheus:9090/api/v1/write"
# otlp:
# endpoint: 0.0.0.0:4317
# tls:
# insecure: true
jaeger:
endpoint: "jaeger:14250"
tls:
insecure: true
service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: "0.0.0.0"
port: 8899
pipelines:
traces:
receivers: [otlp] # <-- Must include 'otlp'
# exporters: [debug] # Or whatever exporter you are using
exporters: [debug] # Or whatever exporter you are using
metrics:
receivers: [otlp, prometheus]
processors: [batch]
# exporters: [otlp, prometheus] # 또는 prometheusremotewrite
exporters: [prometheus] # 또는 prometheusremotewrite