From 2ab6d308efb4da4ee63b109001f2974b93c065c1 Mon Sep 17 00:00:00 2001 From: yuluo-yx Date: Thu, 18 Jul 2024 16:09:53 +0800 Subject: [PATCH] fix Signed-off-by: yuluo-yx --- README.md | 24 ++++++++++++++---------- README_CN.md | 24 ++++++++++++++---------- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 00042cf0d1d..ed8101907e4 100644 --- a/README.md +++ b/README.md @@ -109,21 +109,25 @@ ##### 1:Install quickly via docker -1. Just one command to get started: +1. Just one command to get started - ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```shell + docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat + ``` 2. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 3. Deploy collector clusters (Optional) - ``` - docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector - ``` - - `-e IDENTITY=custom-collector-name` : set the collector unique identity name. - - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. - - `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. - - `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : set the collector unique identity name. + - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. + - `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. + - `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. + Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache.org/docs/start/docker-deploy) @@ -167,7 +171,7 @@ Install the postgresql/mysql database, victoria-metrics/iotdb/tdengine database Detailed steps refer to [Install via Docker-Compose](script/docker-compose/README.md) -##### 5. Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm charts +##### 5: Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm charts Install HertzBeat cluster in a Kubernetes cluster by Helm chart. diff --git a/README_CN.md b/README_CN.md index ac629a2a599..64ee35e1d51 100644 --- a/README_CN.md +++ b/README_CN.md @@ -41,7 +41,7 @@ > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助用户快速搭建自有监控系统。 ----- +---- ![hertzbeat](home/static/img/home/1.png) @@ -49,7 +49,7 @@ ![hertzbeat](home/static/img/home/9.png) ----- +---- ## 🥐 模块 @@ -110,19 +110,23 @@ 1. `docker` 环境仅需一条命令即可开始 - ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```shell + docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat + ``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群(可选) - ``` - docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector - ``` - - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 - - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 - - `-e MANAGER_HOST=127.0.0.1` : 配置连接主 HertaBeat 服务的对外 IP。 - - `-e MANAGER_PORT=1158` : 配置连接主 HertzBeat 服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主 HertaBeat 服务的对外 IP。 + - `-e MANAGER_PORT=1158` : 配置连接主 HertzBeat 服务的对外端口,默认1158。 + 更多配置详细步骤参考 [通过 Docker 方式安装 HertzBeat](https://hertzbeat.apache.org/docs/start/docker-deploy)