From 1d2a6fa6ec31ac3d4cc7cfd9cfbe22984fbc3589 Mon Sep 17 00:00:00 2001 From: "shalk(xiao kun)" Date: Thu, 12 Dec 2024 19:46:28 +0800 Subject: [PATCH] Update configuration.md (#5654) Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> Co-authored-by: Severin Neumann --- content/en/docs/collector/configuration.md | 26 +++++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/content/en/docs/collector/configuration.md b/content/en/docs/collector/configuration.md index dc600b5c45ad..8ec8e03887fe 100644 --- a/content/en/docs/collector/configuration.md +++ b/content/en/docs/collector/configuration.md @@ -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: