Skip to content

Commit

Permalink
Fix tocwconfig unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihonl committed Sep 14, 2023
1 parent 37a6ade commit a60c50a
Show file tree
Hide file tree
Showing 29 changed files with 211 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -88,7 +94,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
11 changes: 10 additions & 1 deletion translator/tocwconfig/sampleConfig/advanced_config_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -96,7 +104,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
10 changes: 9 additions & 1 deletion translator/tocwconfig/sampleConfig/advanced_config_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -80,7 +87,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exporters:
queue_size: 1000
profile: ""
shared_credentials_file: []
tags: {}
awsemf/containerinsights:
namespace: ContainerInsights
log_group_name: '/aws/containerinsights/{ClusterName}/performance'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -222,7 +228,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
5 changes: 4 additions & 1 deletion translator/tocwconfig/sampleConfig/basic_config_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -53,7 +55,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
5 changes: 4 additions & 1 deletion translator/tocwconfig/sampleConfig/basic_config_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -55,7 +57,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ receivers:
telegraf_socket_listener:
collection_interval: 1m0s
initial_delay: "1s"
timeout: 0s
service:
extensions: []
pipelines:
Expand All @@ -39,7 +40,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
23 changes: 22 additions & 1 deletion translator/tocwconfig/sampleConfig/complete_darwin_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ exporters:
queue_size: 1000
profile: ""
shared_credentials_file: [ ]
tags: {}
awsxray:
aws_log_groups: []
certificate_file_path: ""
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -263,7 +283,8 @@ service:
metrics:
address: ""
level: None
metric_readers: []
readers: []
resource: {}
traces:
processors: []
propagators: []
Loading

0 comments on commit a60c50a

Please sign in to comment.