This is an automated email from the ASF dual-hosted git repository.
tomsun28 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 675238b1dd [doc] update metrics storage docs to use duckdb instead of
jpa (#4112)
675238b1dd is described below
commit 675238b1ddbc8d0b542a113f3351e899e7bc4dc0
Author: P_Peaceful <[email protected]>
AuthorDate: Wed May 13 21:47:38 2026 +0800
[doc] update metrics storage docs to use duckdb instead of jpa (#4112)
Co-authored-by: shown <[email protected]>
Co-authored-by: Duansg <[email protected]>
---
home/docs/start/greptime-init.md | 6 ++---
home/docs/start/influxdb-init.md | 10 ++++-----
home/docs/start/iotdb-init.md | 22 +++++++++---------
home/docs/start/questdb-init.md | 6 ++---
home/docs/start/victoria-metrics-init.md | 8 +++----
.../current/start/greptime-init.md | 8 +++----
.../current/start/influxdb-init.md | 12 +++++-----
.../current/start/iotdb-init.md | 26 +++++++++++-----------
.../current/start/questdb-init.md | 22 +++++++++---------
.../current/start/victoria-metrics-init.md | 20 ++++++++---------
.../version-1.8.0/start/greptime-init.md | 8 +++----
.../version-1.8.0/start/influxdb-init.md | 12 +++++-----
.../version-1.8.0/start/iotdb-init.md | 26 +++++++++++-----------
.../version-1.8.0/start/questdb-init.md | 22 +++++++++---------
.../version-1.8.0/start/victoria-metrics-init.md | 20 ++++++++---------
.../version-1.8.0/start/greptime-init.md | 6 ++---
.../version-1.8.0/start/influxdb-init.md | 10 ++++-----
.../version-1.8.0/start/iotdb-init.md | 22 +++++++++---------
.../version-1.8.0/start/questdb-init.md | 6 ++---
.../version-1.8.0/start/victoria-metrics-init.md | 8 +++----
20 files changed, 140 insertions(+), 140 deletions(-)
diff --git a/home/docs/start/greptime-init.md b/home/docs/start/greptime-init.md
index 623acad297..16d7564a1a 100644
--- a/home/docs/start/greptime-init.md
+++ b/home/docs/start/greptime-init.md
@@ -1,5 +1,5 @@
---
-id: greptime-init
+id: greptime-init
title: Use Time Series Database Greptime to Store Metrics Data (Recommended)
sidebar_label: Metrics Store Greptime (Recommended)
---
@@ -51,7 +51,7 @@ use```$ docker ps``` to check if the database started
successfully
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
greptime:
enabled: true
@@ -62,7 +62,7 @@ use```$ docker ps``` to check if the database started
successfully
password: greptime
```
- The default database is `public`, if you specify another database name, you
need to create it in `greptimeDB` in advance.
+ The default database is `public`, if you specify another database name, you
need to create it in `greptimeDB` in advance.
eg: Create a database named `hertzbeat` with a validity period of 90 days
SQL: `CREATE DATABASE IF NOT EXISTS hertzbeat WITH(ttl='90d')`
2. Restart HertzBeat
diff --git a/home/docs/start/influxdb-init.md b/home/docs/start/influxdb-init.md
index 1efda927d3..279b85d604 100644
--- a/home/docs/start/influxdb-init.md
+++ b/home/docs/start/influxdb-init.md
@@ -1,6 +1,6 @@
---
-id: influxdb-init
-title: Use Time Series Database InfluxDB to Store Metrics Data (Optional)
+id: influxdb-init
+title: Use Time Series Database InfluxDB to Store Metrics Data (Optional)
sidebar_label: Metrics Store InfluxDB
---
@@ -8,7 +8,7 @@ Apache HertzBeat's historical data storage relies on the time
series database, y
> It is recommended to use VictoriaMetrics as metrics storage.
-**Note⚠️ Time series database is optional, but production environment
configuration is strongly recommended to provide more complete historical chart
functions and high performance**
+**Note⚠️ Time series database is optional, but production environment
configuration is strongly recommended to provide more complete historical chart
functions and high performance**
**⚠️ If you do not configure a time series database, only the last hour of
historical data is retained.**
Note⚠️ Need InfluxDB 1.x Version.
@@ -52,8 +52,8 @@ After the installation you can check if the Docker version
normally output at th
```yaml
warehouse:
store:
- # disable jpa
- jpa:
+ # disable DuckDB
+ duckdb:
enabled: false
# enable influxdb
influxdb:
diff --git a/home/docs/start/iotdb-init.md b/home/docs/start/iotdb-init.md
index 94e9d27598..0760306fdb 100644
--- a/home/docs/start/iotdb-init.md
+++ b/home/docs/start/iotdb-init.md
@@ -1,6 +1,6 @@
---
-id: iotdb-init
-title: Use Time Series Database IoTDB to Store Metrics Data (Optional)
+id: iotdb-init
+title: Use Time Series Database IoTDB to Store Metrics Data (Optional)
sidebar_label: Metrics Store IoTDB
---
@@ -33,7 +33,7 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
```shell
$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \
- -v /opt/iotdb/data:/iotdb/data \
+ -v /opt/iotdb/data:/iotdb/data \
--name iotdb \
apache/iotdb:1.2.2-standalone
```
@@ -45,13 +45,13 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
Modify `hertzbeat/config/application.yml` configuration file
Note⚠️The docker container way need to mount application.yml file locally,
while you can use installation package way to unzip and modify
`hertzbeat/config/application.yml`
- Config the `warehouse.store.jpa.enabled` `false`. Replace
`warehouse.store.iot-db` data source parameters, HOST account and password.
+ Config the `warehouse.store.duckdb.enabled` `false`. Replace
`warehouse.store.iot-db` data source parameters, HOST account and password.
```yml
warehouse:
store:
- # disable JPA
- jpa:
+ # disable DuckDB
+ duckdb:
enabled: false
# enable iot-db
iot-db:
@@ -72,8 +72,8 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
```yaml
warehouse:
store:
- # Disable default JPA
- jpa:
+ # Disable default DuckDB
+ duckdb:
enabled: false
# Enable IoTDB
iot-db:
@@ -117,7 +117,7 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
3. The TDengine database is installed and configured, but the page still
displays a pop-up [Unable to provide historical chart data, please configure
the dependent time series database]
- > Please check if the configuration parameters are correct
- > Is td-engine enable set to true
- > Note⚠️If both hertzbeat and TDengine are started under the same host for
docker containers, 127.0.0.1 cannot be used for communication between
containers by default, and the host IP is changed
+ > Please check if the configuration parameters are correct
+ > Is td-engine enable set to true
+ > Note⚠️If both hertzbeat and TDengine are started under the same host for
docker containers, 127.0.0.1 cannot be used for communication between
containers by default, and the host IP is changed
> You can check the startup logs according to the logs directory
diff --git a/home/docs/start/questdb-init.md b/home/docs/start/questdb-init.md
index a6bb98c394..2fee912fd3 100644
--- a/home/docs/start/questdb-init.md
+++ b/home/docs/start/questdb-init.md
@@ -102,13 +102,13 @@ questdb.exe start
⚠️ Note: For Docker container deployment, you need to mount the
application.yml file to the host machine. For the installation package
deployment, simply extract the package and modify the file at
hertzbeat/config/application.yml.
- **Set the** **warehouse.store.jpa.enabled** **parameter to** **false****,
configure the** **warehouse.store.questdb** **data source parameters (HOST,
username, password, etc.), and set** **enabled** **to** **true** **to enable
QuestDB.**
+ **Set the** **warehouse.store.duckdb.enabled** **parameter to** **false****,
configure the** **warehouse.store.questdb** **data source parameters (HOST,
username, password, etc.), and set** **enabled** **to** **true** **to enable
QuestDB.**
```yaml
warehouse:
store:
- # Disable the default JPA
- jpa:
+ # Disable the default DuckDB
+ duckdb:
enabled: false
# Enable QuestDB
questdb:
diff --git a/home/docs/start/victoria-metrics-init.md
b/home/docs/start/victoria-metrics-init.md
index 52f0505a14..eb0f3265a9 100644
--- a/home/docs/start/victoria-metrics-init.md
+++ b/home/docs/start/victoria-metrics-init.md
@@ -42,13 +42,13 @@ After the installation you can check if the Docker version
normally output at th
Modify `hertzbeat/config/application.yml` configuration file
Note⚠️The docker container way need to mount application.yml file locally,
while you can use installation package way to unzip and modify
`hertzbeat/config/application.yml`
- Config the `warehouse.store.jpa.enabled` `false`. Replace
`warehouse.store.victoria-metrics` data source parameters, HOST account and
password.
+ Config the `warehouse.store.duckdb.enabled` `false`. Replace
`warehouse.store.victoria-metrics` data source parameters, HOST account and
password.
```yaml
warehouse:
store:
- # disable JPA
- jpa:
+ # disable DuckDB
+ duckdb:
enabled: false
# enable victoria-metrics
victoria-metrics:
@@ -124,7 +124,7 @@ Edit the `hertzbeat/config/application.yml` configuration
file as follows:
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
victoria-metrics:
cluster:
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md
index 9012184f88..9e19b524d9 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md
@@ -1,5 +1,5 @@
---
-id: greptime-init
+id: greptime-init
title: 依赖时序数据库服务 Greptime 安装初始化 (推荐)
sidebar_label: 指标数据存储 Greptime (推荐)
---
@@ -46,12 +46,12 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
修改位于 `hertzbeat/config/application.yml` 的配置文件
[/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml)
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
greptime:
enabled: true
@@ -62,7 +62,7 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
password: greptime
```
- 默认数据库是内置的 `public` ,若制定其它数据库名称,需要在 `greptimeDB` 提前创建。
+ 默认数据库是内置的 `public` ,若制定其它数据库名称,需要在 `greptimeDB` 提前创建。
eg: 创建名称为 `hertzbeat` 数据有效期90天的数据库 SQL: `CREATE DATABASE IF NOT EXISTS
hertzbeat WITH(ttl='90d')`
2. 重启 HertzBeat
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md
index 98fc6c033b..91236ef76a 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md
@@ -1,6 +1,6 @@
---
-id: influxdb-init
-title: 依赖时序数据库服务InfluxDB安装初始化(可选)
+id: influxdb-init
+title: 依赖时序数据库服务InfluxDB安装初始化(可选)
sidebar_label: 指标数据存储InfluxDB
---
@@ -40,7 +40,7 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
influxdb:1.8
```
- `-v /opt/influxdb:/var/lib/influxdb`
为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录
+ `-v /opt/influxdb:/var/lib/influxdb`
为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录
使用```$ docker ps```查看数据库是否启动成功
### 在hertzbeat的`application.yml`配置文件配置此数据库连接
@@ -49,13 +49,13 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
influxdb:
enabled: true
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md
index ea23c86b06..e048b1b89e 100644
--- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md
+++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md
@@ -1,6 +1,6 @@
---
-id: iotdb-init
-title: 依赖时序数据库服务IoTDB安装初始化(可选)
+id: iotdb-init
+title: 依赖时序数据库服务IoTDB安装初始化(可选)
sidebar_label: 指标数据存储IoTDB
---
@@ -33,12 +33,12 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
```shell
$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \
- -v /opt/iotdb/data:/iotdb/data \
+ -v /opt/iotdb/data:/iotdb/data \
--name iotdb \
apache/iotdb:1.2.2-standalone
```
- `-v /opt/iotdb/data:/iotdb/data`
为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录
+ `-v /opt/iotdb/data:/iotdb/data`
为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录
使用```$ docker ps```查看数据库是否启动成功
3. 在hertzbeat的`application.yml`配置文件配置IoTDB数据库连接
@@ -47,13 +47,13 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用IotDB
iot-db:
@@ -68,14 +68,14 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
expire-time: '7776000000'
```
- **IoTDB集群版配置**
+ **IoTDB集群版配置**
如果您使用IoTDB为集群请参考下面配置
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用IotDB
iot-db:
@@ -119,7 +119,7 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
3. 安装配置了IotDB数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库]
- > 请检查配置参数是否正确
- > iot-db enable是否设置为true
- > 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP
+ > 请检查配置参数是否正确
+ > iot-db enable是否设置为true
+ > 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP
> 可根据logs目录下启动日志排查
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/questdb-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/questdb-init.md
index 6b5792ad2a..59214a5679 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/questdb-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/questdb-init.md
@@ -1,6 +1,6 @@
---
-id: questdb-init
-title: 依赖时序数据库服务QuestDB安装初始化(可选)
+id: questdb-init
+title: 依赖时序数据库服务QuestDB安装初始化(可选)
sidebar_label: 指标数据存储QuestDB
---
@@ -25,7 +25,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
```shell
# Linux/macOS(以v7.3.9为例,可替换为最新版本号)
wget
https://github.com/questdb/questdb/releases/download/7.3.9/questdb-7.3.9-no-jre-bin.tar.gz
-
+
# 解压
tar -zxvf questdb-7.3.9-no-jre-bin.tar.gz
mv questdb-7.3.9 /opt/questdb # 移动到常用目录
@@ -40,7 +40,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
# Linux/macOS:进入安装目录,启动服务
cd /opt/questdb/bin
./questdb start
-
+
# Windows(命令提示符):
cd C:\questdb\bin
questdb.exe start
@@ -55,7 +55,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
```shell
# Linux/macOS
vi /opt/questdb/conf/server.conf
-
+
# Windows
notepad C:\questdb\conf\server.conf
```
@@ -66,11 +66,11 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
# 启用认证(默认关闭)
http.security.enabled=true
pg.security.enabled=true # PostgreSQL协议认证
-
+
# 设置管理员账号密码(自定义)
http.security.admin.username=admin
http.security.admin.password=YourStrongPassword123!
-
+
# 可选:限制Web控制台访问IP(如只允许本地)
http.bind.to=127.0.0.1:9000
```
@@ -81,7 +81,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
# Linux/macOS
./questdb stop
./questdb start
-
+
# Windows
questdb.exe stop
questdb.exe start
@@ -93,13 +93,13 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置`warehouse.store.questdb`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置`warehouse.store.questdb`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用IotDB
questdb:
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md
index 79c40fc4cd..e49f286fd4 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md
@@ -1,6 +1,6 @@
---
-id: victoria-metrics-init
-title: 依赖时序数据库服务VictoriaMetrics安装初始化
+id: victoria-metrics-init
+title: 依赖时序数据库服务VictoriaMetrics安装初始化
sidebar_label: 指标数据存储VictoriaMetrics(推荐)
---
@@ -15,7 +15,7 @@ VictoriaMetrics,是一个快速高效、经济并且可扩展的监控解决
> 如果您已有VictoriaMetrics环境,可直接跳到YML配置那一步。
-## 通过Docker方式安装VictoriaMetrics
+## 通过Docker方式安装VictoriaMetrics
1. 下载安装Docker环境
Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。
@@ -35,22 +35,22 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
victoriametrics/victoria-metrics:v1.95.1
```
- `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data`
为VictoriaMetrics数据目录本地持久化挂载
+ `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data`
为VictoriaMetrics数据目录本地持久化挂载
使用```$ docker ps```查看数据库是否启动成功
3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接
- 配置HertzBeat的配置文件
- 修改位于 `hertzbeat/config/application.yml` 的配置文件
+ 配置HertzBeat的配置文件
+ 修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用 victoria-metrics
victoria-metrics:
@@ -126,7 +126,7 @@ docker ps
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
victoria-metrics:
cluster:
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/greptime-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/greptime-init.md
index 9012184f88..9e19b524d9 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/greptime-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/greptime-init.md
@@ -1,5 +1,5 @@
---
-id: greptime-init
+id: greptime-init
title: 依赖时序数据库服务 Greptime 安装初始化 (推荐)
sidebar_label: 指标数据存储 Greptime (推荐)
---
@@ -46,12 +46,12 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
修改位于 `hertzbeat/config/application.yml` 的配置文件
[/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml)
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
greptime:
enabled: true
@@ -62,7 +62,7 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
password: greptime
```
- 默认数据库是内置的 `public` ,若制定其它数据库名称,需要在 `greptimeDB` 提前创建。
+ 默认数据库是内置的 `public` ,若制定其它数据库名称,需要在 `greptimeDB` 提前创建。
eg: 创建名称为 `hertzbeat` 数据有效期90天的数据库 SQL: `CREATE DATABASE IF NOT EXISTS
hertzbeat WITH(ttl='90d')`
2. 重启 HertzBeat
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/influxdb-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/influxdb-init.md
index 98fc6c033b..91236ef76a 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/influxdb-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/influxdb-init.md
@@ -1,6 +1,6 @@
---
-id: influxdb-init
-title: 依赖时序数据库服务InfluxDB安装初始化(可选)
+id: influxdb-init
+title: 依赖时序数据库服务InfluxDB安装初始化(可选)
sidebar_label: 指标数据存储InfluxDB
---
@@ -40,7 +40,7 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
influxdb:1.8
```
- `-v /opt/influxdb:/var/lib/influxdb`
为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录
+ `-v /opt/influxdb:/var/lib/influxdb`
为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录
使用```$ docker ps```查看数据库是否启动成功
### 在hertzbeat的`application.yml`配置文件配置此数据库连接
@@ -49,13 +49,13 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
influxdb:
enabled: true
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/iotdb-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/iotdb-init.md
index ea23c86b06..e048b1b89e 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/iotdb-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/iotdb-init.md
@@ -1,6 +1,6 @@
---
-id: iotdb-init
-title: 依赖时序数据库服务IoTDB安装初始化(可选)
+id: iotdb-init
+title: 依赖时序数据库服务IoTDB安装初始化(可选)
sidebar_label: 指标数据存储IoTDB
---
@@ -33,12 +33,12 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
```shell
$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \
- -v /opt/iotdb/data:/iotdb/data \
+ -v /opt/iotdb/data:/iotdb/data \
--name iotdb \
apache/iotdb:1.2.2-standalone
```
- `-v /opt/iotdb/data:/iotdb/data`
为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录
+ `-v /opt/iotdb/data:/iotdb/data`
为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录
使用```$ docker ps```查看数据库是否启动成功
3. 在hertzbeat的`application.yml`配置文件配置IoTDB数据库连接
@@ -47,13 +47,13 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用IotDB
iot-db:
@@ -68,14 +68,14 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
expire-time: '7776000000'
```
- **IoTDB集群版配置**
+ **IoTDB集群版配置**
如果您使用IoTDB为集群请参考下面配置
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用IotDB
iot-db:
@@ -119,7 +119,7 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据
3. 安装配置了IotDB数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库]
- > 请检查配置参数是否正确
- > iot-db enable是否设置为true
- > 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP
+ > 请检查配置参数是否正确
+ > iot-db enable是否设置为true
+ > 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP
> 可根据logs目录下启动日志排查
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/questdb-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/questdb-init.md
index 6b5792ad2a..59214a5679 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/questdb-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/questdb-init.md
@@ -1,6 +1,6 @@
---
-id: questdb-init
-title: 依赖时序数据库服务QuestDB安装初始化(可选)
+id: questdb-init
+title: 依赖时序数据库服务QuestDB安装初始化(可选)
sidebar_label: 指标数据存储QuestDB
---
@@ -25,7 +25,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
```shell
# Linux/macOS(以v7.3.9为例,可替换为最新版本号)
wget
https://github.com/questdb/questdb/releases/download/7.3.9/questdb-7.3.9-no-jre-bin.tar.gz
-
+
# 解压
tar -zxvf questdb-7.3.9-no-jre-bin.tar.gz
mv questdb-7.3.9 /opt/questdb # 移动到常用目录
@@ -40,7 +40,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
# Linux/macOS:进入安装目录,启动服务
cd /opt/questdb/bin
./questdb start
-
+
# Windows(命令提示符):
cd C:\questdb\bin
questdb.exe start
@@ -55,7 +55,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
```shell
# Linux/macOS
vi /opt/questdb/conf/server.conf
-
+
# Windows
notepad C:\questdb\conf\server.conf
```
@@ -66,11 +66,11 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
# 启用认证(默认关闭)
http.security.enabled=true
pg.security.enabled=true # PostgreSQL协议认证
-
+
# 设置管理员账号密码(自定义)
http.security.admin.username=admin
http.security.admin.password=YourStrongPassword123!
-
+
# 可选:限制Web控制台访问IP(如只允许本地)
http.bind.to=127.0.0.1:9000
```
@@ -81,7 +81,7 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
# Linux/macOS
./questdb stop
./questdb start
-
+
# Windows
questdb.exe stop
questdb.exe start
@@ -93,13 +93,13 @@ QuestDB 是一款开源的时序数据库,因其高性能和低延迟等特点
修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置`warehouse.store.questdb`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置`warehouse.store.questdb`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用IotDB
questdb:
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/victoria-metrics-init.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/victoria-metrics-init.md
index 79c40fc4cd..e49f286fd4 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/victoria-metrics-init.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/start/victoria-metrics-init.md
@@ -1,6 +1,6 @@
---
-id: victoria-metrics-init
-title: 依赖时序数据库服务VictoriaMetrics安装初始化
+id: victoria-metrics-init
+title: 依赖时序数据库服务VictoriaMetrics安装初始化
sidebar_label: 指标数据存储VictoriaMetrics(推荐)
---
@@ -15,7 +15,7 @@ VictoriaMetrics,是一个快速高效、经济并且可扩展的监控解决
> 如果您已有VictoriaMetrics环境,可直接跳到YML配置那一步。
-## 通过Docker方式安装VictoriaMetrics
+## 通过Docker方式安装VictoriaMetrics
1. 下载安装Docker环境
Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。
@@ -35,22 +35,22 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
victoriametrics/victoria-metrics:v1.95.1
```
- `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data`
为VictoriaMetrics数据目录本地持久化挂载
+ `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data`
为VictoriaMetrics数据目录本地持久化挂载
使用```$ docker ps```查看数据库是否启动成功
3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接
- 配置HertzBeat的配置文件
- 修改位于 `hertzbeat/config/application.yml` 的配置文件
+ 配置HertzBeat的配置文件
+ 修改位于 `hertzbeat/config/application.yml` 的配置文件
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于
`hertzbeat/config/application.yml` 即可
- **修改里面的`warehouse.store.jpa.enabled`参数为`false`,
配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
+ **修改里面的`warehouse.store.duckdb.enabled`参数为`false`,
配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
```yaml
warehouse:
store:
- # 关闭默认JPA
- jpa:
+ # 关闭默认DuckDB
+ duckdb:
enabled: false
# 启用 victoria-metrics
victoria-metrics:
@@ -126,7 +126,7 @@ docker ps
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
victoria-metrics:
cluster:
diff --git a/home/versioned_docs/version-1.8.0/start/greptime-init.md
b/home/versioned_docs/version-1.8.0/start/greptime-init.md
index 623acad297..16d7564a1a 100644
--- a/home/versioned_docs/version-1.8.0/start/greptime-init.md
+++ b/home/versioned_docs/version-1.8.0/start/greptime-init.md
@@ -1,5 +1,5 @@
---
-id: greptime-init
+id: greptime-init
title: Use Time Series Database Greptime to Store Metrics Data (Recommended)
sidebar_label: Metrics Store Greptime (Recommended)
---
@@ -51,7 +51,7 @@ use```$ docker ps``` to check if the database started
successfully
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
greptime:
enabled: true
@@ -62,7 +62,7 @@ use```$ docker ps``` to check if the database started
successfully
password: greptime
```
- The default database is `public`, if you specify another database name, you
need to create it in `greptimeDB` in advance.
+ The default database is `public`, if you specify another database name, you
need to create it in `greptimeDB` in advance.
eg: Create a database named `hertzbeat` with a validity period of 90 days
SQL: `CREATE DATABASE IF NOT EXISTS hertzbeat WITH(ttl='90d')`
2. Restart HertzBeat
diff --git a/home/versioned_docs/version-1.8.0/start/influxdb-init.md
b/home/versioned_docs/version-1.8.0/start/influxdb-init.md
index 1efda927d3..279b85d604 100644
--- a/home/versioned_docs/version-1.8.0/start/influxdb-init.md
+++ b/home/versioned_docs/version-1.8.0/start/influxdb-init.md
@@ -1,6 +1,6 @@
---
-id: influxdb-init
-title: Use Time Series Database InfluxDB to Store Metrics Data (Optional)
+id: influxdb-init
+title: Use Time Series Database InfluxDB to Store Metrics Data (Optional)
sidebar_label: Metrics Store InfluxDB
---
@@ -8,7 +8,7 @@ Apache HertzBeat's historical data storage relies on the time
series database, y
> It is recommended to use VictoriaMetrics as metrics storage.
-**Note⚠️ Time series database is optional, but production environment
configuration is strongly recommended to provide more complete historical chart
functions and high performance**
+**Note⚠️ Time series database is optional, but production environment
configuration is strongly recommended to provide more complete historical chart
functions and high performance**
**⚠️ If you do not configure a time series database, only the last hour of
historical data is retained.**
Note⚠️ Need InfluxDB 1.x Version.
@@ -52,8 +52,8 @@ After the installation you can check if the Docker version
normally output at th
```yaml
warehouse:
store:
- # disable jpa
- jpa:
+ # disable DuckDB
+ duckdb:
enabled: false
# enable influxdb
influxdb:
diff --git a/home/versioned_docs/version-1.8.0/start/iotdb-init.md
b/home/versioned_docs/version-1.8.0/start/iotdb-init.md
index 94e9d27598..0760306fdb 100644
--- a/home/versioned_docs/version-1.8.0/start/iotdb-init.md
+++ b/home/versioned_docs/version-1.8.0/start/iotdb-init.md
@@ -1,6 +1,6 @@
---
-id: iotdb-init
-title: Use Time Series Database IoTDB to Store Metrics Data (Optional)
+id: iotdb-init
+title: Use Time Series Database IoTDB to Store Metrics Data (Optional)
sidebar_label: Metrics Store IoTDB
---
@@ -33,7 +33,7 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
```shell
$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \
- -v /opt/iotdb/data:/iotdb/data \
+ -v /opt/iotdb/data:/iotdb/data \
--name iotdb \
apache/iotdb:1.2.2-standalone
```
@@ -45,13 +45,13 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
Modify `hertzbeat/config/application.yml` configuration file
Note⚠️The docker container way need to mount application.yml file locally,
while you can use installation package way to unzip and modify
`hertzbeat/config/application.yml`
- Config the `warehouse.store.jpa.enabled` `false`. Replace
`warehouse.store.iot-db` data source parameters, HOST account and password.
+ Config the `warehouse.store.duckdb.enabled` `false`. Replace
`warehouse.store.iot-db` data source parameters, HOST account and password.
```yml
warehouse:
store:
- # disable JPA
- jpa:
+ # disable DuckDB
+ duckdb:
enabled: false
# enable iot-db
iot-db:
@@ -72,8 +72,8 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
```yaml
warehouse:
store:
- # Disable default JPA
- jpa:
+ # Disable default DuckDB
+ duckdb:
enabled: false
# Enable IoTDB
iot-db:
@@ -117,7 +117,7 @@ Apache IoTDB is a software system that integrates the
collection, storage, manag
3. The TDengine database is installed and configured, but the page still
displays a pop-up [Unable to provide historical chart data, please configure
the dependent time series database]
- > Please check if the configuration parameters are correct
- > Is td-engine enable set to true
- > Note⚠️If both hertzbeat and TDengine are started under the same host for
docker containers, 127.0.0.1 cannot be used for communication between
containers by default, and the host IP is changed
+ > Please check if the configuration parameters are correct
+ > Is td-engine enable set to true
+ > Note⚠️If both hertzbeat and TDengine are started under the same host for
docker containers, 127.0.0.1 cannot be used for communication between
containers by default, and the host IP is changed
> You can check the startup logs according to the logs directory
diff --git a/home/versioned_docs/version-1.8.0/start/questdb-init.md
b/home/versioned_docs/version-1.8.0/start/questdb-init.md
index a6bb98c394..2fee912fd3 100644
--- a/home/versioned_docs/version-1.8.0/start/questdb-init.md
+++ b/home/versioned_docs/version-1.8.0/start/questdb-init.md
@@ -102,13 +102,13 @@ questdb.exe start
⚠️ Note: For Docker container deployment, you need to mount the
application.yml file to the host machine. For the installation package
deployment, simply extract the package and modify the file at
hertzbeat/config/application.yml.
- **Set the** **warehouse.store.jpa.enabled** **parameter to** **false****,
configure the** **warehouse.store.questdb** **data source parameters (HOST,
username, password, etc.), and set** **enabled** **to** **true** **to enable
QuestDB.**
+ **Set the** **warehouse.store.duckdb.enabled** **parameter to** **false****,
configure the** **warehouse.store.questdb** **data source parameters (HOST,
username, password, etc.), and set** **enabled** **to** **true** **to enable
QuestDB.**
```yaml
warehouse:
store:
- # Disable the default JPA
- jpa:
+ # Disable the default DuckDB
+ duckdb:
enabled: false
# Enable QuestDB
questdb:
diff --git a/home/versioned_docs/version-1.8.0/start/victoria-metrics-init.md
b/home/versioned_docs/version-1.8.0/start/victoria-metrics-init.md
index 52f0505a14..eb0f3265a9 100644
--- a/home/versioned_docs/version-1.8.0/start/victoria-metrics-init.md
+++ b/home/versioned_docs/version-1.8.0/start/victoria-metrics-init.md
@@ -42,13 +42,13 @@ After the installation you can check if the Docker version
normally output at th
Modify `hertzbeat/config/application.yml` configuration file
Note⚠️The docker container way need to mount application.yml file locally,
while you can use installation package way to unzip and modify
`hertzbeat/config/application.yml`
- Config the `warehouse.store.jpa.enabled` `false`. Replace
`warehouse.store.victoria-metrics` data source parameters, HOST account and
password.
+ Config the `warehouse.store.duckdb.enabled` `false`. Replace
`warehouse.store.victoria-metrics` data source parameters, HOST account and
password.
```yaml
warehouse:
store:
- # disable JPA
- jpa:
+ # disable DuckDB
+ duckdb:
enabled: false
# enable victoria-metrics
victoria-metrics:
@@ -124,7 +124,7 @@ Edit the `hertzbeat/config/application.yml` configuration
file as follows:
```yaml
warehouse:
store:
- jpa:
+ duckdb:
enabled: false
victoria-metrics:
cluster:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]