Skip to main content

Configuration

This is the full list of options and their environment variable alternatives. Any defaults left blank in the table are either False or None.

Option NameTypeEnvironDefaultOptions
enabledboolROTEL_ENABLED
pid_filestrROTEL_PID_FILE/tmp/rotel-agent.pid
log_filestrROTEL_LOG_FILE/tmp/rotel-agent.log
log_formatstrROTEL_LOG_FORMATtextjson, text
debug_loglist[str]ROTEL_DEBUG_LOGtraces, metrics, logs
otlp_grpc_endpointstrROTEL_OTLP_GRPC_ENDPOINTlocalhost:4317
otlp_http_endpointstrROTEL_OTLP_HTTP_ENDPOINTlocalhost:4318
otlp_receiver_traces_disabledboolROTEL_OTLP_RECEIVER_TRACES_DISABLED
otlp_receiver_metrics_disabledboolROTEL_OTLP_RECEIVER_METRICS_DISABLED
otlp_receiver_logs_disabledboolROTEL_OTLP_RECEIVER_LOGS_DISABLED
exporterOTLPExporter | DatadogExporter | ClickhouseExporter

OTLP Exporter

To construct an OTLP exporter, use the method Config.otlp_exporter() with the following options.

Option NameTypeEnvironDefaultOptions
endpointstrROTEL_OTLP_EXPORTER_ENDPOINT
protocolstrROTEL_OTLP_EXPORTER_PROTOCOLgrpcgrpc or http
headersdict[str, str]ROTEL_OTLP_EXPORTER_CUSTOM_HEADERS
compressionstrROTEL_OTLP_EXPORTER_COMPRESSIONgzipgzip or none
request_timeoutstrROTEL_OTLP_EXPORTER_REQUEST_TIMEOUT5s
retry_initial_backoffstrROTEL_OTLP_EXPORTER_RETRY_INITIAL_BACKOFF5s
retry_max_backoffstrROTEL_OTLP_EXPORTER_RETRY_MAX_BACKOFF30s
retry_max_elapsed_timestrROTEL_OTLP_EXPORTER_RETRY_MAX_ELAPSED_TIME300s
batch_max_sizeintROTEL_OTLP_EXPORTER_BATCH_MAX_SIZE8192
batch_timeoutstrROTEL_OTLP_EXPORTER_BATCH_TIMEOUT200ms
tls_cert_filestrROTEL_OTLP_EXPORTER_TLS_CERT_FILE
tls_key_filestrROTEL_OTLP_EXPORTER_TLS_KEY_FILE
tls_ca_filestrROTEL_OTLP_EXPORTER_TLS_CA_FILE
tls_skip_verifyboolROTEL_OTLP_EXPORTER_TLS_SKIP_VERIFY

Datadog Exporter

Rotel provides an experimental Datadog exporter that supports traces at the moment. To use it instead of the OTLP exporter, use the method Config.datadog_exporter() with the following options.

Option NameTypeEnvironDefaultOptions
regionstrROTEL_DATADOG_EXPORTER_REGIONus1us1, us3, us5, eu, ap1
custom_endpointstrROTEL_DATADOG_EXPORTER_CUSTOM_ENDPOINT
api_keystrROTEL_DATADOG_EXPORTER_API_KEY

When configuring Rotel with only environment variables, you must set ROTEL_EXPORTER=datadog in addition to the above environment variables.

Clickhouse Exporter

Rotel provides a Clickhouse exporter with support for traces and logs. To use the Clickhouse exporter instead of the OTLP exporter, use the method Cofig.clickhouse_exporter() with the following options.

Option NameTypeEnvironDefaultOptions
endpointstrROTEL_CLICKHOUSE_EXPORTER_ENDPOINT
databasestrROTEL_CLICKHOUSE_EXPORTER_DATABASEotel
table_prefixstrROTEL_CLICKHOUSE_EXPORTER_TABLE_PREFIXotel
compressionstrROTEL_CLICKHOUSE_EXPORTER_COMPRESSIONlz4
async_insertboolROTEL_CLICKHOUSE_EXPORTER_ASYNC_INSERTtrue
userstrROTEL_CLICKHOUSE_EXPORTER_USER
passwordstrROTEL_CLICKHOUSE_EXPORTER_PASSWORD

When configuring Rotel with only environment variables, you must set ROTEL_EXPORTER=clickhouse in addition to the above environment variables.