Configuring collector
Prerequisites
Before sending OpenTelemetry data to the SixthSense platform, ensure you have the following:
SixthSense Collector URL
- This URL will be provided by SixthSense Customer Support.
- Separate URLs may be provided for gRPC and HTTP endpoints.
Access Token To get the token, see Accessing your Access Token.
Recommended approaches for sending OpenTelemetry data
The following approaches are recommended for sending OpenTelemetry data to the SixthSense platform:
- Directly from Agents/SDKs
Configure your OpenTelemetry data source to send data to the SixthSense endpoint using the native OpenTelemetry Protocol (OTLP). OTLP is an open-source, vendor-agnostic gRPC-based protocol for sending telemetry data.
- Through OpenTelemetry Collector
Configure the OpenTelemetry Collector to forward telemetry data to the SixthSense platform using the OTLP exporter. For more information, see Configuring Open Telmetry Connector
Configuring Agents/SDKs
Set the following environment variables to enable data transmission from OpenTelemetry agents/SDKs:
Variable | Description | Default/Example |
---|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | The OTLP gRPC or HTTP endpoint for SixthSense.<sixthsense_url> | |
OTEL_EXPORTER_OTLP_HEADERS | Authentication headers for OTLP export | x-access-token=<your_access_token> |
OTEL_METRIC_EXPORT_INTERVAL | Sets the metric export interval in milliseconds. | 60000 (60 seconds) |
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE | Defines metric temporality. Configure metrics temporality preference to delta, as supported by SixthSense | DELTA |
OTEL_EXPORTER_OTLP_COMPRESSION | Compression for OTLP data transmission. Options: none, gzip. | none |
OTEL_SERVICE_NAME | A custom name for your service/application to identify telemetry data in SixthSense. | otel-service |
OTEL_EXPORTER_OTLP_PROTOCOL | Protocol for data transmission. Options: grpc (default), http/protobuf. | grpc |
note
To use HTTP instead of the default gRPC protocol, configure the following environment variables:
Replace <sixthsense_http_url> with the HTTP endpoint URL provided by Customer Support.
Sample Environment Variables:
Configuring OpenTelemetry Collector
For configuring OTel collector, add exporters for sending the traces and metrics, update the otel-config.yml file.
- Define OTLP Exporters
Add exporters for gRPC or HTTP in the otel-config.yml file.
gRPC Exporter:
HTTP Exporter Configuration:
To use HTTP instead of gRPC, configure the otlphttp exporter as follows:
- Configure Pipelines
Add the defined exporters to the pipelines section of the otel-config.yml file.
If using GRPC:
If using http:
Example of otel-config.yml
Below is a complete example where the traces are exported over gRPC.
Summary
Key Configuration Points
- Agent/SDK Configuration
Set environment variables for OTLP endpoint, access token, and optional parameters like metric interval and protocol.
- Collector Configuration
Configure exporters (either gRPC or HTTP) and add them to the service pipelines for traces and metrics.
- Authentication
Always include the x-access-token header for authentication.
- Protocol Choice
gRPC is generally recommended for better performance. Use HTTP only if necessary.
- Metric Temporality
Use DELTA for metrics, as this is the recommended temporality by SixthSense.
If you encounter any issues, or for further assistance, please reach out to SixthSense Customer Support.