Debian Codegraph @

otelconf/testdata/v0.2.yaml

raw
1 # kitchen-sink.yaml demonstrates all configurable surface area, including explanatory comments.
2 #
3 # It DOES NOT represent expected real world configuration, as it makes strange configuration
4 # choices in an effort to exercise the full surface area.
5 #
6 # Configuration values are set to their defaults when default values are defined.
7
8 # The file format version
9 file_format: "0.2"
10
11 # Configure if the SDK is disabled or not. This is not required to be provided
12 # to ensure the SDK isn't disabled, the default value when this is not provided
13 # is for the SDK to be enabled.
14 #
15 # Environment variable: OTEL_SDK_DISABLED
16 disabled: false
17
18 # Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits.
19 attribute_limits:
20 # Configure max attribute value size.
21 #
22 # Environment variable: OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
23 attribute_value_length_limit: 4096
24 # Configure max attribute count.
25 #
26 # Environment variable: OTEL_ATTRIBUTE_COUNT_LIMIT
27 attribute_count_limit: 128
28
29 # Configure logger provider.
30 logger_provider:
31 # Configure log record processors.
32 processors:
33 # Configure a batch log record processor.
34 - batch:
35 # Configure delay interval (in milliseconds) between two consecutive exports.
36 #
37 # Environment variable: OTEL_BLRP_SCHEDULE_DELAY
38 schedule_delay: 5000
39 # Configure maximum allowed time (in milliseconds) to export data.
40 #
41 # Environment variable: OTEL_BLRP_EXPORT_TIMEOUT
42 export_timeout: 30000
43 # Configure maximum queue size.
44 #
45 # Environment variable: OTEL_BLRP_MAX_QUEUE_SIZE
46 max_queue_size: 2048
47 # Configure maximum batch size.
48 #
49 # Environment variable: OTEL_BLRP_MAX_EXPORT_BATCH_SIZE
50 max_export_batch_size: 512
51 # Configure exporter.
52 #
53 # Environment variable: OTEL_LOGS_EXPORTER
54 exporter:
55 # Configure exporter to be OTLP.
56 otlp:
57 # Configure protocol.
58 #
59 # Environment variable: OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_LOGS_PROTOCOL
60 protocol: http/protobuf
61 # Configure endpoint.
62 #
63 # Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
64 endpoint: http://localhost:4318
65 # Configure certificate.
66 #
67 # Environment variable: OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE
68 certificate: /app/cert.pem
69 # Configure mTLS private client key.
70 #
71 # Environment variable: OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY
72 client_key: /app/cert.pem
73 # Configure mTLS client certificate.
74 #
75 # Environment variable: OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE
76 client_certificate: /app/cert.pem
77 # Configure headers.
78 #
79 # Environment variable: OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_LOGS_HEADERS
80 headers:
81 api-key: "1234"
82 # Configure compression.
83 #
84 # Environment variable: OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_LOGS_COMPRESSION
85 compression: gzip
86 # Configure max time (in milliseconds) to wait for each export.
87 #
88 # Environment variable: OTEL_EXPORTER_OTLP_TIMEOUT, OTEL_EXPORTER_OTLP_LOGS_TIMEOUT
89 timeout: 10000
90 # Configure client transport security for the exporter's connection.
91 #
92 # Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_LOGS_INSECURE
93 insecure: false
94 # Configure a simple span processor.
95 - simple:
96 # Configure exporter.
97 exporter:
98 # Configure exporter to be console.
99 console: {}
100 # Configure log record limits. See also attribute_limits.
101 limits:
102 # Configure max log record attribute value size. Overrides attribute_limits.attribute_value_length_limit.
103 #
104 # Environment variable: OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT
105 attribute_value_length_limit: 4096
106 # Configure max log record attribute count. Overrides attribute_limits.attribute_count_limit.
107 #
108 # Environment variable: OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT
109 attribute_count_limit: 128
110
111 # Configure meter provider.
112 meter_provider:
113 # Configure metric readers.
114 readers:
115 # Configure a pull-based metric reader.
116 - pull:
117 # Configure exporter.
118 #
119 # Environment variable: OTEL_METRICS_EXPORTER
120 exporter:
121 # Configure exporter to be prometheus.
122 prometheus:
123 # Configure host.
124 #
125 # Environment variable: OTEL_EXPORTER_PROMETHEUS_HOST
126 host: localhost
127 # Configure port.
128 #
129 # Environment variable: OTEL_EXPORTER_PROMETHEUS_PORT
130 port: 9464
131 # Configure Prometheus Exporter to produce metrics without a unit suffix or UNIT metadata.
132 without_units: false
133 # Configure Prometheus Exporter to produce metrics without a type suffix.
134 without_type_suffix: false
135 # Configure Prometheus Exporter to produce metrics without a scope info metric.
136 without_scope_info: false
137 # Configure Prometheus Exporter to add resource attributes as metrics attributes.
138 with_resource_constant_labels:
139 # Configure resource attributes to be included, in this example attributes starting with service.
140 included:
141 - "service*"
142 # Configure resource attributes to be excluded, in this example attribute service.attr1.
143 excluded:
144 - "service.attr1"
145 # Configure a periodic metric reader.
146 - periodic:
147 # Configure delay interval (in milliseconds) between start of two consecutive exports.
148 #
149 # Environment variable: OTEL_METRIC_EXPORT_INTERVAL
150 interval: 5000
151 # Configure maximum allowed time (in milliseconds) to export data.
152 #
153 # Environment variable: OTEL_METRIC_EXPORT_TIMEOUT
154 timeout: 30000
155 # Configure exporter.
156 #
157 # Environment variable: OTEL_METRICS_EXPORTER
158 exporter:
159 # Configure exporter to be OTLP.
160 otlp:
161 # Configure protocol.
162 #
163 # Environment variable: OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_METRICS_PROTOCOL
164 protocol: http/protobuf
165 # Configure endpoint.
166 #
167 # Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
168 endpoint: http://localhost:4318
169 # Configure certificate.
170 #
171 # Environment variable: OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE
172 certificate: /app/cert.pem
173 # Configure mTLS private client key.
174 #
175 # Environment variable: OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY
176 client_key: /app/cert.pem
177 # Configure mTLS client certificate.
178 #
179 # Environment variable: OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE
180 client_certificate: /app/cert.pem
181 # Configure headers.
182 #
183 # Environment variable: OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS
184 headers:
185 api-key: !!str 1234
186 # Configure compression.
187 #
188 # Environment variable: OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_METRICS_COMPRESSION
189 compression: gzip
190 # Configure max time (in milliseconds) to wait for each export.
191 #
192 # Environment variable: OTEL_EXPORTER_OTLP_TIMEOUT, OTEL_EXPORTER_OTLP_METRICS_TIMEOUT
193 timeout: 10000
194 # Configure client transport security for the exporter's connection.
195 #
196 # Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_METRICS_INSECURE
197 insecure: false
198 # Configure temporality preference.
199 #
200 # Environment variable: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
201 temporality_preference: delta
202 # Configure default histogram aggregation.
203 #
204 # Environment variable: OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION
205 default_histogram_aggregation: base2_exponential_bucket_histogram
206 # Configure a periodic metric reader.
207 - periodic:
208 # Configure exporter.
209 exporter:
210 # Configure exporter to be console.
211 console: {}
212 # Configure views. Each view has a selector which determines the instrument(s) it applies to, and a configuration for the resulting stream(s).
213 views:
214 # Configure a view.
215 - selector:
216 # Configure instrument name selection criteria.
217 instrument_name: my-instrument
218 # Configure instrument type selection criteria.
219 instrument_type: histogram
220 # Configure the instrument unit selection criteria.
221 unit: ms
222 # Configure meter name selection criteria.
223 meter_name: my-meter
224 # Configure meter version selection criteria.
225 meter_version: 1.0.0
226 # Configure meter schema url selection criteria.
227 meter_schema_url: https://opentelemetry.io/schemas/1.16.0
228 # Configure stream.
229 stream:
230 # Configure metric name of the resulting stream(s).
231 name: new_instrument_name
232 # Configure metric description of the resulting stream(s).
233 description: new_description
234 # Configure aggregation of the resulting stream(s). Known values include: default, drop, explicit_bucket_histogram, base2_exponential_bucket_histogram, last_value, sum.
235 aggregation:
236 # Configure aggregation to be explicit_bucket_histogram.
237 explicit_bucket_histogram:
238 # Configure bucket boundaries.
239 boundaries: [ 0.0, 5.0, 10.0, 25.0, 50.0, 75.0, 100.0, 250.0, 500.0, 750.0, 1000.0, 2500.0, 5000.0, 7500.0, 10000.0 ]
240 # Configure record min and max.
241 record_min_max: true
242 # Configure attribute keys retained in the resulting stream(s).
243 attribute_keys:
244 - key1
245 - key2
246
247 # Configure text map context propagators.
248 #
249 # Environment variable: OTEL_PROPAGATORS
250 propagator:
251 composite: [tracecontext, baggage, b3, b3multi, jaeger, xray, ottrace]
252
253 # Configure tracer provider.
254 tracer_provider:
255 # Configure span processors.
256 processors:
257 # Configure a batch span processor.
258 - batch:
259 # Configure delay interval (in milliseconds) between two consecutive exports.
260 #
261 # Environment variable: OTEL_BSP_SCHEDULE_DELAY
262 schedule_delay: 5000
263 # Configure maximum allowed time (in milliseconds) to export data.
264 #
265 # Environment variable: OTEL_BSP_EXPORT_TIMEOUT
266 export_timeout: 30000
267 # Configure maximum queue size.
268 #
269 # Environment variable: OTEL_BSP_MAX_QUEUE_SIZE
270 max_queue_size: 2048
271 # Configure maximum batch size.
272 #
273 # Environment variable: OTEL_BSP_MAX_EXPORT_BATCH_SIZE
274 max_export_batch_size: 512
275 # Configure exporter.
276 #
277 # Environment variable: OTEL_TRACES_EXPORTER
278 exporter:
279 # Configure exporter to be OTLP.
280 otlp:
281 # Configure protocol.
282 #
283 # Environment variable: OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
284 protocol: http/protobuf
285 # Configure endpoint.
286 #
287 # Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
288 endpoint: http://localhost:4318
289 # Configure certificate.
290 #
291 # Environment variable: OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE
292 certificate: /app/cert.pem
293 # Configure mTLS private client key.
294 #
295 # Environment variable: OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY
296 client_key: /app/cert.pem
297 # Configure mTLS client certificate.
298 #
299 # Environment variable: OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE
300 client_certificate: /app/cert.pem
301 # Configure headers.
302 #
303 # Environment variable: OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TRACES_HEADERS
304 headers:
305 api-key: !!str 1234
306 # Configure compression.
307 #
308 # Environment variable: OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_TRACES_COMPRESSION
309 compression: gzip
310 # Configure max time (in milliseconds) to wait for each export.
311 #
312 # Environment variable: OTEL_EXPORTER_OTLP_TIMEOUT, OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
313 timeout: 10000
314 # Configure client transport security for the exporter's connection.
315 #
316 # Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_TRACES_INSECURE
317 insecure: false
318 # Configure a batch span processor.
319 - batch:
320 # Configure exporter.
321 #
322 # Environment variable: OTEL_TRACES_EXPORTER
323 exporter:
324 # Configure exporter to be zipkin.
325 zipkin:
326 # Configure endpoint.
327 #
328 # Environment variable: OTEL_EXPORTER_ZIPKIN_ENDPOINT
329 endpoint: http://localhost:9411/api/v2/spans
330 # Configure max time (in milliseconds) to wait for each export.
331 #
332 # Environment variable: OTEL_EXPORTER_ZIPKIN_TIMEOUT
333 timeout: 10000
334 # Configure a simple span processor.
335 - simple:
336 # Configure exporter.
337 exporter:
338 # Configure exporter to be console.
339 console: {}
340 # Configure span limits. See also attribute_limits.
341 limits:
342 # Configure max span attribute value size. Overrides attribute_limits.attribute_value_length_limit.
343 #
344 # Environment variable: OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT
345 attribute_value_length_limit: 4096
346 # Configure max span attribute count. Overrides attribute_limits.attribute_count_limit.
347 #
348 # Environment variable: OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT
349 attribute_count_limit: 128
350 # Configure max span event count.
351 #
352 # Environment variable: OTEL_SPAN_EVENT_COUNT_LIMIT
353 event_count_limit: 128
354 # Configure max span link count.
355 #
356 # Environment variable: OTEL_SPAN_LINK_COUNT_LIMIT
357 link_count_limit: 128
358 # Configure max attributes per span event.
359 #
360 # Environment variable: OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT
361 event_attribute_count_limit: 128
362 # Configure max attributes per span link.
363 #
364 # Environment variable: OTEL_LINK_ATTRIBUTE_COUNT_LIMIT
365 link_attribute_count_limit: 128
366 # Configure the sampler.
367 sampler:
368 # Configure sampler to be parent_based. Known values include: always_off, always_on, jaeger_remote, parent_based, trace_id_ratio_based.
369 #
370 # Environment variable: OTEL_TRACES_SAMPLER=parentbased_*
371 parent_based:
372 # Configure root sampler.
373 #
374 # Environment variable: OTEL_TRACES_SAMPLER=parentbased_traceidratio
375 root:
376 # Configure sampler to be trace_id_ratio_based.
377 trace_id_ratio_based:
378 # Configure trace_id_ratio.
379 #
380 # Environment variable: OTEL_TRACES_SAMPLER_ARG=traceidratio=0.0001
381 ratio: 0.0001
382 # Configure remote_parent_sampled sampler.
383 remote_parent_sampled:
384 # Configure sampler to be always_on.
385 always_on: {}
386 # Configure remote_parent_not_sampled sampler.
387 remote_parent_not_sampled:
388 # Configure sampler to be always_off.
389 always_off: {}
390 # Configure local_parent_sampled sampler.
391 local_parent_sampled:
392 # Configure sampler to be always_on.
393 always_on: {}
394 # Configure local_parent_not_sampled sampler.
395 local_parent_not_sampled:
396 # Configure sampler to be always_off.
397 always_off: {}
398
399 # Configure resource for all signals.
400 resource:
401 # Configure resource attributes.
402 #
403 # Environment variable: OTEL_RESOURCE_ATTRIBUTES
404 attributes:
405 # Configure `service.name` resource attribute
406 #
407 # Environment variable: OTEL_SERVICE_NAME
408 service.name: !!str "unknown_service"
409 # Configure resource detectors.
410 detectors:
411 # Configure attributes provided by resource detectors.
412 attributes:
413 # Configure list of attribute key patterns to include from resource detectors. If not set, all attributes are included.
414 #
415 # Attribute keys from resource detectors are evaluated to match as follows:
416 # * If the value of the attribute key exactly matches.
417 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
418 included:
419 - process.*
420 # Configure list of attribute key patterns to exclude from resource detectors. Applies after .resource.detectors.attributes.included (i.e. excluded has higher priority than included).
421 #
422 # Attribute keys from resource detectors are evaluated to match as follows:
423 # * If the value of the attribute key exactly matches.
424 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
425 excluded:
426 - process.command_args
427 # Configure the resource schema URL.
428 schema_url: https://opentelemetry.io/schemas/1.16.0