forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
otelcol-config.yml
143 lines (135 loc) · 3.86 KB
/
otelcol-config.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
extensions:
health_check:
endpoint: 0.0.0.0:13133
http_forwarder:
ingress:
endpoint: 0.0.0.0:6060
egress:
# TODO: Ensure this is set properly
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
zpages:
receivers:
fluentforward:
endpoint: 0.0.0.0:24224
hostmetrics:
collection_interval: 10s
scrapers:
cpu:
disk:
filesystem:
memory:
network:
# System load average metrics https://en.wikipedia.org/wiki/Load_(computing)
load:
# Paging/Swap space utilization and I/O metrics
paging:
# Aggregated system process count metrics
processes:
# System processes metrics, disabled by default
# process:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
sapm:
endpoint: 0.0.0.0:7276
signalfx:
endpoint: 0.0.0.0:9943
# This section is used to collect OpenTelemetry metrics
# Even if just a SignalFx APM customer, these metrics are included
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: ['localhost:8888']
# If you want to use the environment filter
# In the SignalFx dashboard
#labels:
#environment: demo
metric_relabel_configs:
- source_labels: [ __name__ ]
regex: '.*grpc_io.*'
action: drop
# Enable Zipkin to support Istio Mixer Adapter
# https://github.com/signalfx/signalfx-istio-adapter
zipkin:
endpoint: 0.0.0.0:9411
redis:
endpoint: "valkey-cart:6379"
username: "valkey"
collection_interval: 10s
processors:
batch:
# Enabling the memory_limiter is strongly recommended for every pipeline.
# Configuration is based on the amount of memory allocated to the collector.
# For more information about memory limiter, see
# https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/memorylimiter/README.md
memory_limiter:
check_interval: 2s
limit_mib: ${SPLUNK_MEMORY_LIMIT_MIB}
resource/add_environment:
attributes:
- action: insert
value: test
key: deployment.environment
resourcedetection:
detectors:
- env
- system
timeout: 10s
override: true
exporters:
# Traces
otlphttp:
traces_endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace/otlp"
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
# Metrics
signalfx:
# TODO: Ensure this is set properly
access_token: "${SPLUNK_ACCESS_TOKEN}"
# TODO: Ensure this is set properly
realm: "${SPLUNK_REALM}"
sync_host_metadata: true
# Logs (can also be used to send traces)
splunk_hec:
token: "${SPLUNK_HEC_TOKEN}"
endpoint: "${SPLUNK_HEC_URL}/services/collector"
source: "otel"
sourcetype: "otel"
index: "astronomyshop"
profiling_data_enabled: false
tls:
insecure_skip_verify: false
service:
extensions: [health_check, http_forwarder, zpages]
# telemetry:
# logs:
# level: "debug"
pipelines:
traces:
receivers: [otlp, sapm, zipkin]
processors: [memory_limiter, batch, resourcedetection, resource/add_environment]
exporters: [ otlphttp, signalfx ]
metrics:
receivers: [otlp, signalfx, prometheus, hostmetrics]
processors: [memory_limiter, batch, resourcedetection, resource/add_environment]
exporters: [signalfx]
logs:
receivers: [otlp, signalfx, fluentforward]
processors: [memory_limiter, batch, resourcedetection, resource/add_environment]
exporters: [splunk_hec]
metrics/additional-receivers:
exporters:
- signalfx
processors:
- memory_limiter
- batch
- resourcedetection
- resource/add_environment
receivers:
- redis