From dd3d621441a973fac4223d2b8c74cf26e1506a8f Mon Sep 17 00:00:00 2001 From: sumologic-sanyaku-apps Date: Fri, 5 Jan 2024 09:54:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'assets/conf.d/?= =?UTF-8?q?windows.yaml'=20with=20remote=20'otelcol-examples/windows.yaml.?= =?UTF-8?q?example'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/conf.d/windows.yaml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/assets/conf.d/windows.yaml b/assets/conf.d/windows.yaml index fe444a18..55046ebe 100644 --- a/assets/conf.d/windows.yaml +++ b/assets/conf.d/windows.yaml @@ -1,10 +1,22 @@ receivers: windowseventlog/application/localhost: channel: Application + operators: + - type: add + field: resource["_sourceName"] + value: Application windowseventlog/security/localhost: channel: Security + operators: + - type: add + field: resource["_sourceName"] + value: Security windowseventlog/system/localhost: channel: System + operators: + - type: add + field: resource["_sourceName"] + value: System hostmetrics/localhost: collection_interval: 1m scrapers: @@ -25,16 +37,47 @@ receivers: network: null paging: null process: + include: + match_type: strict + names: + - otelcol-sumo.exe + mute_process_exe_error: true + mute_process_io_error: true mute_process_name_error: true metrics: process.threads: enabled: true + process.cpu.utilization: + enabled: true + process.memory.utilization: + enabled: true + process.disk.operations: + enabled: true processors: resource/windows_resource_attributes/localhost: attributes: - key: sumo.datasource value: windows action: insert + - key: _contentType + value: OpenTelemetry + action: insert + - key: _sourceCategory + value: otel/windows + action: insert + resource/windows_resource_attributes/metrics/localhost: + attributes: + - key: _source + value: windows/hostmetrics + action: insert + - key: _sourceName + value: windows + action: insert + resource/windows_resource_attributes/logs/localhost: + attributes: + - key: _source + value: windows/windowseventlog + action: insert service: pipelines: metrics/windows/localhost: @@ -43,6 +86,7 @@ service: processors: - memory_limiter - resourcedetection/system + - resource/windows_resource_attributes/metrics/localhost - resource/windows_resource_attributes/localhost - batch exporters: @@ -55,6 +99,7 @@ service: processors: - memory_limiter - resourcedetection/system + - resource/windows_resource_attributes/logs/localhost - resource/windows_resource_attributes/localhost - batch exporters: