From a60c50a23b28773c760f935631db7d04ca3bddf6 Mon Sep 17 00:00:00 2001 From: Zhihong Lin Date: Thu, 14 Sep 2023 20:14:03 +0000 Subject: [PATCH] Fix tocwconfig unit tests --- .../sampleConfig/advanced_config_darwin.yaml | 9 +++++++- .../sampleConfig/advanced_config_linux.yaml | 11 ++++++++- .../sampleConfig/advanced_config_windows.yaml | 10 +++++++- .../base_container_insights_config.yaml | 9 +++++++- .../sampleConfig/basic_config_linux.yaml | 5 +++- .../sampleConfig/basic_config_windows.yaml | 5 +++- .../sampleConfig/collectd_config_linux.yaml | 4 +++- .../sampleConfig/complete_darwin_config.yaml | 23 ++++++++++++++++++- .../sampleConfig/complete_linux_config.yaml | 23 ++++++++++++++++++- .../sampleConfig/complete_windows_config.yaml | 17 +++++++++++++- .../sampleConfig/config_with_env.yaml | 6 ++++- .../sampleConfig/delta_config_linux.yaml | 4 +++- .../sampleConfig/delta_net_config_linux.yaml | 4 +++- .../emf_and_kubernetes_config.yaml | 9 +++++++- .../ignore_append_dimensions.yaml | 5 +++- .../sampleConfig/invalid_input_linux.yaml | 5 +++- .../kubernetes_on_prem_config.yaml | 6 ++++- .../sampleConfig/log_ecs_metric_only.yaml | 9 +++++++- .../logs_and_kubernetes_config.yaml | 9 +++++++- .../sampleConfig/prometheus_config_linux.yaml | 7 +++++- .../prometheus_config_windows.yaml | 7 +++++- .../sampleConfig/standard_config_linux.yaml | 8 ++++++- ...ndard_config_linux_with_common_config.yaml | 8 ++++++- .../sampleConfig/standard_config_windows.yaml | 8 ++++++- ...ard_config_windows_with_common_config.yaml | 9 +++++++- .../sampleConfig/statsd_config_linux.yaml | 4 +++- .../sampleConfig/statsd_config_windows.yaml | 4 +++- .../sampleConfig/trace_config_linux.yaml | 6 ++++- .../sampleConfig/trace_config_windows.yaml | 6 ++++- 29 files changed, 211 insertions(+), 29 deletions(-) diff --git a/translator/tocwconfig/sampleConfig/advanced_config_darwin.yaml b/translator/tocwconfig/sampleConfig/advanced_config_darwin.yaml index 2ac4fdc437..7d18a9d5cd 100644 --- a/translator/tocwconfig/sampleConfig/advanced_config_darwin.yaml +++ b/translator/tocwconfig/sampleConfig/advanced_config_darwin.yaml @@ -35,21 +35,27 @@ receivers: telegraf_cpu: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_disk: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_netstat: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_swap: collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -88,7 +94,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/advanced_config_linux.yaml b/translator/tocwconfig/sampleConfig/advanced_config_linux.yaml index d034fed780..1e6801ce18 100644 --- a/translator/tocwconfig/sampleConfig/advanced_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/advanced_config_linux.yaml @@ -35,27 +35,35 @@ receivers: telegraf_cpu: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_disk: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_ethtool: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_netstat: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_nvidia_smi: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_swap: collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -96,7 +104,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/advanced_config_windows.yaml b/translator/tocwconfig/sampleConfig/advanced_config_windows.yaml index 71546509fb..7f68c01ce0 100644 --- a/translator/tocwconfig/sampleConfig/advanced_config_windows.yaml +++ b/translator/tocwconfig/sampleConfig/advanced_config_windows.yaml @@ -24,30 +24,37 @@ receivers: alias_name : Memory collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/2039663244: alias_name : TCPv6 collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/2073218482: alias_name : TCPv4 collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3446270237: alias_name : PhysicalDisk collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3610923661: alias_name : Paging File collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3762679655: alias_name : Processor collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/4283769065: alias_name : LogicalDisk collection_interval: 1s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -80,7 +87,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/base_container_insights_config.yaml b/translator/tocwconfig/sampleConfig/base_container_insights_config.yaml index ddca40b22e..c4555a3a42 100644 --- a/translator/tocwconfig/sampleConfig/base_container_insights_config.yaml +++ b/translator/tocwconfig/sampleConfig/base_container_insights_config.yaml @@ -29,6 +29,7 @@ exporters: queue_size: 1000 profile: "" shared_credentials_file: [] + tags: {} awsemf/containerinsights: namespace: ContainerInsights log_group_name: '/aws/containerinsights/{ClusterName}/performance' @@ -119,13 +120,18 @@ exporters: role_arn: "" profile: "" shared_credentials_file: [ ] + tags: {} extensions: {} processors: batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s batch/containerinsights: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -222,7 +228,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] \ No newline at end of file diff --git a/translator/tocwconfig/sampleConfig/basic_config_linux.yaml b/translator/tocwconfig/sampleConfig/basic_config_linux.yaml index b51c26ecce..676f41c6ad 100644 --- a/translator/tocwconfig/sampleConfig/basic_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/basic_config_linux.yaml @@ -23,9 +23,11 @@ receivers: telegraf_disk: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -53,7 +55,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/basic_config_windows.yaml b/translator/tocwconfig/sampleConfig/basic_config_windows.yaml index d82388aaa6..851790b6e4 100644 --- a/translator/tocwconfig/sampleConfig/basic_config_windows.yaml +++ b/translator/tocwconfig/sampleConfig/basic_config_windows.yaml @@ -24,10 +24,12 @@ receivers: alias_name : Memory collection_interval: 1m0s initial_delay: "1s" + timeout: 0s telegraf_win_perf_counters/4283769065: alias_name : LogicalDisk collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -55,7 +57,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/collectd_config_linux.yaml b/translator/tocwconfig/sampleConfig/collectd_config_linux.yaml index 5f70d9fc1e..420f130b3a 100644 --- a/translator/tocwconfig/sampleConfig/collectd_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/collectd_config_linux.yaml @@ -14,6 +14,7 @@ receivers: telegraf_socket_listener: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -39,7 +40,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/complete_darwin_config.yaml b/translator/tocwconfig/sampleConfig/complete_darwin_config.yaml index 6027b45f47..3bca4689cc 100644 --- a/translator/tocwconfig/sampleConfig/complete_darwin_config.yaml +++ b/translator/tocwconfig/sampleConfig/complete_darwin_config.yaml @@ -45,6 +45,7 @@ exporters: queue_size: 1000 profile: "" shared_credentials_file: [ ] + tags: {} awsxray: aws_log_groups: [] certificate_file_path: "" @@ -69,10 +70,14 @@ exporters: extensions: {} processors: batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 1m0s batch/xray: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 200ms @@ -121,10 +126,13 @@ receivers: role_arn: trace_role_arn_value_test tls: ca_file: "" + ca_pem: "[REDACTED]" cert_file: "" + cert_pem: "[REDACTED]" insecure: true insecure_skip_verify: false key_file: "" + key_pem: "[REDACTED]" max_version: "" min_version: "" reload_interval: 0s @@ -149,41 +157,53 @@ receivers: endpoint: 0.0.0.0:2222 include_metadata: false max_request_body_size: 0 + response_headers: {} tls: null telegraf_cpu: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_disk: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_mem: collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_net: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_netstat: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_processes: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_procstat/1917393364: alias_name: /var/run/example1.pid collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_socket_listener: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_statsd: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_swap: collection_interval: 10s initial_delay: 1s + timeout: 0s udplog/emf_logs: attributes: {} encoding: utf-8 @@ -263,7 +283,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/complete_linux_config.yaml b/translator/tocwconfig/sampleConfig/complete_linux_config.yaml index 383517955f..5ca7bf5e2b 100644 --- a/translator/tocwconfig/sampleConfig/complete_linux_config.yaml +++ b/translator/tocwconfig/sampleConfig/complete_linux_config.yaml @@ -48,6 +48,7 @@ exporters: queue_size: 1000 profile: "" shared_credentials_file: [ ] + tags: {} awsxray: aws_log_groups: [] certificate_file_path: "" @@ -72,10 +73,14 @@ exporters: extensions: {} processors: batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 1m0s batch/xray: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 200ms @@ -124,10 +129,13 @@ receivers: role_arn: trace_role_arn_value_test tls: ca_file: "" + ca_pem: "[REDACTED]" cert_file: "" + cert_pem: "[REDACTED]" insecure: true insecure_skip_verify: false key_file: "" + key_pem: "[REDACTED]" max_version: "" min_version: "" reload_interval: 0s @@ -152,41 +160,53 @@ receivers: endpoint: 0.0.0.0:2222 include_metadata: false max_request_body_size: 0 + response_headers: {} tls: null telegraf_cpu: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_disk: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_mem: collection_interval: 1s initial_delay: 1s + timeout: 0s telegraf_net: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_netstat: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_processes: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_procstat/1917393364: alias_name: /var/run/example1.pid collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_socket_listener: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_statsd: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_swap: collection_interval: 10s initial_delay: 1s + timeout: 0s udplog/emf_logs: attributes: {} encoding: utf-8 @@ -266,7 +286,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/complete_windows_config.yaml b/translator/tocwconfig/sampleConfig/complete_windows_config.yaml index fe7c3dac28..ee672828f1 100644 --- a/translator/tocwconfig/sampleConfig/complete_windows_config.yaml +++ b/translator/tocwconfig/sampleConfig/complete_windows_config.yaml @@ -45,6 +45,7 @@ exporters: queue_size: 1000 profile: "" shared_credentials_file: [ ] + tags: {} awsxray: aws_log_groups: [] certificate_file_path: "" @@ -69,10 +70,14 @@ exporters: extensions: {} processors: batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 1m0s batch/xray: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 200ms @@ -140,37 +145,46 @@ receivers: telegraf_nvidia_smi: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_procstat/1340600742: alias_name: agent collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_statsd: collection_interval: 10s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/1063858558: alias_name: Network Interface collection_interval: 5s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/1492679118: alias_name: Memory collection_interval: 5s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/2402387132: alias_name: System collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3081249416: alias_name: customizedObjectName collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3762679655: alias_name: Processor collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/4283769065: alias_name: LogicalDisk collection_interval: 1m0s initial_delay: 1s + timeout: 0s udplog/emf_logs: attributes: {} encoding: utf-8 @@ -240,7 +254,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/config_with_env.yaml b/translator/tocwconfig/sampleConfig/config_with_env.yaml index cc1aab5b1a..34402c8177 100644 --- a/translator/tocwconfig/sampleConfig/config_with_env.yaml +++ b/translator/tocwconfig/sampleConfig/config_with_env.yaml @@ -29,9 +29,12 @@ exporters: sending_queue: queue_size: 1000 shared_credentials_file: [] + tags: {} extensions: {} processors: batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -97,7 +100,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/delta_config_linux.yaml b/translator/tocwconfig/sampleConfig/delta_config_linux.yaml index c158ab23ac..f352dd586b 100644 --- a/translator/tocwconfig/sampleConfig/delta_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/delta_config_linux.yaml @@ -48,6 +48,7 @@ receivers: telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -76,7 +77,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/delta_net_config_linux.yaml b/translator/tocwconfig/sampleConfig/delta_net_config_linux.yaml index 0bfe03db2f..b2a7dc8725 100644 --- a/translator/tocwconfig/sampleConfig/delta_net_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/delta_net_config_linux.yaml @@ -33,6 +33,7 @@ receivers: telegraf_net: collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -60,7 +61,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml b/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml index e271931b39..0136eff153 100644 --- a/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml +++ b/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml @@ -29,6 +29,7 @@ exporters: sending_queue: queue_size: 1000 shared_credentials_file: [ "/root/.aws/credentials" ] + tags: {} awsemf/containerinsights: detailed_metrics: false dimension_rollup_option: NoDimensionRollup @@ -233,6 +234,7 @@ exporters: role_arn: "" profile: "default" shared_credentials_file: [ "/root/.aws/credentials" ] + tags: {} version: "0" extensions: {} processors: @@ -248,10 +250,14 @@ processors: operations: [ ] submatch_case: "" batch/containerinsights: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -349,7 +355,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/ignore_append_dimensions.yaml b/translator/tocwconfig/sampleConfig/ignore_append_dimensions.yaml index 8739368c71..952734d325 100644 --- a/translator/tocwconfig/sampleConfig/ignore_append_dimensions.yaml +++ b/translator/tocwconfig/sampleConfig/ignore_append_dimensions.yaml @@ -19,9 +19,11 @@ receivers: telegraf_disk: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -49,7 +51,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/invalid_input_linux.yaml b/translator/tocwconfig/sampleConfig/invalid_input_linux.yaml index a4138a74a0..caa37a5522 100644 --- a/translator/tocwconfig/sampleConfig/invalid_input_linux.yaml +++ b/translator/tocwconfig/sampleConfig/invalid_input_linux.yaml @@ -23,9 +23,11 @@ receivers: telegraf_disk: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -53,7 +55,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml b/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml index f64a4dc72e..742ccd236a 100644 --- a/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml +++ b/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml @@ -204,6 +204,7 @@ exporters: role_arn: "" profile: "AmazonCloudWatchAgent" shared_credentials_file: ["fake-path"] + tags: {} version: "0" extensions: {} processors: @@ -219,6 +220,8 @@ processors: operations: [ ] submatch_case: "" batch/containerinsights: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -275,7 +278,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/log_ecs_metric_only.yaml b/translator/tocwconfig/sampleConfig/log_ecs_metric_only.yaml index 6d362f7a8d..36c5328d24 100644 --- a/translator/tocwconfig/sampleConfig/log_ecs_metric_only.yaml +++ b/translator/tocwconfig/sampleConfig/log_ecs_metric_only.yaml @@ -29,6 +29,7 @@ exporters: queue_size: 1000 profile: "" shared_credentials_file: [ ] + tags: {} awsemf/containerinsights: detailed_metrics: false dimension_rollup_option: NoDimensionRollup @@ -89,14 +90,19 @@ exporters: role_arn: "" profile: "" shared_credentials_file: [ ] + tags: {} version: "0" extensions: {} processors: batch/containerinsights: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -193,7 +199,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml b/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml index bab1b16494..1746a52fc5 100644 --- a/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml +++ b/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml @@ -29,6 +29,7 @@ exporters: queue_size: 1000 profile: "" shared_credentials_file: [ ] + tags: {} awsemf/containerinsights: certificate_file_path: "" detailed_metrics: false @@ -233,6 +234,7 @@ exporters: role_arn: "" profile: "" shared_credentials_file: [ ] + tags: {} version: "0" extensions: {} processors: @@ -248,10 +250,14 @@ processors: operations: [ ] submatch_case: "" batch/containerinsights: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s batch/emf_logs: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -349,7 +355,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/prometheus_config_linux.yaml b/translator/tocwconfig/sampleConfig/prometheus_config_linux.yaml index b198362cd8..735af2e72d 100644 --- a/translator/tocwconfig/sampleConfig/prometheus_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/prometheus_config_linux.yaml @@ -69,11 +69,14 @@ exporters: role_arn: "" profile: "" shared_credentials_file: [ ] + tags: {} extensions: {} processors: batch/prometheus: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 30s @@ -82,6 +85,7 @@ receivers: telegraf_prometheus: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -108,7 +112,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/prometheus_config_windows.yaml b/translator/tocwconfig/sampleConfig/prometheus_config_windows.yaml index 463b596cb9..30a5e37ac8 100644 --- a/translator/tocwconfig/sampleConfig/prometheus_config_windows.yaml +++ b/translator/tocwconfig/sampleConfig/prometheus_config_windows.yaml @@ -52,11 +52,14 @@ exporters: role_arn: "" profile: "" shared_credentials_file: [ ] + tags: {} extensions: {} processors: batch/prometheus: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 5s @@ -65,6 +68,7 @@ receivers: telegraf_prometheus: collection_interval: 1m0s initial_delay: "1s" + timeout: 0s service: extensions: [] @@ -93,7 +97,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/standard_config_linux.yaml b/translator/tocwconfig/sampleConfig/standard_config_linux.yaml index c769665646..d0dd242b99 100644 --- a/translator/tocwconfig/sampleConfig/standard_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/standard_config_linux.yaml @@ -34,18 +34,23 @@ receivers: telegraf_cpu: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_disk: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_swap: collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -83,7 +88,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/standard_config_linux_with_common_config.yaml b/translator/tocwconfig/sampleConfig/standard_config_linux_with_common_config.yaml index dbdcf2ea97..cd9ac050ad 100644 --- a/translator/tocwconfig/sampleConfig/standard_config_linux_with_common_config.yaml +++ b/translator/tocwconfig/sampleConfig/standard_config_linux_with_common_config.yaml @@ -39,18 +39,23 @@ receivers: telegraf_cpu: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_disk: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_diskio: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_mem: collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_swap: collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -88,7 +93,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/standard_config_windows.yaml b/translator/tocwconfig/sampleConfig/standard_config_windows.yaml index 236384d062..7ba746337f 100644 --- a/translator/tocwconfig/sampleConfig/standard_config_windows.yaml +++ b/translator/tocwconfig/sampleConfig/standard_config_windows.yaml @@ -23,22 +23,27 @@ receivers: alias_name: Memory collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3446270237: alias_name: PhysicalDisk collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3610923661: alias_name: Paging File collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3762679655: alias_name: Processor collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/4283769065: alias_name: LogicalDisk collection_interval: 1m0s initial_delay: 1s + timeout: 0s service: extensions: [] pipelines: @@ -69,7 +74,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/standard_config_windows_with_common_config.yaml b/translator/tocwconfig/sampleConfig/standard_config_windows_with_common_config.yaml index 79d05592be..8a5a868d8a 100644 --- a/translator/tocwconfig/sampleConfig/standard_config_windows_with_common_config.yaml +++ b/translator/tocwconfig/sampleConfig/standard_config_windows_with_common_config.yaml @@ -28,22 +28,28 @@ receivers: alias_name: Memory collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3446270237: alias_name: PhysicalDisk collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3610923661: alias_name: Paging File collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/3762679655: alias_name: Processor collection_interval: 1m0s initial_delay: 1s + timeout: 0s telegraf_win_perf_counters/4283769065: alias_name: LogicalDisk collection_interval: 1m0s initial_delay: 1s + timeout: 0s + service: extensions: [] pipelines: @@ -74,7 +80,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/statsd_config_linux.yaml b/translator/tocwconfig/sampleConfig/statsd_config_linux.yaml index d2dc954d0e..8440d99174 100644 --- a/translator/tocwconfig/sampleConfig/statsd_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/statsd_config_linux.yaml @@ -15,6 +15,7 @@ receivers: telegraf_statsd: collection_interval: 10s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -40,7 +41,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] \ No newline at end of file diff --git a/translator/tocwconfig/sampleConfig/statsd_config_windows.yaml b/translator/tocwconfig/sampleConfig/statsd_config_windows.yaml index a1b0dd5e26..a64e21b8a7 100644 --- a/translator/tocwconfig/sampleConfig/statsd_config_windows.yaml +++ b/translator/tocwconfig/sampleConfig/statsd_config_windows.yaml @@ -14,6 +14,7 @@ receivers: telegraf_statsd: collection_interval: 10s initial_delay: "1s" + timeout: 0s service: extensions: [] pipelines: @@ -39,7 +40,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/trace_config_linux.yaml b/translator/tocwconfig/sampleConfig/trace_config_linux.yaml index 4dc94d0a3f..f4b0ede444 100644 --- a/translator/tocwconfig/sampleConfig/trace_config_linux.yaml +++ b/translator/tocwconfig/sampleConfig/trace_config_linux.yaml @@ -24,6 +24,8 @@ exporters: extensions: {} processors: batch/xray: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 200ms @@ -57,6 +59,7 @@ receivers: endpoint: 127.0.0.1:4318 include_metadata: false max_request_body_size: 0 + response_headers: {} tls: null service: extensions: [] @@ -86,7 +89,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: [] diff --git a/translator/tocwconfig/sampleConfig/trace_config_windows.yaml b/translator/tocwconfig/sampleConfig/trace_config_windows.yaml index 319499420d..14a5d01072 100644 --- a/translator/tocwconfig/sampleConfig/trace_config_windows.yaml +++ b/translator/tocwconfig/sampleConfig/trace_config_windows.yaml @@ -24,6 +24,8 @@ exporters: extensions: {} processors: batch/xray: + metadata_cardinality_limit: 1000 + metadata_keys: [] send_batch_max_size: 0 send_batch_size: 8192 timeout: 200ms @@ -57,6 +59,7 @@ receivers: endpoint: 127.0.0.1:4318 include_metadata: false max_request_body_size: 0 + response_headers: {} tls: null service: extensions: [] @@ -86,7 +89,8 @@ service: metrics: address: "" level: None - metric_readers: [] + readers: [] resource: {} traces: + processors: [] propagators: []