You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Gathering the observability data from different clusters with the OpenTelemetry Collector
8
8
9
-
For a multicluster configuration, you can create one OpenTelemetry
10
-
Collector instance in each one of the remote clusters and forward all the telemetry
11
-
data to one OpenTelemetry Collector instance.
9
+
For a multicluster configuration, you can create one OpenTelemetry Collector instance in each one of the remote clusters and then forward all the telemetry data to one OpenTelemetry Collector instance.
12
10
13
11
.Prerequisites
14
12
15
13
* The {OTELOperator} is installed.
16
14
* The {TempoOperator} is installed.
17
-
* A TempoStack is deployed on the cluster.
15
+
* A TempoStack instance is deployed on the cluster.
16
+
* The following mounted certificates: Issuer, self-signed certificate, CA issuer, client and server certificates. To create any of these certificates, see step 1.
18
17
19
18
.Procedure
20
19
21
-
. Create a service account for the OpenTelemetry Collector.
20
+
. Mount the following certificates in the OpenTelemetry Collector instance, skipping already mounted certificates.
21
+
22
+
.. An Issuer to generate the certificates by using the {cert-manager-operator}.
23
+
+
24
+
[source,yaml]
25
+
----
26
+
apiVersion: cert-manager.io/v1
27
+
kind: Issuer
28
+
metadata:
29
+
name: selfsigned-issuer
30
+
spec:
31
+
selfSigned: {}
32
+
----
33
+
34
+
.. A self-signed certificate.
35
+
+
36
+
[source,yaml]
37
+
----
38
+
apiVersion: cert-manager.io/v1
39
+
kind: Certificate
40
+
metadata:
41
+
name: ca
42
+
spec:
43
+
isCA: true
44
+
commonName: ca
45
+
subject:
46
+
organizations:
47
+
- Organization # <your_organization_name>
48
+
organizationalUnits:
49
+
- Widgets
50
+
secretName: ca-secret
51
+
privateKey:
52
+
algorithm: ECDSA
53
+
size: 256
54
+
issuerRef:
55
+
name: selfsigned-issuer
56
+
kind: Issuer
57
+
group: cert-manager.io
58
+
----
59
+
60
+
.. A CA issuer.
61
+
+
62
+
[source,yaml]
63
+
----
64
+
apiVersion: cert-manager.io/v1
65
+
kind: Issuer
66
+
metadata:
67
+
name: test-ca-issuer
68
+
spec:
69
+
ca:
70
+
secretName: ca-secret
71
+
----
72
+
73
+
.. The client and server certificates.
74
+
+
75
+
[source,yaml]
76
+
----
77
+
apiVersion: cert-manager.io/v1
78
+
kind: Certificate
79
+
metadata:
80
+
name: server
81
+
spec:
82
+
secretName: server-tls
83
+
isCA: false
84
+
usages:
85
+
- server auth
86
+
- client auth
87
+
dnsNames:
88
+
- "otel.observability.svc.cluster.local" # <1>
89
+
issuerRef:
90
+
name: ca-issuer
91
+
---
92
+
apiVersion: cert-manager.io/v1
93
+
kind: Certificate
94
+
metadata:
95
+
name: client
96
+
spec:
97
+
secretName: client-tls
98
+
isCA: false
99
+
usages:
100
+
- server auth
101
+
- client auth
102
+
dnsNames:
103
+
- "otel.observability.svc.cluster.local" # <2>
104
+
issuerRef:
105
+
name: ca-issuer
106
+
----
107
+
<1> List of exact DNS names to be mapped to a solver in the server OpenTelemetry Collector instance.
108
+
<2> List of exact DNS names to be mapped to a solver in the client OpenTelemetry Collector instance.
109
+
110
+
. Create a service account for the OpenTelemetry Collector instance.
<1> The Collector exporter is configured to export OTLP and points to the Tempo distributor endpoint, which in this example is `"tempo-simplest-distributor:4317"` and already created.
264
+
<1> The Collector receiver requires the certificates listed in the first step.
265
+
<2> The Collector exporter is configured to export OTLP and points to the Tempo distributor endpoint, which in this example is `"tempo-simplest-distributor:4317"` and already created.
0 commit comments