Skip to content

Commit 1d2a6fa

Browse files
shalkopentelemetrybotsvrnm
authored
Update configuration.md (#5654)
Co-authored-by: opentelemetrybot <[email protected]> Co-authored-by: Severin Neumann <[email protected]>
1 parent 7a06a85 commit 1d2a6fa

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

content/en/docs/collector/configuration.md

+20-6
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,28 @@ processors:
350350
# Data sources: traces, metrics, logs
351351
batch:
352352
353-
# Data sources: metrics
353+
# Data sources: metrics, metrics, logs
354354
filter:
355+
error_mode: ignore
356+
traces:
357+
span:
358+
- 'attributes["container.name"] == "app_container_1"'
359+
- 'resource.attributes["host.name"] == "localhost"'
360+
- 'name == "app_3"'
361+
spanevent:
362+
- 'attributes["grpc"] == true'
363+
- 'IsMatch(name, ".*grpc.*")'
355364
metrics:
356-
include:
357-
match_type: regexp
358-
metric_names:
359-
- prefix/.*
360-
- prefix_.*
365+
metric:
366+
- 'name == "my.metric" and resource.attributes["my_label"] == "abc123"'
367+
- 'type == METRIC_DATA_TYPE_HISTOGRAM'
368+
datapoint:
369+
- 'metric.type == METRIC_DATA_TYPE_SUMMARY'
370+
- 'resource.attributes["service.name"] == "my_service_name"'
371+
logs:
372+
log_record:
373+
- 'IsMatch(body, ".*password.*")'
374+
- 'severity_number < SEVERITY_NUMBER_WARN'
361375
362376
# Data sources: traces, metrics, logs
363377
memory_limiter:

0 commit comments

Comments
 (0)