-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OSSMDOC-94: Document OTEL Collector configuration for Tech Preview. #40729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,132 @@ | ||
//// | ||
This module included in the following assemblies: | ||
-distr_tracing_install/distributed-tracing-deploying.adoc | ||
|
||
STUB TOPIC for documenting OTEL collector options (Duplicated from Jaeger Collector) | ||
-distr_tracing_install/distributed-tracing-deploying-otel.adoc | ||
//// | ||
|
||
:_content-type: REFERENCE | ||
[id="distributed-tracing-config-otel-collector_{context}"] | ||
= OpenTelemetry Collector configuration options | ||
|
||
#TECH PREVIEW BOILERPLATE HERE# | ||
#What is the actual Operator name?# | ||
[IMPORTANT] | ||
==== | ||
The {OTELName} Operator is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. | ||
These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. | ||
For more information about the support scope of Red Hat Technology Preview features, see https://access.redhat.com/support/offerings/techpreview/. | ||
==== | ||
|
||
The OpenTelemetry Collector consists of three components that access telemetry data: | ||
|
||
* *Receivers* - A receiver, which can be push or pull based, is how data gets into the Collector. Generally, a receiver accepts data in a specified format, translates it into the internal format and passes it to processors and exporters defined in the applicable pipelines. By default, no receivers are configured. One or more receivers must be configured. Receivers may support one or more data sources. | ||
|
||
* *Processors* - (Optional) Processors are run on data between being received and being exported. By default, no processors are enabled. Processors must be enabled for every data source. Not all processors support all data sources. Depending on the data source, it may be recommended that multiple processors be enabled. In addition, it is important to note that the order of processors matters. | ||
|
||
* *Exporters* - An exporter, which can be push or pull based, is how you send data to one or more backends/destinations. By default, no exporters are configured. One or more exporters must be configured. Exporters may support one or more data sources. Exporters may come with default settings, but many require configuration to specify at least the destination and security settings. | ||
|
||
You can define multiple instances of components in a custom resource YAML file. Once configured, these components must be enabled through pipelines defined in the `spec.config.service` section of the YAML file. As a best practice you should only enable the components that you need. | ||
|
||
The OpenTelemetry Collector is the component responsible for receiving the spans that were captured by the tracer and writing them to an Elasticsearch persistent storage when using the `production` strategy, or to AMQ Streams when using the `streaming` strategy. | ||
.sample OpenTelemetry collector custom resource file | ||
[source,yaml] | ||
---- | ||
apiVersion: opentelemetry.io/v1alpha1 | ||
kind: OpenTelemetryCollector | ||
metadata: | ||
name: cluster-collector | ||
namespace: tracing-system | ||
spec: | ||
mode: deployment | ||
config: | | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
processors: | ||
exporters: | ||
jaeger: | ||
endpoint: jaeger-production-collector-headless.tracing-system.svc:14250 | ||
tls: | ||
ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt" | ||
service: | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [] | ||
exporters: [jaeger] | ||
---- | ||
|
||
The Collectors are stateless and thus many instances of OpenTelemetry Collector can be run in parallel. Collectors require almost no configuration, except for the location of the Elasticsearch cluster. | ||
[NOTE] | ||
==== | ||
If a component is configured, but not defined within the `service` section then it is not enabled. | ||
==== | ||
|
||
.Parameters used by the Operator to define the OpenTelemetry Collector | ||
[options="header"] | ||
[cols="l, a, a"] | ||
[cols="l, a, a, a"] | ||
|=== | ||
|Parameter |Description |Values | ||
|Parameter |Description |Values |Default | ||
|receivers: | ||
|A receiver is how data gets into the Collector. By default, no receivers are configured. There must be at least one enabled receiver for a configuration to be considered valid. Receivers are enabled by being added to a pipeline. | ||
|`otlp`, `jaeger` | ||
|None | ||
|
||
|receivers: | ||
otlp: | ||
|The `oltp` and `jaeger` receivers come with default settings, specifying the name of the receiver is enough to configure it. | ||
| | ||
| | ||
|
||
|processors: | ||
|Processors run on data between being received and being exported. By default, no processors are enabled. | ||
| | ||
|=== | ||
|None | ||
|
||
|exporters: | ||
|An exporter sends data to one or more backends/destinations. By default, no exporters are configured. There must be at least one enabled exporter for a configuration to be considered valid. Exporters are enabled by being added to a pipeline. Exporters may come with default settings, but many require configuration to specify at least the destination and security settings. | ||
|`logging`, `jaeger` | ||
|None | ||
|
||
.Parameters passed to the Collector | ||
[options="header"] | ||
[cols="l, a, a"] | ||
|=== | ||
|Parameter |Description |Values | ||
|spec: | ||
collector: | ||
options: {} | ||
|exporters: | ||
jaeger: | ||
endpoint: | ||
|
||
|The `jaeger` exporter’s endpoint must be of the form `<name>-collector-headless.<namespace>.svc`, with the name and namespace of the Jaeger deployment, for a secure connection to be established. | ||
| | ||
| | ||
|
||
|exporters: | ||
jaeger: | ||
tls: | ||
ca_file: | ||
|Path to the CA certificate. For a client this verifies the server certificate. For a server this verifies client certificates. If empty uses system root CA. | ||
| | ||
| | ||
|
||
|service: | ||
pipelines: | ||
|Components are enabled by adding them to a pipeline under `services.pipeline`. | ||
| | ||
| | ||
|
||
|service: | ||
pipelines: | ||
traces: | ||
receivers: | ||
|You enable receivers for tracing by adding them under `service.pipelines.traces`. | ||
| | ||
|None | ||
|
||
JStickler marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|service: | ||
pipelines: | ||
traces: | ||
processors: | ||
|You enable processors for tracing by adding them under `service.pipelines.traces`. | ||
| | ||
|None | ||
|
||
|service: | ||
pipelines: | ||
traces: | ||
exporters: | ||
|You enable exporters for tracing by adding them under `service.pipelines.traces`. | ||
| | ||
|None | ||
|=== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.