Skip to content

Commit

Permalink
Update configuration.md (#5654)
Browse files Browse the repository at this point in the history
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Severin Neumann <[email protected]>
  • Loading branch information
3 people authored Dec 12, 2024
1 parent 7a06a85 commit 1d2a6fa
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions content/en/docs/collector/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,28 @@ processors:
# Data sources: traces, metrics, logs
batch:
# Data sources: metrics
# Data sources: metrics, metrics, logs
filter:
error_mode: ignore
traces:
span:
- 'attributes["container.name"] == "app_container_1"'
- 'resource.attributes["host.name"] == "localhost"'
- 'name == "app_3"'
spanevent:
- 'attributes["grpc"] == true'
- 'IsMatch(name, ".*grpc.*")'
metrics:
include:
match_type: regexp
metric_names:
- prefix/.*
- prefix_.*
metric:
- 'name == "my.metric" and resource.attributes["my_label"] == "abc123"'
- 'type == METRIC_DATA_TYPE_HISTOGRAM'
datapoint:
- 'metric.type == METRIC_DATA_TYPE_SUMMARY'
- 'resource.attributes["service.name"] == "my_service_name"'
logs:
log_record:
- 'IsMatch(body, ".*password.*")'
- 'severity_number < SEVERITY_NUMBER_WARN'
# Data sources: traces, metrics, logs
memory_limiter:
Expand Down

0 comments on commit 1d2a6fa

Please sign in to comment.