-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollector.yaml
49 lines (49 loc) · 1.15 KB
/
collector.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
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: ssg-eck
spec:
image: otel/opentelemetry-collector-contrib:0.97.0
mode: sidecar
config: |
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch:
resource:
attributes:
- key: layer7gw.name
value: "ssg"
action: upsert
exporters:
debug:
verbosity: basic
otlp/elastic:
endpoint: apm-server-quickstart-apm-http:8200
tls:
insecure_skip_verify: true
headers:
Authorization: "Bearer APM_AUTH_TOKEN"
service:
telemetry:
logs:
level: "debug"
metrics:
address: "0.0.0.0:8888"
pipelines:
traces:
receivers: [otlp]
processors: [resource,batch]
exporters: [otlp/elastic]
metrics:
receivers: [otlp]
processors: [resource,batch]
exporters: [otlp/elastic,debug]
logs:
receivers: [otlp]
exporters: [otlp/elastic, debug]