Skip to content

Commit cc81a9d

Browse files
committed
Added gateway YAML
1 parent 4aa1f99 commit cc81a9d

File tree

4 files changed

+55
-38
lines changed

4 files changed

+55
-38
lines changed
Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Default configuration file for the Linux (deb/rpm) and Windows MSI collector packages
2-
31
receivers:
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-
4831
exporters:
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

5837
service:
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]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
receivers:
2+
otlp:
3+
protocols:
4+
grpc:
5+
endpoint: "0.0.0.0:5317"
6+
http:
7+
endpoint: "0.0.0.0:5318"
8+
9+
processors:
10+
batch:
11+
metadata_keys:
12+
- X-SF-Token
13+
memory_limiter:
14+
check_interval: 2s
15+
limit_mib: 512
16+
resource/add_mode:
17+
attributes:
18+
- action: insert
19+
value: "gateway"
20+
key: otelcol.service.mode
21+
resourcedetection/internal:
22+
detectors: [gcp, ecs, ec2, azure, system]
23+
override: true
24+
25+
exporters:
26+
debug:
27+
verbosity: detailed
28+
29+
service:
30+
pipelines:
31+
traces:
32+
receivers: [otlp]
33+
processors:
34+
- memory_limiter
35+
- batch
36+
exporters: [debug]
37+
metrics:
38+
receivers: [otlp]
39+
processors: [memory_limiter, batch]
40+
exporters: [debug]
41+
logs:
42+
receivers: [otlp]
43+
processors: [memory_limiter, batch]
44+
exporters: [debug]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
./otelcol-contrib --config agent-org.yaml
1+
#!/bin/sh
2+
./otelcol-contrib --config=agent.yaml
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
./otelcol-contrib --config gateway.yaml
1+
#!/bin/sh
2+
#export SPLUNK_DEBUG_CONFIG_SERVER_PORT=55555
3+
./otelcol-contrib --config=gateway.yaml

0 commit comments

Comments
 (0)