Doris Exporter
contrib
Maintainers: @atoulme, @joker-star-l
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
This exporter supports sending traces, metrics, and logs data to Apache Doris (version >= 2.1.1).Configuration
The following configuration options are supported:endpointThe http stream load address.database(default = otel) The database name.usernameThe authentication username.passwordThe authentication password.tablelogs(default = otel_logs) The table name for logs.traces(default = otel_traces) The table name for traces.metrics(default = otel_metrics) The table name for metrics.
create_schema(default = true) Whether databases and tables are created automatically in doris.mysql_endpointThe mysql protocol address of doris. Only use to create the schema; ignored ifcreate_schemais false.history_days(default = 0) Data older than these days will be deleted; ignored ifcreate_schemais false. If set to 0, historical data will not be deleted.create_history_days(default = 0) The number of days in the history partition that was created when the table was created; ignored ifcreate_schemais false. Ifhistory_daysis not 0,create_history_daysneeds to be less than or equal tohistory_days.replication_num(default = 1) The number of replicas of the table; ignored ifcreate_schemais false.timezone(default is the time zone of the opentelemetry collector if IANA Time Zone Database is found, else is UTC) The time zone of doris, e.g. Asia/Shanghai.log_response(default = false) Whether to log the response of doris stream load.label_prefix(default = open_telemetry) the prefix of the label in doris stream load. The final generated label is {label_prefix}{db}{table}{yyyyMMddHHmmss}{uuid}.headers(default is empty map) The headers of doris stream load. Details: header parameters and group commit.log_progress_interval(default = 10) The interval, in seconds, between statistical logs. When it is less than or equal to 0, the statistical log is not printed.sending_queuedetails hereenabled(default = true)num_consumers(default = 10) Number of consumers that dequeue batches; ignored ifenabledis false.queue_size(default = 1000) Maximum number of batches kept in memory before dropping; ignored ifenabledis false.
retry_on_failuredetails hereenabled(default = true)initial_interval(default = 5s) Time to wait after the first failure before retrying; ignored ifenabledis false.max_interval(default = 30s) The upper bound on backoff; ignored ifenabledis false.max_elapsed_time(default = 300s) The maximum amount of time spent trying to send a batch; ignored ifenabledis false. If set to 0, the retries are never stopped.
timeout (HTTP request timeout) to 60s by default. All other defaults are as defined by confighttp.
Example:
Notes
-
Time Zone
The Doris exporter uses IANA Time Zone Database (known as tzdata) to handle time zones, so make sure tzdata is on your system.
For example, when you use docker, you should add option
-v your/path/to/tzdata:/usr/share/zoneinfowhen running the container.
Configuration
Example Configuration
Last generated: 2026-04-13