1- # Default configuration file for the Linux (deb/rpm) and Windows MSI collector packages
2-
31receivers :
42 otlp :
53 protocols :
@@ -13,47 +11,28 @@ processors:
1311 batch :
1412 metadata_keys :
1513 - X-SF-Token
16- # Enabling the memory_limiter is strongly recommended for every pipeline.
17- # Configuration is based on the amount of memory allocated to the collector.
18- # For more information about memory limiter, see
19- # https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/memorylimiter/README.md
2014 memory_limiter :
2115 check_interval : 2s
2216 limit_mib : 512
23-
24- # resourcedetection:
25- # detectors: [gcp, ecs, ec2, azure, system]
26- # override: true
27-
28- # resource/add_environment:
29- # attributes:
30- # - action: insert
31- # value: staging/production/...
32- # key: deployment.environment
33-
34- # The following processor is used to add "otelcol.service.mode" attribute to the internal metrics
17+ resourcedetection :
18+ detectors : [gcp, ecs, ec2, azure, system]
19+ override : true
3520 resource/add_mode :
3621 attributes :
3722 - action : insert
3823 value : " agent"
3924 key : otelcol.service.mode
40-
4125 filter :
4226 error_mode : ignore
4327 metrics :
4428 datapoint :
4529 - metric.name == "thiswillbedropped" and value_int == 4
4630
47-
4831exporters :
49- # Debug
5032 debug :
5133 verbosity : detailed
52- sampling_initial : 5
53- sampling_thereafter : 200
54-
5534 file :
56- path : ./agent.out
35+ path : ./agent.out
5736
5837service :
5938 pipelines :
@@ -62,24 +41,15 @@ service:
6241 processors :
6342 - memory_limiter
6443 - batch
65- # - resource/add_environment
6644 exporters : [file]
67- # Use instead when sending to gateway
68- # exporters: [otlp/gateway, signalfx]
6945 metrics :
7046 receivers : [ otlp]
7147 processors : [memory_limiter, batch]
7248 exporters : [file]
73- # Use instead when sending to gateway
74- # exporters: [otlp/gateway]
75-
7649 logs :
7750 receivers : [otlp]
7851 processors :
7952 - memory_limiter
8053 - batch
81- # - resourcedetection
82- # - resource/add_environment
83- exporters : [file]
84- # Use instead when sending to gateway
85- # exporters: [otlp/gateway]
54+ - resourcedetection
55+ exporters : [file]
0 commit comments