Skip to content

Commit 84d89b2

Browse files
committed
Test works just need to fix other tests
1 parent f51a244 commit 84d89b2

69 files changed

Lines changed: 1490 additions & 312 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aws/amazon-cloudwatch-agent
22

3-
go 1.24.4
3+
go 1.24.0
44

55
replace github.com/influxdata/telegraf => github.com/aws/telegraf v0.10.2-0.20250113150713-a2dfaa4cdf6d
66

translator/tocwconfig/sampleConfig/advanced_config_darwin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ processors:
4747
ec2_instance_tag_keys:
4848
- AutoScalingGroupName
4949
ec2_metadata_tags:
50+
- ImageId
5051
- InstanceId
5152
- InstanceType
52-
- ImageId
5353
imds_retries: 1
5454
middleware: agenthealth/statuscode
5555
refresh_tags_interval: 0s

translator/tocwconfig/sampleConfig/advanced_config_linux.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ service:
100100
- ec2tagger
101101
- awsentity/resource
102102
receivers:
103-
- telegraf_mem
103+
- telegraf_cpu
104104
- telegraf_netstat
105105
- telegraf_swap
106-
- telegraf_ethtool
107106
- telegraf_nvidia_smi
108-
- telegraf_cpu
109107
- telegraf_disk
108+
- telegraf_mem
109+
- telegraf_ethtool
110110
metrics/hostDeltaMetrics:
111111
exporters:
112112
- awscloudwatch

translator/tocwconfig/sampleConfig/advanced_config_windows.conf

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
[[inputs.win_perf_counters]]
2020
DisableReplacer = true
21+
alias = "4283769065"
2122
interval = "1s"
2223

2324
[[inputs.win_perf_counters.object]]
@@ -26,41 +27,83 @@
2627
Measurement = "LogicalDisk"
2728
ObjectName = "LogicalDisk"
2829
WarnOnMissing = true
30+
[inputs.win_perf_counters.tags]
31+
"aws:StorageResolution" = "true"
32+
33+
[[inputs.win_perf_counters]]
34+
DisableReplacer = true
35+
alias = "1492679118"
36+
interval = "1s"
2937

3038
[[inputs.win_perf_counters.object]]
3139
Counters = ["% Committed Bytes In Use"]
3240
Instances = ["------"]
3341
Measurement = "Memory"
3442
ObjectName = "Memory"
3543
WarnOnMissing = true
44+
[inputs.win_perf_counters.tags]
45+
"aws:StorageResolution" = "true"
46+
47+
[[inputs.win_perf_counters]]
48+
DisableReplacer = true
49+
alias = "3610923661"
50+
interval = "1s"
3651

3752
[[inputs.win_perf_counters.object]]
3853
Counters = ["% Usage"]
3954
Instances = ["*"]
4055
Measurement = "Paging File"
4156
ObjectName = "Paging File"
4257
WarnOnMissing = true
58+
[inputs.win_perf_counters.tags]
59+
"aws:StorageResolution" = "true"
60+
61+
[[inputs.win_perf_counters]]
62+
DisableReplacer = true
63+
alias = "3446270237"
64+
interval = "1s"
4365

4466
[[inputs.win_perf_counters.object]]
4567
Counters = ["% Disk Time", "Disk Write Bytes/sec", "Disk Read Bytes/sec", "Disk Writes/sec", "Disk Reads/sec"]
4668
Instances = ["*"]
4769
Measurement = "PhysicalDisk"
4870
ObjectName = "PhysicalDisk"
4971
WarnOnMissing = true
72+
[inputs.win_perf_counters.tags]
73+
"aws:StorageResolution" = "true"
74+
75+
[[inputs.win_perf_counters]]
76+
DisableReplacer = true
77+
alias = "3762679655"
78+
interval = "1s"
5079

5180
[[inputs.win_perf_counters.object]]
5281
Counters = ["% User Time", "% Idle Time", "% Interrupt Time"]
5382
Instances = ["*"]
5483
Measurement = "Processor"
5584
ObjectName = "Processor"
5685
WarnOnMissing = true
86+
[inputs.win_perf_counters.tags]
87+
"aws:StorageResolution" = "true"
88+
89+
[[inputs.win_perf_counters]]
90+
DisableReplacer = true
91+
alias = "2073218482"
92+
interval = "1s"
5793

5894
[[inputs.win_perf_counters.object]]
5995
Counters = ["Connections Established"]
6096
Instances = ["------"]
6197
Measurement = "TCPv4"
6298
ObjectName = "TCPv4"
6399
WarnOnMissing = true
100+
[inputs.win_perf_counters.tags]
101+
"aws:StorageResolution" = "true"
102+
103+
[[inputs.win_perf_counters]]
104+
DisableReplacer = true
105+
alias = "2039663244"
106+
interval = "1s"
64107

65108
[[inputs.win_perf_counters.object]]
66109
Counters = ["Connections Established"]
@@ -73,4 +116,4 @@
73116

74117
[outputs]
75118

76-
[[outputs.cloudwatch]]
119+
[[outputs.cloudwatch]]

translator/tocwconfig/sampleConfig/advanced_config_windows.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ service:
9292
- ec2tagger
9393
- awsentity/resource
9494
receivers:
95+
- telegraf_win_perf_counters/2073218482
96+
- telegraf_win_perf_counters/2039663244
9597
- telegraf_win_perf_counters/4283769065
9698
- telegraf_win_perf_counters/1492679118
9799
- telegraf_win_perf_counters/3610923661
98100
- telegraf_win_perf_counters/3446270237
99101
- telegraf_win_perf_counters/3762679655
100-
- telegraf_win_perf_counters/2073218482
101-
- telegraf_win_perf_counters/2039663244
102102
telemetry:
103103
logs:
104104
encoding: console

translator/tocwconfig/sampleConfig/appsignals_and_ecs_config.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
quiet = false
1515
round_interval = false
1616

17-
[inputs]
18-
1917
[outputs]
2018

2119
[[outputs.cloudwatchlogs]]
2220
endpoint_override = "https://fake_endpoint"
2321
force_flush_interval = "5s"
2422
log_stream_name = "arn_aws_ecs_us-east-1_account_id_task/task_id"
23+
mode = "EC2"
2524
region = "us-east-1"
26-
27-
[processors]
25+
region_type = "ACJ"

translator/tocwconfig/sampleConfig/appsignals_and_eks_config.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
quiet = false
1515
round_interval = false
1616

17-
[inputs]
18-
1917
[outputs]
2018

2119
[[outputs.cloudwatchlogs]]
2220
endpoint_override = "https://fake_endpoint"
2321
force_flush_interval = "5s"
2422
log_stream_name = "host_name_from_env"
23+
mode = "EKS"
2524
region = "us-east-1"
26-
27-
[processors]
25+
region_type = "ACJ"

translator/tocwconfig/sampleConfig/appsignals_and_k8s_config.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
quiet = false
1515
round_interval = false
1616

17-
[inputs]
18-
1917
[outputs]
2018

2119
[[outputs.cloudwatchlogs]]
2220
endpoint_override = "https://fake_endpoint"
2321
force_flush_interval = "5s"
2422
log_stream_name = "host_name_from_env"
23+
mode = "K8E"
2524
region = "us-east-1"
26-
27-
[processors]
25+
region_type = "ACJ"

translator/tocwconfig/sampleConfig/appsignals_fallback_and_eks_config.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
quiet = false
1515
round_interval = false
1616

17-
[inputs]
18-
1917
[outputs]
2018

2119
[[outputs.cloudwatchlogs]]
2220
endpoint_override = "https://fake_endpoint"
2321
force_flush_interval = "5s"
2422
log_stream_name = "host_name_from_env"
23+
mode = "EKS"
2524
region = "us-east-1"
26-
27-
[processors]
25+
region_type = "ACJ"

translator/tocwconfig/sampleConfig/appsignals_over_fallback_config.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
quiet = false
1515
round_interval = false
1616

17-
[inputs]
18-
1917
[outputs]
2018

2119
[[outputs.cloudwatchlogs]]
2220
endpoint_override = "https://fake_endpoint"
2321
force_flush_interval = "5s"
2422
log_stream_name = "host_name_from_env"
23+
mode = "EKS"
2524
region = "us-east-1"
26-
27-
[processors]
25+
region_type = "ACJ"

0 commit comments

Comments
 (0)