This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
/
0225-config.yaml
420 lines (420 loc) · 18.7 KB
/
0225-config.yaml
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# include version specification in configuration files to help with parsing and schema evolution.
scheme_version: 0.1
sdk:
# Disable the SDK for all signals.
#
# Boolean value. If "true", a no-op SDK implementation will be used for all telemetry
# signals. Any other value or absence of the variable will have no effect and the SDK
# will remain enabled. This setting has no effect on propagators configured through
# the OTEL_PROPAGATORS variable.
#
# Environment variable: OTEL_SDK_DISABLED
disabled: false
# Configure resource attributes and resource detection for all signals.
resource:
# Key-value pairs to be used as resource attributes.
#
# Environment variable: OTEL_RESOURCE_ATTRIBUTES
attributes:
# Sets the value of the `service.name` resource attribute
#
# Environment variable: OTEL_SERVICE_NAME
service.name: !!str "unknown_service"
# Configure context propagators. Each propagator has a name used to configure it.
#
# Environment variable: OTEL_PROPAGATORS
propagators: [tracecontext, baggage, b3multi]
# Configure general attribute limits. See also sdk.tracer_provider.span_limits, sdk.logger_provider.log_record_limits.
attribute_limits:
# Set the max attribute value size.
#
# Environment variable: OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
attribute_value_length_limit: 4096
# Set the max attribute count.
#
# Environment variable: OTEL_ATTRIBUTE_COUNT_LIMIT
attribute_count_limit: 128
# Configure the tracer provider.
tracer_provider:
# Span exporters. Each exporter key refers to the type of the exporter. Values configure the exporter. Exporters must be associated with a span processor.
exporters:
# Configure the otlp exporter.
otlp:
# Sets the protocol.
#
# Environment variable: OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
protocol: http/protobuf
# Sets the endpoint.
#
# Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
endpoint: http://localhost:4318/v1/traces
# Sets the certificate.
#
# Environment variable: OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE
certificate: /app/cert.pem
# Sets the mTLS private client key.
#
# Environment variable: OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY
client_key: /app/cert.pem
# Sets the mTLS client certificate.
#
# Environment variable: OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE
client_certificate: /app/cert.pem
# Sets the headers.
#
# Environment variable: OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TRACES_HEADERS
headers:
api-key: 1234
# Sets the compression.
#
# Environment variable: OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_TRACES_COMPRESSION
compression: gzip
# Sets the max time to wait for each export.
#
# Environment variable: OTEL_EXPORTER_OTLP_TIMEOUT, OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
timeout: 10000
# Configure the zipkin exporter.
zipkin:
# Sets the endpoint.
#
# Environment variable: OTEL_EXPORTER_ZIPKIN_ENDPOINT
endpoint: http://localhost:9411/api/v2/spans
# Sets the max time to wait for each export.
#
# Environment variable: OTEL_EXPORTER_ZIPKIN_TIMEOUT
timeout: 10000
# Configure the jaeger exporter.
jaeger:
# Sets the protocol.
#
# Environment variable: OTEL_EXPORTER_JAEGER_PROTOCOL
protocol: http/thrift.binary
# Sets the endpoint. Applicable when protocol is http/thrift.binary or grpc.
#
# Environment variable: OTEL_EXPORTER_JAEGER_ENDPOINT
endpoint: http://localhost:14268/api/traces
# Sets the max time to wait for each export. Applicable when protocol is http/thrift.binary or grpc.
#
# Environment variable: OTEL_EXPORTER_JAEGER_TIMEOUT
timeout: 10000
# Sets the username for HTTP basic authentication. Applicable when protocol is http/thrift.binary or grpc.
#
# Environment variable: OTEL_EXPORTER_JAEGER_USER
user: user
# Sets the password for HTTP basic authentication. Applicable when protocol is http/thrift.binary or grpc.
#
# Environment variable: OTEL_EXPORTER_JAEGER_PASSWORD
password: password
# Sets the hostname of the Jaeger agent. Applicable when protocol is udp/thrift.compact or udp/thrift.binary.
#
# Environment variable: OTEL_EXPORTER_JAEGER_AGENT_PORT
agent_host: localhost
# Sets the port of the Jaeger agent. Applicable when protocol is udp/thrift.compact or udp/thrift.binary.
#
# Environment variable: OTEL_EXPORTER_JAEGER_AGENT_HOST
agent_port: 6832
# List of span processors. Each span processor has a type and args used to configure it.
span_processors:
# Add a batch span processor.
#
# Environment variable: OTEL_BSP_*, OTEL_TRACES_EXPORTER
- type: batch
# Configure the batch span processor.
args:
# Sets the delay interval between two consecutive exports.
#
# Environment variable: OTEL_BSP_SCHEDULE_DELAY
schedule_delay: 5000
# Sets the maximum allowed time to export data.
#
# Environment variable: OTEL_BSP_EXPORT_TIMEOUT
export_timeout: 30000
# Sets the maximum queue size.
#
# Environment variable: OTEL_BSP_MAX_QUEUE_SIZE
max_queue_size: 2048
# Sets the maximum batch size.
#
# Environment variable: OTEL_BSP_MAX_EXPORT_BATCH_SIZE
max_export_batch_size: 512
# Sets the exporter. Exporter must refer to a key in sdk.tracer_provider.exporters.
#
# Environment variable: OTEL_TRACES_EXPORTER
exporter: otlp
# Add a batch span processor configured with zipkin exporter. For full description of options see sdk.tracer_provider.span_processors[0].
- type: batch
args:
exporter: zipkin
# Add a batch span processor configured with jaeger exporter. For full description of options see sdk.tracer_provider.span_processors[0].
- type: batch
args:
exporter: jaeger
# Configure the span limits. See also sdk.attribute_limits.
span_limits:
# Set the max span attribute value size. Overrides sdk.attribute_limits.attribute_value_length_limit.
#
# Environment variable: OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT
attribute_value_length_limit: 4096
# Set the max span attribute count. Overrides sdk.attribute_limits.attribute_count_limit.
#
# Environment variable: OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT
attribute_count_limit: 128
# Set the max span event count.
#
# Environment variable: OTEL_SPAN_EVENT_COUNT_LIMIT
event_count_limit: 128
# Set the max span link count.
#
# Environment variable: OTEL_SPAN_LINK_COUNT_LIMIT
link_count_limit: 128
# Set the max attributes per span event.
#
# Environment variable: OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT
event_attribute_count_limit: 128
# Set the max attributes per span link.
#
# Environment variable: OTEL_LINK_ATTRIBUTE_COUNT_LIMIT
link_attribute_count_limit: 128
# Configuration for samplers. Each key refers to the type of sampler. Values configure the sampler. One key must be referenced in sdk.tracer_provider.sampler.
sampler_config:
# Configure the always_on sampler.
#
# Environment variable: OTEL_TRACES_SAMPLER=always_on
always_on:
# Configure the always_off sampler.
#
# Environment variable: OTEL_TRACES_SAMPLER=always_off
always_off:
# Configure the trace_id_ratio_based sampler.
#
# Environment variable: OTEL_TRACES_SAMPLER=traceidratio
trace_id_ratio_based:
# Set the sampling ratio.
#
# Environment variable: OTEL_TRACES_SAMPLER=traceidratio, OTEL_TRACES_SAMPLER_ARG=0.0001
ratio: 0.0001
# Configure the parent_based sampler.
#
# Environment variable: OTEL_TRACES_SAMPLER=parentbased_*
parent_based:
# Set root sampler. Must refer a key in sdk.tracer_provider.sampler_config.
#
# Environment variable: OTEL_TRACES_SAMPLER=parentbased_*
root: trace_id_ratio_based
# Set the sampler used when the parent is remote and is sampled. Must refer a key in sdk.tracer_provider.sampler_config.
remote_parent_sampled: always_on
# Set the sampler used when the parent is remote and is not sampled. Must refer a key in sdk.tracer_provider.sampler_config.
remote_parent_not_sampled: always_off
# Set the sampler used when the parent is local and is sampled. Must refer a key in sdk.tracer_provider.sampler_config.
local_parent_sampled: always_on
# Set the sampler used when the parent is local and is not sampled. Must refer a key in sdk.tracer_provider.sampler_config.
local_parent_not_sampled: always_off
# Configure the jaeger_remote sampler.
#
# Environment variable: OTEL_TRACES_SAMPLER=jaeger_remote
jaeger_remote:
# Set the endpoint.
#
# Environment variable: OTEL_TRACES_SAMPLER=jaeger_remote, OTEL_TRACES_SAMPLER_ARG=endpoint=http://localhost:14250
endpoint: http://localhost:14250
# Set the polling interval.
#
# Environment variable: OTEL_TRACES_SAMPLER=jaeger_remote, OTEL_TRACES_SAMPLER_ARG=pollingINtervalMs=5000
polling_interval: 5000
# Set the initial sampling rate.
#
# Environment variable: OTEL_TRACES_SAMPLER=jaeger_remote, OTEL_TRACES_SAMPLER_ARG=initialSamplingRate=0.25
initial_sampling_rate: 0.25
# Set the sampler. Sampler must refer to a key in sdk.tracer_provider.sampler_config.
sampler: parent_based
# Configure the meter provider.
meter_provider:
# Metric exporters. Each exporter key refers to the type of the exporter. Values configure the exporter. Exporters must be associated with a metric reader.
exporters:
# Configure the otlp exporter.
otlp:
# Sets the protocol.
#
# Environment variable: OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_METRICS_PROTOCOL
protocol: http/protobuf
# Sets the endpoint.
#
# Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
endpoint: http://localhost:4318/v1/metrics
# Sets the certificate.
#
# Environment variable: OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE
certificate: /app/cert.pem
# Sets the mTLS private client key.
#
# Environment variable: OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY
client_key: /app/cert.pem
# Sets the mTLS client certificate.
#
# Environment variable: OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE
client_certificate: /app/cert.pem
# Sets the headers.
#
# Environment variable: OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS
headers:
api-key: 1234
# Sets the compression.
#
# Environment variable: OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_METRICS_COMPRESSION
compression: gzip
# Sets the max time to wait for each export.
#
# Environment variable: OTEL_EXPORTER_OTLP_TIMEOUT, OTEL_EXPORTER_OTLP_METRICS_TIMEOUT
timeout: 10000
# Sets the temporality preference.
#
# Environment variable: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
temporality_preference: delta
# Sets the default histogram aggregation.
#
# Environment variable: OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION
default_histogram_aggregation: exponential_bucket_histogram
# List of metric readers. Each metric reader has a type and args used to configure it.
metric_readers:
# Add a periodic metric reader.
#
# Environment variable: OTEL_METRICS_EXPORT_*, OTEL_METRICS_EXPORTER
- type: periodic
args:
# Sets delay interval between the start of two consecutive export attempts.
#
# Environment variable: OTEL_METRIC_EXPORT_INTERVAL
interval: 5000
# Sets the maximum allowed time to export data.
#
# Environment variable: OTEL_METRIC_EXPORT_TIMEOUT
timeout: 30000
# Sets the exporter. Exporter must refer to a key in sdk.meter_provider.exporters.
#
# Environment variable: OTEL_METRICS_EXPORTER
exporter: otlp
# Add a prometheus metric reader. Some languages SDKs may implement this as a metric exporter.
#
# Environment variable: OTEL_METRICS_EXPORTER=prometheus
- type: prometheus
args:
# Set the host used to serve metrics in the prometheus format.
#
# Environment variable: OTEL_EXPORTER_PROMETHEUS_HOST
host: localhost
# Set the port used to serve metrics in the prometheus format.
#
# Environment variable: OTEL_EXPORTER_PROMETHEUS_PORT
port: 9464
# List of views. Each view has a selector which determines the instrument(s) it applies to, and a view which configures resulting metric(s).
views:
# Add a view. The selection criteria and view aim to demonstrate the configuration surface area and are not representative of what a user would be expected to do.
- selector:
# Select instrument(s) by name.
instrument_name: my-instrument
# Select instrument(s) by type.
instrument_type: histogram
# Select instrument(s) by meter name.
meter_name: my-meter
# Select instrument(s) by meter version.
meter_version: 1.0.0
# Select instrument(s) by meter schema URL.
meter_schema_url: https://opentelemetry.io/schemas/1.16.0
view:
# Set the name of resulting metric(s).
name: new_instrument_name
# Set the description of resulting metric(s).
description: new_description
# Set the aggregation of resulting metric(s). Aggregation has a type an args used to configure it.
aggregation:
# Set the aggregation type. Options include: default, drop, sum, last_value, explicit_bucket_histogram, exponential_bucket_histogram.
type: explicit_bucket_histogram
# Configure the aggregation.
args:
# Set the bucket boundaries. Applicable when aggregation is explicit_bucket_histogram.
boundaries: [1.0, 2.0, 5.0]
# Set whether min and max are recorded. Applicable when aggregation is explicit_bucket_histogram or exponential_bucket_histogram.
record_min_max: true
# Sets the max number of buckets in each of the positive and negative ranges. Applicable when aggregation is exponential_bucket_histogram.
max_size: 160
# Set the attribute keys to retain.
attribute_keys:
- key1
- key2
# Configure the logger provider.
logger_provider:
# Log record exporters. Each exporter key refers to the type of the exporter. Values configure the exporter. Exporters must be associated with a log record processor.
exporters:
# Configure the otlp exporter.
otlp:
# Sets the protocol.
#
# Environment variable: OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_LOGS_PROTOCOL
protocol: http/protobuf
# Sets the endpoint.
#
# Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
endpoint: http://localhost:4318/v1/logs
# Sets the certificate.
#
# Environment variable: OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE
certificate: /app/cert.pem
# Sets the mTLS private client key.
#
# Environment variable: OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY
client_key: /app/cert.pem
# Sets the mTLS client certificate.
#
# Environment variable: OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE
client_certificate: /app/cert.pem
# Sets the headers.
#
# Environment variable: OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_LOGS_HEADERS
headers:
api-key: 1234
# Sets the compression.
#
# Environment variable: OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_LOGS_COMPRESSION
compression: gzip
# Sets the max time to wait for each export.
#
# Environment variable: OTEL_EXPORTER_OTLP_TIMEOUT, OTEL_EXPORTER_OTLP_LOGS_TIMEOUT
timeout: 10000
# List of log record processors. Each log record processor has a type and args used to configure it.
log_record_processors:
# Add a batch log record processor.
#
# Environment variable: OTEL_BLRP_*, OTEL_LOGS_EXPORTER
- type: batch
# Configure the batch log record processor.
args:
# Sets the delay interval between two consecutive exports.
#
# Environment variable: OTEL_BLRP_SCHEDULE_DELAY
schedule_delay: 5000
# Sets the maximum allowed time to export data.
#
# Environment variable: OTEL_BLRP_EXPORT_TIMEOUT
export_timeout: 30000
# Sets the maximum queue size.
#
# Environment variable: OTEL_BLRP_MAX_QUEUE_SIZE
max_queue_size: 2048
# Sets the maximum batch size.
#
# Environment variable: OTEL_BLRP_MAX_EXPORT_BATCH_SIZE
max_export_batch_size: 512
# Sets the exporter. Exporter must refer to a key in sdk.loger_provider.exporters.
#
# Environment variable: OTEL_LOGS_EXPORTER
exporter: otlp
# Configure the log record limits. See also sdk.attribute_limits.
log_record_limits:
# Set the max log record attribute value size. Overrides sdk.attribute_limits.attribute_value_length_limit.
#
# Environment variable: OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT
attribute_value_length_limit: 4096
# Set the max log record attribute count. Overrides sdk.attribute_limits.attribute_count_limit.
#
# Environment variable: OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT
attribute_count_limit: 128