mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af5e4b0049 |
@@ -1,20 +1,20 @@
|
||||
---
|
||||
id: greptime-init
|
||||
title: Use Time Series Database GreptimeDB to Store Metrics Data (Optional)
|
||||
sidebar_label: Metrics Store GreptimeDB
|
||||
title: Use Time Series Database Greptime to Store Metrics Data (Recommended)
|
||||
sidebar_label: Metrics Store Greptime (Recommended)
|
||||
---
|
||||
|
||||
Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment)
|
||||
|
||||
> It is recommended to use VictoriaMetrics as metrics storage.
|
||||
> It is recommended to use Greptime as metrics storage.
|
||||
|
||||
[GreptimeDB](https://github.com/GreptimeTeam/greptimedb) is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency.
|
||||
[Greptime](https://github.com/GreptimeTeam/greptimedb) is an Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting SQL/PromQL/Streaming.
|
||||
|
||||
It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage.
|
||||
|
||||
**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.**
|
||||
|
||||
### Install GreptimeDB via Docker
|
||||
### Install GreptimeDvia Docker
|
||||
|
||||
1. Download and install Docker environment
|
||||
Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/).
|
||||
@@ -25,7 +25,7 @@ After the installation you can check if the Docker version normally output at th
|
||||
Docker version 20.10.12, build e91ed57
|
||||
```
|
||||
|
||||
2. Install GreptimeDB with Docker
|
||||
2. Install Greptime with Docker
|
||||
|
||||
```shell
|
||||
$ docker run -d -p 127.0.0.1:4000-4003:4000-4003 \
|
||||
@@ -38,7 +38,7 @@ After the installation you can check if the Docker version normally output at th
|
||||
--postgres-addr 0.0.0.0:4003
|
||||
```
|
||||
|
||||
`-v "$(pwd)/greptimedb:/tmp/greptimedb"` is local persistent mount of greptimedb data directory. `$(pwd)/greptimedb` should be replaced with the actual local directory, default is the `greptimedb` directory under the current directory.
|
||||
`-v "$(pwd)/greptimedb:/tmp/greptimedb"` is local persistent mount of greptime data directory. `$(pwd)/greptimedb` should be replaced with the actual local directory, default is the `greptimedb` directory under the current directory.
|
||||
use```$ docker ps``` to check if the database started successfully
|
||||
|
||||
### Configure the database connection in hertzbeat `application.yml` configuration file
|
||||
@@ -69,6 +69,6 @@ use```$ docker ps``` to check if the database started successfully
|
||||
|
||||
### FAQ
|
||||
|
||||
1. Do both the time series databases Greptime, IoTDB or TDengine need to be configured? Can they both be used?
|
||||
1. Do both the time series databases need to be configured? Can they both be used?
|
||||
|
||||
> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data.
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
---
|
||||
id: greptime-init
|
||||
title: 依赖时序数据库服务 GreptimeDB 安装初始化(可选)
|
||||
sidebar_label: 指标数据存储 GreptimeDB
|
||||
title: 依赖时序数据库服务 Greptime 安装初始化 (推荐)
|
||||
sidebar_label: 指标数据存储 Greptime (推荐)
|
||||
---
|
||||
|
||||
Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置)
|
||||
|
||||
> 我们推荐使用并长期支持 VictoriaMetrics 作为存储。
|
||||
> 我们推荐使用并长期支持 Greptime 作为存储。
|
||||
|
||||
[GreptimeDB](https://github.com/GreptimeTeam/greptimedb) is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency.
|
||||
It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage.
|
||||
[Greptime](https://github.com/GreptimeTeam/greptimedb) 是一个开源的云原生统一可观测性数据库,用于度量、日志和追踪,支持SQL/PromQL/流式处理。
|
||||
|
||||
**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据**
|
||||
|
||||
### 通过Docker方式安装GreptimeDB
|
||||
### 通过Docker方式安装Greptime
|
||||
|
||||
1. 下载安装Docker环境
|
||||
Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。
|
||||
@@ -24,7 +23,7 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
|
||||
Docker version 20.10.12, build e91ed57
|
||||
```
|
||||
|
||||
2. Docker安装GreptimeDB
|
||||
2. Docker安装Greptime
|
||||
|
||||
```shell
|
||||
$ docker run -d -p 127.0.0.1:4000-4003:4000-4003 \
|
||||
@@ -70,6 +69,6 @@ Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.c
|
||||
|
||||
### 常见问题
|
||||
|
||||
1. 时序数据库 GreptimeDB 或者 IoTDB 或者 TDengine 是否都需要配置,能不能都用
|
||||
1. 时序数据库是否都需要配置,能不能都用
|
||||
|
||||
> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
"type": "category",
|
||||
"label": "change-db",
|
||||
"items": [
|
||||
"start/greptime-init",
|
||||
"start/victoria-metrics-init",
|
||||
"start/iotdb-init",
|
||||
"start/influxdb-init",
|
||||
|
||||
Reference in New Issue
Block a user