From 8d7a314697b88fc93dcda7008181d63fadfc17e0 Mon Sep 17 00:00:00 2001 From: sumologic-sanyaku-apps Date: Tue, 25 Jun 2024 14:13:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20created=20local=20'assets/sumolo?= =?UTF-8?q?gic-windows.yaml'=20from=20remote=20'assets/sumologic-windows.y?= =?UTF-8?q?aml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/sumologic-windows.yaml | 122 ++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 assets/sumologic-windows.yaml diff --git a/assets/sumologic-windows.yaml b/assets/sumologic-windows.yaml new file mode 100644 index 0000000000..c53fe2dc27 --- /dev/null +++ b/assets/sumologic-windows.yaml @@ -0,0 +1,122 @@ +## This file is generated automatically and shouldn't be changed +## All modifications should be put as separate files in conf.d subdirectory +extensions: + ## Configuration for Sumo Logic Extension + ## Manages registration, heartbeats and authentication to Sumo Logic + ## ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/sumologicextension + sumologic: + installation_token: ${SUMOLOGIC_INSTALLATION_TOKEN} + collector_credentials_directory: ${PROGRAMDATA}\Sumo Logic\OpenTelemetry Collector\data\credentials + + ## Configuration for Health Check Extension + ## Health Check extension enables an HTTP url that can be probed to check the status of the OpenTelemetry Collector + ## ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/healthcheckextension + health_check: + endpoint: localhost:13133 + + ## Configuration for File Storage Extension + ## The File Storage extension can persist state to the local file system + ## ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/storage/filestorage + file_storage: + compaction: + directory: ${PROGRAMDATA}\Sumo Logic\OpenTelemetry Collector\data\file_storage + on_rebound: true + directory: ${PROGRAMDATA}\Sumo Logic\OpenTelemetry Collector\data\file_storage + +receivers: + ## Configuration for OTLP Receiver + ## Receives data via gRPC or HTTP using OTLP format. + ## ref: https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver + otlp: + protocols: + grpc: + endpoint: localhost:4317 + http: + endpoint: localhost:4318 + +exporters: + ## Configuration for Sumo Logic Exporter + ## This exporter supports sending logs, metrics and traces data to Sumo Logic. + ## ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.102.0/exporter/sumologicexporter + sumologic: + sending_queue: + enabled: true + storage: file_storage + retry_on_failure: + max_elapsed_time: 0 + +processors: + ## Configuration for Memory Limiter Processor + ## The memory_limiter processor is used to prevent out of memory situations on the collector. + ## ref: https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor + memory_limiter: + ## check_interval is the time between measurements of memory usage for the + ## purposes of avoiding going over the limits. Defaults to zero, so no + ## checks will be performed. Values below 1 second are not recommended since + ## it can result in unnecessary CPU consumption. + check_interval: 5s + ## Maximum amount of memory, in %, targeted to be allocated by the process heap. + limit_percentage: 75 + ## Spike limit (calculated from available memory). Must be less than limit_percentage. + spike_limit_percentage: 20 + + ## Configuration for Batch Processor + ## The batch processor accepts records and places them into batches grouped by node and resource + ## ref: https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/batchprocessor + batch: + ## Number of records after which a batch will be sent regardless of time + send_batch_size: 1_024 + ## Time duration after which a batch will be sent regardless of size + timeout: 1s + + ## Configuration for Sumo Logic Schema Processor + ## The Sumo Logic Schema processor modifies the metadata on logs, metrics and traces sent to Sumo Logic + ## so that the Sumo Logic apps can make full use of the ingested data. + ## ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/sumologicprocessor + sumologic: + + ## Configuration for Resource Detection Processor + ## The resource detection processor can be used to detect resource information from the host, in a format that conforms to the + ## OpenTelemetry resource semantic conventions, and append or override the resource value in telemetry data with this information. + ## ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor + resourcedetection/system: + detectors: ["system"] + system: + hostname_sources: ["dns", "os"] + +service: + extensions: + - sumologic + - health_check + - file_storage + telemetry: + metrics: + address: localhost:8888 + pipelines: + metrics/default: + receivers: + - otlp + processors: + - memory_limiter + - batch + - sumologic + exporters: + - sumologic + logs/default: + receivers: + - otlp + processors: + - memory_limiter + - batch + - sumologic + exporters: + - sumologic + traces/default: + receivers: + - otlp + processors: + - memory_limiter + - batch + - sumologic + exporters: + - sumologic