Skip to content

Commit

Permalink
Bump OTEL to v0.89.0 (aws#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefchien authored Dec 11, 2023
1 parent d76ee14 commit c17c309
Show file tree
Hide file tree
Showing 38 changed files with 1,302 additions and 1,303 deletions.
4 changes: 3 additions & 1 deletion cmd/amazon-cloudwatch-agent/amazon-cloudwatch-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ func getCollectorParams(factories otelcol.Factories, provider otelcol.ConfigProv
level := cwaLogger.ConvertToAtomicLevel(wlog.LogLevel())
loggingOptions := cwaLogger.NewLoggerOptions(writer, level)
return otelcol.CollectorSettings{
Factories: factories,
Factories: func() (otelcol.Factories, error) {
return factories, nil
},
ConfigProvider: provider,
// build info is essential for populating the user agent string in otel contrib upstream exporters, like the EMF exporter
BuildInfo: component.BuildInfo{
Expand Down
4 changes: 3 additions & 1 deletion cmd/amazon-cloudwatch-agent/amazon-cloudwatch-agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ func Test_getCollectorParams(t *testing.T) {
provider: nil,
},
want: otelcol.CollectorSettings{
Factories: otelcol.Factories{},
Factories: func() (otelcol.Factories, error) {
return otelcol.Factories{}, nil
},
ConfigProvider: nil,
BuildInfo: component.BuildInfo{
Command: "CWAgent",
Expand Down
313 changes: 157 additions & 156 deletions go.mod

Large diffs are not rendered by default.

744 changes: 295 additions & 449 deletions go.sum

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ service:
processors:
- ec2tagger
receivers:
- telegraf_mem
- telegraf_netstat
- telegraf_swap
- telegraf_cpu
- telegraf_disk
- telegraf_mem
metrics/hostDeltaMetrics:
exporters:
- awscloudwatch
Expand All @@ -100,8 +100,10 @@ service:
output_paths:
- /opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log
sampling:
enabled: true
initial: 2
thereafter: 500
tick: 10s
metrics:
address: ""
level: None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ service:
processors:
- ec2tagger
receivers:
- telegraf_disk
- telegraf_mem
- telegraf_netstat
- telegraf_swap
- telegraf_ethtool
- telegraf_nvidia_smi
- telegraf_cpu
- telegraf_disk
metrics/hostDeltaMetrics:
exporters:
- awscloudwatch
Expand All @@ -110,8 +110,10 @@ service:
output_paths:
- /opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log
sampling:
enabled: true
initial: 2
thereafter: 500
tick: 10s
metrics:
address: ""
level: None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ service:
processors:
- ec2tagger
receivers:
- telegraf_win_perf_counters/3446270237
- telegraf_win_perf_counters/3762679655
- telegraf_win_perf_counters/2073218482
- telegraf_win_perf_counters/2039663244
- telegraf_win_perf_counters/4283769065
- telegraf_win_perf_counters/1492679118
- telegraf_win_perf_counters/3610923661
- telegraf_win_perf_counters/3446270237
- telegraf_win_perf_counters/3762679655
telemetry:
logs:
development: false
Expand All @@ -92,8 +92,10 @@ service:
output_paths:
- c:\ProgramData\Amazon\AmazonCloudWatchAgent\Logs\amazon-cloudwatch-agent.log
sampling:
enabled: true
initial: 2
thereafter: 500
tick: 10s
metrics:
address: ""
level: None
Expand Down
Loading

0 comments on commit c17c309

Please sign in to comment.