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
Copy file name to clipboardExpand all lines: modules/otel-collector-config-options.adoc
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ The OpenTelemetry Collector consists of five types of components that access tel
17
17
18
18
You can define multiple instances of components in a custom resource YAML file. When configured, these components must be enabled through pipelines defined in the `spec.config.service` section of the YAML file. As a best practice, only enable the components that you need.
19
19
20
-
.Example of the OpenTelemetry Collector custom resource file
20
+
The following is an example of the OpenTelemetry Collector custom resource file:
21
+
21
22
[source,yaml]
22
23
----
23
24
apiVersion: opentelemetry.io/v1beta1
@@ -61,7 +62,8 @@ where:
61
62
62
63
`service`:: If a component is configured but not defined in the `service` section, the component is not enabled.
63
64
64
-
.Parameters used by the Operator to define the OpenTelemetry Collector
65
+
The Operator uses the following parameters to define the OpenTelemetry Collector:
Copy file name to clipboardExpand all lines: modules/otel-collector-profile-signal.adoc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@ Profiling can target an application or operating system:
21
21
22
22
* Using profiling to observe operating systems can provide insights into the infrastructure, system calls, kernel operations, and I/O wait times, and thus help in optimizing infrastructure for efficiency and cost savings.
23
23
24
-
.OpenTelemetry Collector custom resource with the enabled Profile signal
24
+
The following is an OpenTelemetry Collector custom resource with the enabled Profile signal:
Copy file name to clipboardExpand all lines: modules/otel-config-instrumentation.adoc
+34-18Lines changed: 34 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ The {OTelOperator} only supports the injection mechanism of the instrumentation
19
19
20
20
Instrumentation options are specified in an `Instrumentation` custom resource (CR).
21
21
22
-
.Sample `Instrumentation` CR
22
+
The following is a sample `Instrumentation` CR:
23
+
23
24
[source,yaml]
24
25
----
25
26
apiVersion: opentelemetry.io/v1alpha1
@@ -59,13 +60,13 @@ where:
59
60
`dotnet.env`:: Required if endpoint is set to `:4317`.
60
61
`go`:: Go auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
61
62
`go.env`:: Required if endpoint is set to `:4317`.
62
-
63
63
+
64
64
For more information about protocol buffers, see link:https://protobuf.dev/overview/[Overview] (Protocol Buffers Documentation).
65
65
66
66
//[cols=",,",options="header",]
67
67
68
-
.Parameters used by the Operator to define the instrumentation
68
+
The Operator uses the following parameters to define the instrumentation:
69
+
69
70
[options="header"]
70
71
[cols="a, a, a"]
71
72
|===
@@ -119,7 +120,8 @@ Depending on the programming language, environment variables might not work for
119
120
120
121
|===
121
122
122
-
.Default protocol for auto-instrumentation
123
+
The following is the default protocol for auto-instrumentation:
124
+
123
125
[options="header"]
124
126
[cols="a, a"]
125
127
|===
@@ -160,7 +162,8 @@ You can use the `instrumentation.opentelemetry.io/inject-sdk` annotation in the
160
162
* `OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`
161
163
* `OTEL_EXPORTER_OTLP_CLIENT_KEY`
162
164
163
-
.Values for the `instrumentation.opentelemetry.io/inject-sdk` annotation
165
+
The `instrumentation.opentelemetry.io/inject-sdk` annotation accepts the following values:
166
+
164
167
[cols="a, a"]
165
168
|===
166
169
| Value | Description
@@ -184,7 +187,8 @@ You can use the `instrumentation.opentelemetry.io/inject-sdk` annotation in the
184
187
185
188
Although the `Instrumentation` custom resource supports setting up one or more exporters per signal, auto-instrumentation configures only the OTLP Exporter. So you must configure the endpoint to point to the OTLP Receiver on the Collector.
186
189
187
-
.Sample exporter TLS CA configuration using a config map
190
+
The following is a sample exporter TLS CA configuration using a config map:
191
+
188
192
[source,yaml]
189
193
----
190
194
apiVersion: opentelemetry.io/v1alpha1
@@ -205,7 +209,8 @@ where:
205
209
`configMapName`:: Specifies the name of the config map. The config map must already exist in the namespace of the pod injecting the auto-instrumentation.
206
210
`ca_file`:: Points to the CA certificate in the config map or the absolute path to the certificate if the certificate is already present in the workload file system.
207
211
208
-
.Sample exporter mTLS configuration using a Secret
212
+
The following is a sample exporter mTLS configuration using a Secret:
213
+
209
214
[source,yaml]
210
215
----
211
216
apiVersion: opentelemetry.io/v1alpha1
@@ -235,7 +240,8 @@ where:
235
240
You can provide the CA certificate in a config map or Secret. If you provide it in both, the config map takes higher precedence than the Secret.
236
241
====
237
242
238
-
.Example configuration for CA bundle injection by using a config map and `Instrumentation` CR
243
+
The following is an example configuration for CA bundle injection by using a config map and `Instrumentation` CR:
244
+
239
245
[source,yaml]
240
246
----
241
247
apiVersion: v1
@@ -266,7 +272,8 @@ spec:
266
272
:FeatureName: The Apache HTTP Server auto-instrumentation
@@ -333,7 +341,8 @@ By default, this feature injects unsupported, upstream instrumentation libraries
333
341
334
342
For the .NET auto-instrumentation, the required `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable must be set if the endpoint of the exporters is set to `4317`. The .NET autoinstrumentation uses `http/proto` by default, and the telemetry data must be set to the `4318` port.
335
343
336
-
.The `PodSpec` annotation to enable injection
344
+
The following is the `PodSpec` annotation to enable injection:
@@ -504,7 +517,8 @@ By default, this feature injects unsupported, upstream instrumentation libraries
504
517
505
518
For Python auto-instrumentation, the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable must be set if the endpoint of the exporters is set to `4317`. Python auto-instrumentation uses `http/proto` by default, and the telemetry data must be set to the `4318` port.
506
519
507
-
.The `PodSpec` annotation to enable injection
520
+
The following is the `PodSpec` annotation to enable injection:
The instrumentation is injected to the first container that is available by default according to the pod specification. You can also specify the target container names for injection.
`container-names`:: You can inject instrumentation for only one language per container. For the list of supported `<application_language>` values, see the following table.
544
559
545
-
.Supported values for the `<application_language>`
560
+
The `<application_language>` parameter supports the following values:
Copy file name to clipboardExpand all lines: modules/otel-config-send-metrics-monitoring-stack.adoc
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@
9
9
[role="_abstract"]
10
10
You can configure the `OpenTelemetryCollector` custom resource (CR) to create a Prometheus `ServiceMonitor` CR or a `PodMonitor` CR for a sidecar deployment. A `ServiceMonitor` can scrape Collector's internal metrics endpoint and Prometheus exporter metrics endpoints.
11
11
12
-
.Example of the OpenTelemetry Collector CR with the Prometheus exporter
12
+
The following is an example of the OpenTelemetry Collector CR with the Prometheus exporter:
13
+
13
14
[source,yaml]
14
15
----
15
16
apiVersion: opentelemetry.io/v1beta1
@@ -52,7 +53,8 @@ Setting `enableMetrics` to `true` creates the following two `ServiceMonitor` ins
52
53
53
54
Alternatively, a manually created Prometheus `PodMonitor` CR can provide fine control, for example removing duplicated labels added during Prometheus scraping.
54
55
55
-
.Example of the `PodMonitor` CR that configures the monitoring stack to scrape the Collector metrics
56
+
The following is an example of the `PodMonitor` CR that configures the monitoring stack to scrape the Collector metrics:
Copy file name to clipboardExpand all lines: modules/otel-connectors-count-connector.adoc
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@ The following are the default metric names:
22
22
23
23
You can also expose custom metric names.
24
24
25
-
.OpenTelemetry Collector custom resource (CR) with an enabled Count Connector
25
+
The following is an OpenTelemetry Collector custom resource (CR) with an enabled Count Connector:
26
+
26
27
[source,yaml]
27
28
----
28
29
# ...
@@ -53,15 +54,15 @@ where:
53
54
`exporters`:: Configures the Count Connector to receive spans as an exporter.
54
55
`receivers`:: Configures the Count Connector to emit generated metrics as a receiver.
55
56
56
-
+
57
57
[TIP]
58
58
====
59
59
If the Count Connector is not generating the expected metrics, you can check whether the OpenTelemetry Collector is receiving the expected spans, metrics, and logs, and whether the telemetry data flow through the Count Connector as expected. You can also use the Debug Exporter to inspect the incoming telemetry data.
60
60
====
61
61
62
62
The Count Connector can count telemetry data according to defined conditions and expose those data as metrics when configured by using such fields as `spans`, `spanevents`, `metrics`, `datapoints`, or `logs`. See the next example.
63
63
64
-
.Example OpenTelemetry Collector CR for the Count Connector to count spans by conditions
64
+
The following is an example OpenTelemetry Collector CR for the Count Connector to count spans by conditions:
65
+
65
66
[source,yaml]
66
67
----
67
68
# ...
@@ -81,15 +82,15 @@ where:
81
82
`spans`:: In this example, the exposed metric counts spans with the specified conditions.
82
83
`<custom_metric_name>`:: You can specify a custom metric name such as `cluster.prod.event.count`.
83
84
84
-
+
85
85
[TIP]
86
86
====
87
87
Write conditions correctly and follow the required syntax for attribute matching or telemetry field conditions. Improperly defined conditions are the most likely sources of errors.
88
88
====
89
89
90
90
The Count Connector can count telemetry data according to defined attributes when configured by using such fields as `spans`, `spanevents`, `metrics`, `datapoints`, or `logs`. See the next example. The attribute keys are injected into the telemetry data. You must define a value for the `default_value` field for missing attributes.
91
91
92
-
.Example OpenTelemetry Collector CR for the Count Connector to count logs by attributes
92
+
The following is an example OpenTelemetry Collector CR for the Count Connector to count logs by attributes:
0 commit comments