[Task] Supports doris as a time-series database
Description
Apache Doris is already a mature OLAP database developed by Chinese people. Many companies use it as the underlying storage and support time series. Hertzbeat 1.8 version has added logging function, and Doris can also support log retrieval very well. Can community members support Doris so that more Chinese users can benefit from it
It was mentioned in issues/2589
Task List
No response
Thanks for the suggestion. HertzBeat currently supports Doris as a monitoring target (BE/FE via Prometheus protocol in app-doris_be.yml/app-doris_fe.yml), but does not support it as a time-series storage backend.
The warehouse module already has implementations for 7 time-series databases (TDengine, InfluxDB, GreptimeDB, IoTDB, QuestDB, VictoriaMetrics, DuckDB) under hertzbeat-warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tsdb/, which can serve as templates.
Before we proceed, could you clarify:
- Which Doris version do you target (1.x or 2.x)?
- Should this support both metrics and log data storage, or metrics only?
A reference implementation would involve creating DorisProperties.java and DorisDataStorage.java (extending AbstractHistoryDataStorage), plus adding warehouse.store.doris configuration to script/application.yml. Doris is MySQL-protocol compatible, so the MySQL JDBC driver can be used.