translator/tocwconfig/sampleConfig/complete_linux_config.yaml (510 lines of code) (raw):

exporters: awscloudwatch: drop_original_metrics: CPU_USAGE_IDLE: true collectd_drop: true cpu_time_active: true statsd_drop: true endpoint_override: https://monitoring-fips.us-west-2.amazonaws.com force_flush_interval: 1m0s max_datums_per_call: 1000 max_values_per_datum: 5000 middleware: agenthealth/metrics namespace: CWAgent region: us-west-2 resource_to_telemetry_conversion: enabled: true role_arn: metrics_role_arn_value_test rollup_dimensions: - - ImageId - - InstanceId - InstanceType - - d1 - [] awscloudwatchlogs/emf_logs: certificate_file_path: "" emf_only: true endpoint: https://logs-fips.us-west-2.amazonaws.com imds_retries: 1 local_mode: false log_group_name: emf/logs/default log_retention: 0 log_stream_name: LOG_STREAM_NAME max_retries: 2 middleware: agenthealth/logs no_verify_ssl: false num_workers: 8 profile: "" proxy_address: "" raw_log: true region: us-west-2 request_timeout_seconds: 30 resource_arn: "" retry_on_failure: enabled: true initial_interval: 5s max_elapsed_time: 5m0s max_interval: 30s multiplier: 1.5 randomization_factor: 0.5 role_arn: log_role_arn_value_test sending_queue: enabled: true num_consumers: 1 queue_size: 1000 awsxray: certificate_file_path: "" endpoint: https://x-ray-endpoint.us-west-2.amazonaws.com imds_retries: 1 index_all_attributes: false local_mode: true max_retries: 2 middleware: agenthealth/traces no_verify_ssl: true num_workers: 1 profile: "" proxy_address: https://proxy.proxy.com region: us-west-2 request_timeout_seconds: 30 resource_arn: arn:aws:iam::account:resource role_arn: trace_role_arn_value_test telemetry: enabled: true include_metadata: true extensions: agenthealth/logs: is_usage_data_enabled: true stats: operations: - PutLogEvents usage_flags: mode: EC2 region_type: ACJ agenthealth/metrics: is_status_code_enabled: true is_usage_data_enabled: true stats: operations: - PutMetricData usage_flags: mode: EC2 region_type: ACJ agenthealth/statuscode: is_status_code_enabled: true is_usage_data_enabled: true stats: usage_flags: mode: EC2 region_type: ACJ agenthealth/traces: is_usage_data_enabled: true stats: operations: - PutTraceSegments usage_flags: mode: EC2 region_type: ACJ entitystore: mode: ec2 region: us-west-2 processors: awsentity/resource: entity_type: Resource platform: ec2 scrape_datapoint_attribute: true awsentity/service/telegraf: entity_type: Service platform: ec2 scrape_datapoint_attribute: true batch/emf_logs: metadata_cardinality_limit: 1000 send_batch_max_size: 0 send_batch_size: 8192 timeout: 1m0s batch/xray: metadata_cardinality_limit: 1000 send_batch_max_size: 0 send_batch_size: 8192 timeout: 200ms cumulativetodelta/hostDeltaMetrics/cloudwatch: exclude: match_type: strict metrics: - iops_in_progress - diskio_iops_in_progress - diskio_ebs_volume_queue_length include: match_type: "" initial_value: 2 max_staleness: 0s cumulativetodelta/jmx: exclude: match_type: "" include: match_type: "" initial_value: 2 max_staleness: 0s ec2tagger: ec2_instance_tag_keys: - AutoScalingGroupName ec2_metadata_tags: - ImageId - InstanceId - InstanceType imds_retries: 1 middleware: agenthealth/statuscode refresh_tags_interval: 0s refresh_volumes_interval: 0s filter/jmx/0: error_mode: propagate logs: {} metrics: include: match_type: strict metric_names: - jvm.memory.heap.init - jvm.memory.heap.used - jvm.memory.nonheap.init - kafka.consumer.fetch-rate spans: {} traces: {} filter/jmx/1: error_mode: propagate logs: {} metrics: include: match_type: strict metric_names: - tomcat.sessions - tomcat.errors spans: {} traces: {} resource/jmx: attributes: - action: delete converted_type: "" from_attribute: "" from_context: "" key: "" pattern: telemetry.sdk.* - action: delete converted_type: "" from_attribute: "" from_context: "" key: service.name pattern: "" value: unknown_service:java transform: error_mode: propagate flatten_data: false log_statements: [] metric_statements: - context: metric statements: - set(unit, "unit") where name == "cpu_usage_idle" - set(name, "CPU_USAGE_IDLE") where name == "cpu_usage_idle" - set(unit, "unit") where name == "cpu_usage_nice" - set(unit, "unit") where name == "disk_free" - set(name, "DISK_FREE") where name == "disk_free" trace_statements: [] transform/jmx/0: error_mode: propagate flatten_data: false log_statements: [] metric_statements: - context: metric statements: - set(name, "kafka.fetch-rate") where name == "kafka.consumer.fetch-rate" - set(unit, "unit") where name == "jvm.memory.heap.used" - set(name, "JVM_MEM_HEAP_USED") where name == "jvm.memory.heap.used" trace_statements: [] transform/jmx/1: error_mode: propagate flatten_data: false log_statements: [] metric_statements: - context: metric statements: - set(name, "TC_ERR") where name == "tomcat.errors" trace_statements: [] receivers: awsxray: dialer: timeout: 0s endpoint: 0.0.0.0:2001 proxy_server: aws_endpoint: https://x-ray-endpoint.us-west-2.amazonaws.com certificate_file_path: "" dialer: timeout: 0s endpoint: 0.0.0.0:1234 imds_retries: 1 local_mode: true profile: "" proxy_address: https://proxy.proxy.com region: us-west-2 role_arn: trace_role_arn_value_test service_name: xray tls: ca_file: "" cert_file: "" include_system_ca_certs_pool: false insecure: true insecure_skip_verify: false key_file: "" max_version: "" min_version: "" reload_interval: 0s server_name_override: "" transport: udp jmx/0: collection_interval: 1m0s endpoint: localhost:12345 jar_path: ../../packaging/opentelemetry-jmx-metrics.jar keystore_path: /keystore keystore_type: PKCS otlp: endpoint: 0.0.0.0:0 timeout: 5s realm: test_realm remote_profile: SASL/PLAIN resource_attributes: service.name: jmx_app target_system: jvm,kafka-consumer truststore_path: /truststore truststore_type: PKCS12 username: cwagent jmx/1: collection_interval: 1m0s endpoint: localhost:4567 jar_path: ../../packaging/opentelemetry-jmx-metrics.jar jmx_registry_ssl_enabled: true keystore_path: /keystore keystore_type: PKCS otlp: endpoint: 0.0.0.0:0 timeout: 5s realm: test_realm remote_profile: SASL/PLAIN resource_attributes: service.name: jmx_app target_system: tomcat truststore_path: /truststore truststore_type: PKCS12 username: cwagent otlp/traces: protocols: grpc: dialer: timeout: 0s endpoint: 0.0.0.0:1111 include_metadata: false max_concurrent_streams: 0 max_recv_msg_size_mib: 0 read_buffer_size: 524288 transport: tcp write_buffer_size: 0 http: endpoint: 0.0.0.0:2222 idle_timeout: 0s include_metadata: false logs_url_path: /v1/logs max_request_body_size: 0 metrics_url_path: /v1/metrics read_header_timeout: 0s read_timeout: 0s traces_url_path: /v1/traces write_timeout: 0s awsebsnvmereceiver: collection_interval: 1m0s initial_delay: 1s metrics: diskio_ebs_ec2_instance_performance_exceeded_iops: enabled: false diskio_ebs_ec2_instance_performance_exceeded_tp: enabled: false diskio_ebs_total_read_bytes: enabled: true diskio_ebs_total_read_ops: enabled: false diskio_ebs_total_read_time: enabled: false diskio_ebs_total_write_bytes: enabled: false diskio_ebs_total_write_ops: enabled: false diskio_ebs_total_write_time: enabled: false diskio_ebs_volume_performance_exceeded_iops: enabled: false diskio_ebs_volume_performance_exceeded_tp: enabled: false diskio_ebs_volume_queue_length: enabled: false resource_attributes: VolumeId: enabled: true devices: - '*' timeout: 0s 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: encoding: utf-8 id: udp_input listen_address: 127.0.0.1:25888 multiline: line_end_pattern: .^ line_start_pattern: "" omit_pattern: false operators: [] retry_on_failure: enabled: false initial_interval: 0s max_elapsed_time: 0s max_interval: 0s type: udp_input service: extensions: - agenthealth/metrics - agenthealth/statuscode - agenthealth/logs - agenthealth/traces - entitystore pipelines: logs/emf_logs: exporters: - awscloudwatchlogs/emf_logs processors: - batch/emf_logs receivers: - udplog/emf_logs metrics/host/cloudwatch: exporters: - awscloudwatch processors: - ec2tagger - transform - awsentity/resource receivers: - telegraf_netstat - telegraf_swap - telegraf_disk - telegraf_mem - telegraf_cpu - telegraf_processes - telegraf_procstat/1917393364 metrics/hostCustomMetrics/cloudwatch: exporters: - awscloudwatch processors: - ec2tagger - transform - awsentity/service/telegraf receivers: - telegraf_socket_listener - telegraf_statsd metrics/hostDeltaMetrics/cloudwatch: exporters: - awscloudwatch processors: - cumulativetodelta/hostDeltaMetrics/cloudwatch - ec2tagger - transform - awsentity/resource receivers: - telegraf_diskio - telegraf_net - awsebsnvmereceiver metrics/jmx/cloudwatch/0: exporters: - awscloudwatch processors: - filter/jmx/0 - resource/jmx - transform/jmx/0 - ec2tagger - cumulativetodelta/jmx receivers: - jmx/0 metrics/jmx/cloudwatch/1: exporters: - awscloudwatch processors: - filter/jmx/1 - resource/jmx - transform/jmx/1 - ec2tagger - cumulativetodelta/jmx receivers: - jmx/1 traces/xray: exporters: - awsxray processors: - batch/xray receivers: - awsxray - otlp/traces telemetry: logs: development: false disable_caller: false disable_stacktrace: false encoding: console level: error output_paths: - /tmp/fake/log/hotdog.log sampling: enabled: true initial: 2 thereafter: 500 tick: 10s metrics: address: "" level: None traces: level: None