forked from kyma-project/telemetry-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
telemetry_v1alpha1_logpipeline_otlp.yaml
126 lines (125 loc) · 2.33 KB
/
telemetry_v1alpha1_logpipeline_otlp.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
116
117
118
119
120
121
122
123
124
125
---
apiVersion: v1
kind: Namespace
metadata:
name: log-sink-otlp
---
apiVersion: v1
kind: ConfigMap
metadata:
name: log-sink-config
namespace: log-sink-otlp
data:
config.yaml: |
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
service:
pipelines:
logs:
receivers:
- otlp
exporters:
- debug
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: log-sink
namespace: log-sink-otlp
spec:
replicas: 1
selector:
matchLabels:
app: log-sink
strategy: {}
template:
metadata:
labels:
app: log-sink
spec:
volumes:
- name: config
configMap:
name: log-sink-config
securityContext:
fsGroup: 101
containers:
- image: otel/opentelemetry-collector-contrib:latest
name: collector
volumeMounts:
- name: config
mountPath: /etc/collector
args:
- --config=/etc/collector/config.yaml
---
apiVersion: v1
kind: Service
metadata:
name: log-sink
namespace: log-sink-otlp
spec:
ports:
- name: grpc-otlp
port: 4317
protocol: TCP
targetPort: 4317
- name: http-otlp
port: 4318
protocol: TCP
targetPort: 4318
selector:
app: log-sink
---
apiVersion: v1
kind: Namespace
metadata:
name: log-gen-otlp
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: log-gen
namespace: log-gen-otlp
spec:
replicas: 1
selector:
matchLabels:
app: log-gen
strategy: {}
template:
metadata:
labels:
app: log-gen
spec:
containers:
- command:
- /telemetrygen
- logs
- --otlp-endpoint
- telemetry-otlp-logs.kyma-system:4317
- --otlp-insecure
- --duration
- 1h
- --rate
- "10"
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.111.0
name: telemetrygen
---
apiVersion: telemetry.kyma-project.io/v1alpha1
kind: LogPipeline
metadata:
name: sample
spec:
output:
otlp:
endpoint:
value: http://log-sink.log-sink-otlp:4317
protocol: grpc