forked from rhobs/configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
observatorium-traces-template.yaml
195 lines (195 loc) · 5.58 KB
/
observatorium-traces-template.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: observatorium-traces
objects:
- apiVersion: logging.openshift.io/v1
kind: Elasticsearch
metadata:
annotations:
logging.openshift.io/elasticsearch-cert-management: "true"
logging.openshift.io/elasticsearch-cert.curator-${ELASTICSEARCH_NAME}: system.logging.curator
logging.openshift.io/elasticsearch-cert.jaeger-${ELASTICSEARCH_NAME}: user.jaeger
name: ${ELASTICSEARCH_NAME}
namespace: ${NAMESPACE}
spec:
managementState: Managed
nodeSpec:
resources:
limits:
memory: ${ELASTICSEARCH_MEMORY}
requests:
cpu: ${ELASTICSEARCH_REQUEST_CPU}
memory: ${ELASTICSEARCH_MEMORY}
nodes:
- nodeCount: ${{ELASTICSEARCH_NODE_COUNT}}
proxyResources: {}
resources: {}
roles:
- master
- client
- data
storage: {}
redundancyPolicy: ${ELASTICSEARCH_REDUNDANCY_POLICY}
- apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
app.kubernetes.io/component: rhobs
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: otelcol
app.kubernetes.io/part-of: observatorium
name: observatorium-jaeger-rhobs-admin
namespace: ${NAMESPACE}
spec:
namespaceSelector: {}
podMetricsEndpoints:
- interval: 2s
port: admin-http
selector:
matchLabels:
app: jaeger
app.kubernetes.io/instance: observatorium-jaeger-rhobs
- apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
app.kubernetes.io/component: telemeter
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: otelcol
app.kubernetes.io/part-of: observatorium
name: observatorium-jaeger-telemeter-admin
namespace: ${NAMESPACE}
spec:
namespaceSelector: {}
podMetricsEndpoints:
- interval: 2s
port: admin-http
selector:
matchLabels:
app: jaeger
app.kubernetes.io/instance: observatorium-jaeger-telemeter
- apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
labels:
app.kubernetes.io/component: rhobs
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: otelcol
app.kubernetes.io/part-of: observatorium
name: observatorium-jaeger-rhobs
namespace: ${NAMESPACE}
spec:
storage:
elasticsearch:
doNotProvision: true
name: ${ELASTICSEARCH_NAME}
useCertManagement: true
options:
es:
index-prefix: rhobs
type: elasticsearch
strategy: production
- apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
labels:
app.kubernetes.io/component: telemeter
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: otelcol
app.kubernetes.io/part-of: observatorium
name: observatorium-jaeger-telemeter
namespace: ${NAMESPACE}
spec:
storage:
elasticsearch:
doNotProvision: true
name: ${ELASTICSEARCH_NAME}
useCertManagement: true
options:
es:
index-prefix: telemeter
type: elasticsearch
strategy: production
- apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
labels:
app.kubernetes.io/component: jaeger
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: otelcol
app.kubernetes.io/part-of: observatorium
name: observatorium-otel
namespace: ${NAMESPACE}
spec:
config: |-
exporters:
jaeger/rhobs:
endpoint: "observatorium-jaeger-rhobs-collector-headless.${NAMESPACE}.svc.cluster.local:14250"
tls:
ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt"
insecure: false
jaeger/telemeter:
endpoint: "observatorium-jaeger-telemeter-collector-headless.${NAMESPACE}.svc.cluster.local:14250"
tls:
ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt"
insecure: false
processors:
routing:
from_attribute: "X-Tenant"
table:
- exporters:
- "jaeger/rhobs"
value: "rhobs"
- exporters:
- "jaeger/telemeter"
value: "telemeter"
receivers:
otlp:
protocols:
grpc: {}
service:
pipelines:
traces:
exporters:
- "jaeger/rhobs"
- "jaeger/telemeter"
processors:
- "routing"
receivers:
- "otlp"
telemetry:
metrics:
level: "basic"
image: ${OPENTELEMETRY_COLLECTOR_IMAGE}:${OPENTELEMETRY_COLLECTOR_IMAGE_TAG}
mode: deployment
- apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: otel-observatorium
namespace: ${NAMESPACE}
spec:
endpoints:
- port: monitoring
selector:
matchLabels:
app.kubernetes.io/component: opentelemetry-collector
app.kubernetes.io/instance: ${NAMESPACE}.observatorium-otel
app.kubernetes.io/name: observatorium-otel-collector-monitoring
parameters:
- name: NAMESPACE
value: observatorium-traces
- name: OPENTELEMETRY_COLLECTOR_IMAGE
value: ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib
- name: OPENTELEMETRY_COLLECTOR_IMAGE_TAG
value: 0.46.0
- name: ELASTICSEARCH_MEMORY
value: 4Gi
- name: ELASTICSEARCH_REQUEST_CPU
value: 200m
- name: ELASTICSEARCH_NAME
value: shared-es
- name: ELASTICSEARCH_NODE_COUNT
value: "1"
- name: ELASTICSEARCH_REDUNDANCY_POLICY
value: ZeroRedundancy