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: