forked from SumoLogic/sumologic-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsumologic.yaml
115 lines (105 loc) · 4.46 KB
/
sumologic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
## 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/SumoLogic/sumologic-otel-collector/tree/main/pkg/extension/sumologicextension
sumologic:
install_token: ${SUMOLOGIC_INSTALL_TOKEN}
collector_credentials_directory: /var/lib/otelcol-sumo/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:
directory: /var/lib/otelcol-sumo/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/SumoLogic/sumologic-otel-collector/tree/main/pkg/exporter/sumologicexporter
sumologic:
sending_queue:
enabled: true
storage: file_storage
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/SumoLogic/sumologic-otel-collector/tree/main/pkg/processor/sumologicschemaprocessor
sumologic_schema:
## 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
pipelines:
metrics/default:
receivers:
- otlp
processors:
- memory_limiter
- batch
- sumologic_schema
exporters:
- sumologic
logs/default:
receivers:
- otlp
processors:
- memory_limiter
- batch
- sumologic_schema
exporters:
- sumologic
traces/default:
receivers:
- otlp
processors:
- memory_limiter
- batch
- sumologic_schema
exporters:
- sumologic