-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Do not send AccountID as KeyAttribute for entities in PutLogE…
…vents requests" and add unit tests (#1411) Co-authored-by: zhihonl <[email protected]>
- Loading branch information
1 parent
1e682da
commit a19df6f
Showing
11 changed files
with
285 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[agent] | ||
collection_jitter = "0s" | ||
debug = false | ||
flush_interval = "1s" | ||
flush_jitter = "0s" | ||
hostname = "fake-host-name" | ||
interval = "60s" | ||
logfile = "" | ||
logtarget = "lumberjack" | ||
metric_batch_size = 1000 | ||
metric_buffer_limit = 10000 | ||
omit_hostname = true | ||
precision = "" | ||
quiet = false | ||
round_interval = false | ||
|
||
[inputs] | ||
|
||
[[inputs.statsd]] | ||
allowed_pending_messages = 10000 | ||
interval = "10s" | ||
parse_data_dog_tags = true | ||
service_address = ":8125" | ||
[inputs.statsd.tags] | ||
"aws:StorageResolution" = "true" | ||
|
||
[outputs] | ||
|
||
[[outputs.cloudwatch]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"metrics": { | ||
"metrics_collected": { | ||
"statsd": { | ||
"metrics_aggregation_interval": 0, | ||
"allowed_pending_messages": 10000 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
exporters: | ||
awscloudwatch: | ||
force_flush_interval: 1m0s | ||
max_datums_per_call: 1000 | ||
max_values_per_datum: 150 | ||
middleware: agenthealth/metrics | ||
namespace: CWAgent | ||
region: us-west-2 | ||
resource_to_telemetry_conversion: | ||
enabled: true | ||
extensions: | ||
agenthealth/metrics: | ||
is_usage_data_enabled: true | ||
stats: | ||
operations: | ||
- PutMetricData | ||
usage_flags: | ||
mode: EC2 | ||
region_type: ACJ | ||
receivers: | ||
telegraf_statsd: | ||
collection_interval: 10s | ||
initial_delay: 1s | ||
timeout: 0s | ||
service: | ||
extensions: | ||
- agenthealth/metrics | ||
pipelines: | ||
metrics/hostCustomMetrics: | ||
exporters: | ||
- awscloudwatch | ||
processors: [] | ||
receivers: | ||
- telegraf_statsd | ||
telemetry: | ||
logs: | ||
development: false | ||
disable_caller: false | ||
disable_stacktrace: false | ||
encoding: console | ||
level: info | ||
sampling: | ||
enabled: true | ||
initial: 2 | ||
thereafter: 500 | ||
tick: 10s | ||
metrics: | ||
address: "" | ||
level: None | ||
traces: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[agent] | ||
collection_jitter = "0s" | ||
debug = false | ||
flush_interval = "1s" | ||
flush_jitter = "0s" | ||
hostname = "host_name_from_env" | ||
interval = "60s" | ||
logfile = "" | ||
logtarget = "lumberjack" | ||
metric_batch_size = 1000 | ||
metric_buffer_limit = 10000 | ||
omit_hostname = false | ||
precision = "" | ||
quiet = false | ||
round_interval = false | ||
|
||
[inputs] | ||
|
||
[[inputs.statsd]] | ||
allowed_pending_messages = 10000 | ||
interval = "10s" | ||
parse_data_dog_tags = true | ||
service_address = ":8125" | ||
[inputs.statsd.tags] | ||
"aws:StorageResolution" = "true" | ||
|
||
[outputs] | ||
|
||
[[outputs.cloudwatch]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"metrics": { | ||
"metrics_collected": { | ||
"statsd": { | ||
"metrics_aggregation_interval": 0, | ||
"allowed_pending_messages": 10000 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
exporters: | ||
awscloudwatch: | ||
force_flush_interval: 1m0s | ||
max_datums_per_call: 1000 | ||
max_values_per_datum: 150 | ||
middleware: agenthealth/metrics | ||
namespace: CWAgent | ||
region: us-west-2 | ||
resource_to_telemetry_conversion: | ||
enabled: true | ||
extensions: | ||
agenthealth/metrics: | ||
is_usage_data_enabled: true | ||
stats: | ||
operations: | ||
- PutMetricData | ||
usage_flags: | ||
mode: EKS | ||
region_type: ACJ | ||
entitystore: | ||
mode: ec2 | ||
region: us-west-2 | ||
kubernetes_mode: EKS | ||
server: | ||
listen_addr: :4311 | ||
tls_ca_path: "/etc/amazon-cloudwatch-observability-agent-client-cert/tls-ca.crt" | ||
tls_cert_path: "/etc/amazon-cloudwatch-observability-agent-server-cert/server.crt" | ||
tls_key_path: "/etc/amazon-cloudwatch-observability-agent-server-cert/server.key" | ||
receivers: | ||
telegraf_statsd: | ||
collection_interval: 10s | ||
initial_delay: 1s | ||
timeout: 0s | ||
service: | ||
extensions: | ||
- agenthealth/metrics | ||
- entitystore | ||
- server | ||
pipelines: | ||
metrics/hostCustomMetrics: | ||
exporters: | ||
- awscloudwatch | ||
processors: [] | ||
receivers: | ||
- telegraf_statsd | ||
telemetry: | ||
logs: | ||
development: false | ||
disable_caller: false | ||
disable_stacktrace: false | ||
encoding: console | ||
level: info | ||
sampling: | ||
enabled: true | ||
initial: 2 | ||
thereafter: 500 | ||
tick: 10s | ||
metrics: | ||
address: "" | ||
level: None | ||
traces: {} |
Oops, something went wrong.