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: