Skip to content

Commit b587d5b

Browse files
committed
OBSDOCS-923: Add a note for the example OpenTelemetry Collector
1 parent d8563bb commit b587d5b

File tree

3 files changed

+56
-76
lines changed

3 files changed

+56
-76
lines changed

modules/otel-install-cli.adoc

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -112,45 +112,11 @@ EOF
112112
You can create multiple OpenTelemetry Collector instances in separate projects on the same cluster.
113113
====
114114
+
115-
.. Customize the `OpenTelemetry Collector` custom resource (CR) with the OTLP, Jaeger, and Zipkin receivers and the debug exporter:
115+
.. Customize the `OpenTelemetryCollector` custom resource (CR):
116116
+
117-
[source,yaml]
118-
----
119-
apiVersion: opentelemetry.io/v1alpha1
120-
kind: OpenTelemetryCollector
121-
metadata:
122-
name: otel
123-
namespace: <project_of_opentelemetry_collector_instance>
124-
spec:
125-
mode: deployment
126-
config: |
127-
receivers:
128-
otlp:
129-
protocols:
130-
grpc:
131-
http:
132-
jaeger:
133-
protocols:
134-
grpc: {}
135-
thrift_binary: {}
136-
thrift_compact: {}
137-
thrift_http: {}
138-
zipkin:
139-
processors:
140-
batch: {}
141-
memory_limiter:
142-
check_interval: 1s
143-
limit_percentage: 50
144-
spike_limit_percentage: 30
145-
exporters:
146-
debug: {}
147-
service:
148-
pipelines:
149-
traces:
150-
receivers: [otlp,jaeger,zipkin]
151-
processors: [memory_limiter,batch]
152-
exporters: [debug]
153-
----
117+
--
118+
include::snippets/otel-collector-custom-resource.adoc[]
119+
--
154120

155121
.. Apply the customized CR by running the following command:
156122
+

modules/otel-install-web-console.adoc

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -42,45 +42,11 @@ This installs the Operator with the default presets:
4242

4343
.. Select *OpenTelemetry Collector* -> *Create OpenTelemetry Collector* -> *YAML view*.
4444

45-
.. In the *YAML view*, customize the `OpenTelemetryCollector` custom resource (CR) with the OTLP, Jaeger, Zipkin receivers and the debug exporter.
45+
.. In the *YAML view*, customize the `OpenTelemetryCollector` custom resource (CR):
4646
+
47-
[source,yaml]
48-
----
49-
apiVersion: opentelemetry.io/v1alpha1
50-
kind: OpenTelemetryCollector
51-
metadata:
52-
name: otel
53-
namespace: <project_of_opentelemetry_collector_instance>
54-
spec:
55-
mode: deployment
56-
config: |
57-
receivers:
58-
otlp:
59-
protocols:
60-
grpc:
61-
http:
62-
jaeger:
63-
protocols:
64-
grpc: {}
65-
thrift_binary: {}
66-
thrift_compact: {}
67-
thrift_http: {}
68-
zipkin: {}
69-
processors:
70-
batch: {}
71-
memory_limiter:
72-
check_interval: 1s
73-
limit_percentage: 50
74-
spike_limit_percentage: 30
75-
exporters:
76-
debug: {}
77-
service:
78-
pipelines:
79-
traces:
80-
receivers: [otlp,jaeger,zipkin]
81-
processors: [memory_limiter,batch]
82-
exporters: [debug]
83-
----
47+
--
48+
include::snippets/otel-collector-custom-resource.adoc[]
49+
--
8450

8551
.. Select *Create*.
8652

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Text snippet included in the following modules:
2+
//
3+
// * otel-install-cli.adoc
4+
// * otel-install-web-console.adoc
5+
6+
:_mod-docs-content-type: SNIPPET
7+
8+
.Example `OpenTelemetryCollector` CR
9+
[source,yaml]
10+
----
11+
apiVersion: opentelemetry.io/v1alpha1
12+
kind: OpenTelemetryCollector
13+
metadata:
14+
name: otel
15+
namespace: <project_of_opentelemetry_collector_instance>
16+
spec:
17+
mode: deployment
18+
config: |
19+
receivers: # <1>
20+
otlp:
21+
protocols:
22+
grpc:
23+
http:
24+
jaeger:
25+
protocols:
26+
grpc: {}
27+
thrift_binary: {}
28+
thrift_compact: {}
29+
thrift_http: {}
30+
zipkin: {}
31+
processors: # <2>
32+
batch: {}
33+
memory_limiter:
34+
check_interval: 1s
35+
limit_percentage: 50
36+
spike_limit_percentage: 30
37+
exporters: # <3>
38+
debug: {}
39+
service:
40+
pipelines:
41+
traces:
42+
receivers: [otlp,jaeger,zipkin]
43+
processors: [memory_limiter,batch]
44+
exporters: [debug]
45+
----
46+
<1> For details, see the "Receivers" page.
47+
<2> For details, see the "Processors" page.
48+
<3> For details, see the "Exporters" page.

0 commit comments

Comments
 (0)