From 39191a837ed04e8a988cadaea2cf5b047ea6cf5c Mon Sep 17 00:00:00 2001 From: Paramadon Date: Mon, 16 Dec 2024 21:23:02 +0100 Subject: [PATCH] tyring to fix windows --- .../sampleConfig/complete_windows_config.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/translator/tocwconfig/sampleConfig/complete_windows_config.yaml b/translator/tocwconfig/sampleConfig/complete_windows_config.yaml index 1819607b74..e7fa12f152 100644 --- a/translator/tocwconfig/sampleConfig/complete_windows_config.yaml +++ b/translator/tocwconfig/sampleConfig/complete_windows_config.yaml @@ -127,6 +127,7 @@ processors: - InstanceId - InstanceType imds_retries: 1 + middleware: agenthealth/statuscode refresh_interval_seconds: 0s transform: error_mode: propagate @@ -135,10 +136,10 @@ processors: metric_statements: - context: metric statements: - - set(unit, "PERCENT") where name == "LogicalDisk_% Idle Time" - - set(name, "DISK_READ") where name == "LogicalDisk_% Disk Read Time" - - set(unit, "PERCENT") where name == "Processor_% Idle Time" - - set(name, "CPU_IDLE") where name == "Processor_% Idle Time" + - set(unit, "PERCENT") where name == "Processor % Idle Time" + - set(name, "CPU_IDLE") where name == "Processor % Idle Time" + - set(unit, "PERCENT") where name == "LogicalDisk % Idle Time" + - set(name, "DISK_READ") where name == "LogicalDisk % Disk Read Time" trace_statements: [] receivers: awsxray: @@ -270,14 +271,14 @@ service: - ec2tagger - transform receivers: + - telegraf_win_perf_counters/1063858558 - telegraf_nvidia_smi - - telegraf_win_perf_counters/3762679655 + - telegraf_win_perf_counters/4283769065 - telegraf_win_perf_counters/3081249416 - - telegraf_procstat/1340600742 - telegraf_win_perf_counters/1492679118 - - telegraf_win_perf_counters/4283769065 - telegraf_win_perf_counters/2402387132 - - telegraf_win_perf_counters/1063858558 + - telegraf_win_perf_counters/3762679655 + - telegraf_procstat/1340600742 metrics/hostCustomMetrics: exporters: - awscloudwatch