mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[doc] update deploy doc (#692)
[doc] update deploy doc [doc] update deploy doc
This commit is contained in:
@@ -98,9 +98,9 @@ Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.com/do
|
||||
##### 2:Install via package
|
||||
|
||||
1. Download the installation package [GITEE Release](https://gitee.com/dromara/hertzbeat/releases) [GITHUB Release](https://github.com/dromara/hertzbeat/releases)
|
||||
2. Need Jdk Environment, `jdk11`
|
||||
3. [optional]Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml`
|
||||
4. Run shell `$ ./startup.sh `
|
||||
2. Need `Java11` Environment
|
||||
3. Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml` (optional)
|
||||
4. Run shell `$ ./startup.sh ` or `startup.bat`
|
||||
5. Access `localhost:1157` to start, default account: `admin/hertzbeat`
|
||||
|
||||
Detailed config refer to [Install HertzBeat via Package](https://hertzbeat.com/docs/start/package-deploy)
|
||||
|
||||
+4
-4
@@ -96,9 +96,9 @@
|
||||
|
||||
##### 方式二:通过安装包安装
|
||||
1. 下载您系统环境对应的安装包 [GITEE Release](https://gitee.com/dromara/hertzbeat/releases) [GITHUB Release](https://github.com/dromara/hertzbeat/releases)
|
||||
2. 需要已安装java环境, `jdk11`
|
||||
3. [可选]配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml`
|
||||
4. 部署启动 `$ ./startup.sh `
|
||||
2. 需要已安装`java11`环境
|
||||
3. 配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml`(可选)
|
||||
4. 部署启动 `$ ./startup.sh ` 或 `startup.bat`
|
||||
5. 浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat`
|
||||
|
||||
更多配置详细步骤参考 [通过安装包安装HertzBeat](https://hertzbeat.com/docs/start/package-deploy)
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
##### 方式四:Docker-Compose 统一安装 hertzbeat+mysql+iotdb/tdengine
|
||||
|
||||
通过 [docker-compose部署脚本](script/docker-compose) 一次性把 mysql 数据库, iotdb/tdengine 时序数据库和 hertzbeat 安装部署。
|
||||
通过 [Docker-Compose 部署脚本](script/docker-compose) 一次性把 mysql 数据库, iotdb/tdengine 时序数据库和 hertzbeat 安装部署。
|
||||
|
||||
详细步骤参考 [通过Docker-Compose安装HertzBeat](script/docker-compose/README.md)
|
||||
|
||||
|
||||
@@ -36,6 +36,13 @@ slug: /
|
||||
|
||||
> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。
|
||||
|
||||
----
|
||||
|
||||
[](https://www.bilibili.com/video/BV1LY4y1m7rH/)
|
||||
|
||||
[](https://www.bilibili.com/video/BV1LY4y1m7rH/)
|
||||
|
||||
----
|
||||
|
||||
## 🥐 模块
|
||||
|
||||
@@ -52,3 +59,30 @@ slug: /
|
||||
|
||||

|
||||
|
||||
----
|
||||
|
||||

|
||||
|
||||
## ⛄ Supported
|
||||
|
||||
- [网站监控](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-website.yml), [端口可用性](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-port.yml),
|
||||
[Http Api](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-api.yml), [Ping连通性](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ping.yml),
|
||||
[Jvm](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap全站](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-fullsite.yml),
|
||||
[Ssl证书](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-springboot2.yml),
|
||||
[FTP服务器](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ftp.yml)
|
||||
- [Mysql](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-postgresql.yml),
|
||||
[MariaDB](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-redis.yml),
|
||||
[ElasticSearch](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-sqlserver.yml),
|
||||
[Oracle](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-mongodb.yml),
|
||||
[达梦](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-opengauss.yml),
|
||||
[ClickHouse](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-iotdb.yml)
|
||||
- [Linux](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ubuntu.yml),
|
||||
[CentOS](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-windows.yml)
|
||||
- [Tomcat](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-nacos.yml),
|
||||
[Zookeeper](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-rabbitmq.yml),
|
||||
[Flink](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-kafka.yml),
|
||||
[ShenYu](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-dynamic_tp.yml),
|
||||
[Jetty](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-activemq.yml)
|
||||
- [Kubernetes](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-docker.yml)
|
||||
- 和更多您的自定义监控。
|
||||
- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
---
|
||||
id: account-modify
|
||||
title: 配置修改账户密码(可选)
|
||||
sidebar_label: 配置修改账户密码(可选)
|
||||
---
|
||||
|
||||
HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat
|
||||
若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤
|
||||
修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射
|
||||
配置文件内容参考 项目仓库[/script/sureness.yml](https://github.com/dromara/hertzbeat/blob/master/script/sureness.yml)
|
||||
|
||||
```yaml
|
||||
|
||||
resourceRole:
|
||||
- /api/account/auth/refresh===post===[admin,user,guest]
|
||||
- /api/apps/**===get===[admin,user,guest]
|
||||
- /api/monitor/**===get===[admin,user,guest]
|
||||
- /api/monitor/**===post===[admin,user]
|
||||
- /api/monitor/**===put===[admin,user]
|
||||
- /api/monitor/**===delete==[admin]
|
||||
- /api/monitors/**===get===[admin,user,guest]
|
||||
- /api/monitors/**===post===[admin,user]
|
||||
- /api/monitors/**===put===[admin,user]
|
||||
- /api/monitors/**===delete===[admin]
|
||||
- /api/alert/**===get===[admin,user,guest]
|
||||
- /api/alert/**===post===[admin,user]
|
||||
- /api/alert/**===put===[admin,user]
|
||||
- /api/alert/**===delete===[admin]
|
||||
- /api/alerts/**===get===[admin,user,guest]
|
||||
- /api/alerts/**===post===[admin,user]
|
||||
- /api/alerts/**===put===[admin,user]
|
||||
- /api/alerts/**===delete===[admin]
|
||||
- /api/notice/**===get===[admin,user,guest]
|
||||
- /api/notice/**===post===[admin,user]
|
||||
- /api/notice/**===put===[admin,user]
|
||||
- /api/notice/**===delete===[admin]
|
||||
- /api/tag/**===get===[admin,user,guest]
|
||||
- /api/tag/**===post===[admin,user]
|
||||
- /api/tag/**===put===[admin,user]
|
||||
- /api/tag/**===delete===[admin]
|
||||
- /api/summary/**===get===[admin,user,guest]
|
||||
- /api/summary/**===post===[admin,user]
|
||||
- /api/summary/**===put===[admin,user]
|
||||
- /api/summary/**===delete===[admin]
|
||||
|
||||
# 需要被过滤保护的资源,不认证鉴权直接访问
|
||||
# /api/v1/source3===get 表示 /api/v1/source3===get 可以被任何人访问 无需登录认证鉴权
|
||||
excludedResource:
|
||||
- /api/account/auth/**===*
|
||||
- /api/i18n/**===get
|
||||
- /api/apps/hierarchy===get
|
||||
# web ui 前端静态资源
|
||||
- /===get
|
||||
- /dashboard/**===get
|
||||
- /monitors/**===get
|
||||
- /alert/**===get
|
||||
- /account/**===get
|
||||
- /setting/**===get
|
||||
- /passport/**===get
|
||||
- /**/*.html===get
|
||||
- /**/*.js===get
|
||||
- /**/*.css===get
|
||||
- /**/*.ico===get
|
||||
- /**/*.ttf===get
|
||||
- /**/*.png===get
|
||||
- /**/*.gif===get
|
||||
- /**/*.jpg===get
|
||||
- /**/*.svg===get
|
||||
- /**/*.json===get
|
||||
# swagger ui 资源
|
||||
- /swagger-resources/**===get
|
||||
- /v2/api-docs===get
|
||||
- /v3/api-docs===get
|
||||
|
||||
# 用户账户信息
|
||||
# 下面有 admin tom lili 三个账户
|
||||
# eg: admin 拥有[admin,user]角色,密码为hertzbeat
|
||||
# eg: tom 拥有[user],密码为hertzbeat
|
||||
# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
```
|
||||
|
||||
修改`sureness.yml`的如下**部分参数**:**[注意⚠️sureness配置的其它默认参数需保留]**
|
||||
|
||||
```yaml
|
||||
|
||||
# 用户账户信息
|
||||
# 下面有 admin tom lili 三个账户
|
||||
# eg: admin 拥有[admin,user]角色,密码为hertzbeat
|
||||
# eg: tom 拥有[user],密码为hertzbeat
|
||||
# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
```
|
||||
|
||||
|
||||
**重启 HertzBeat 浏览器访问 http://ip:1157/ 即可探索使用 HertzBeat**
|
||||
@@ -6,8 +6,6 @@ sidebar_label: Docker方式部署
|
||||
|
||||
> 推荐使用Docker部署HertzBeat
|
||||
|
||||
安装部署视频教程: [HertzBeat安装部署-BiliBili](https://www.bilibili.com/video/BV1GY41177YL)
|
||||
|
||||
1. 下载安装Docker环境
|
||||
Docker 工具自身的下载请参考以下资料:
|
||||
[Docker官网文档](https://docs.docker.com/get-docker/)
|
||||
@@ -42,148 +40,20 @@ sidebar_label: Docker方式部署
|
||||
$ exit
|
||||
```
|
||||
|
||||
4. 配置HertzBeat的配置文件(可选)
|
||||
4. 配置挂载的HertzBeat的配置文件(可选)
|
||||
在主机目录下创建application.yml,eg:/opt/application.yml
|
||||
配置文件内容参考 项目仓库[/script/application.yml](https://gitee.com/dromara/hertzbeat/raw/master/script/application.yml),替换里面的`warehouse`依赖服务参数,IP端口账户密码
|
||||
注意⚠️(若使用邮件告警,需替换里面的邮件服务器参数。若使用MYSQL数据源,需替换里面的datasource参数 参见[H2数据库切换为MYSQL](mysql-change))
|
||||
具体替换参数如下:
|
||||
```yaml
|
||||
warehouse:
|
||||
store:
|
||||
td-engine:
|
||||
enabled: false
|
||||
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
||||
url: jdbc:TAOS-RS://localhost:6041/hertzbeat
|
||||
username: root
|
||||
password: taosdata
|
||||
iot-db:
|
||||
enabled: false
|
||||
host: 127.0.0.1
|
||||
rpc-port: 6667
|
||||
username: root
|
||||
password: root
|
||||
# org.apache.iotdb.session.util.Version: V_O_12 || V_0_13
|
||||
version: V_0_13
|
||||
# if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0
|
||||
query-timeout-in-ms: -1
|
||||
# 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期)
|
||||
expire-time: '7776000000'
|
||||
|
||||
spring:
|
||||
mail:
|
||||
# 请注意此为邮件服务器地址:qq邮箱为 smtp.qq.com qq企业邮箱为 smtp.exmail.qq.com
|
||||
host: smtp.exmail.qq.com
|
||||
username: example@tancloud.cn
|
||||
# 请注意此非邮箱账户密码 此需填写邮箱授权码
|
||||
password: example
|
||||
port: 465
|
||||
```
|
||||
配置文件完整内容见项目仓库[/script/application.yml](https://gitee.com/dromara/hertzbeat/raw/master/script/application.yml) 您可以根据需求修改配置文件
|
||||
- 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数
|
||||
- **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change))
|
||||
- **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init)
|
||||
- **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init)
|
||||
|
||||
4. 配置用户配置文件(可选,自定义配置用户密码)
|
||||
5. 配置挂载的HertzBeat用户配置文件,自定义用户密码(可选)
|
||||
HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat
|
||||
若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤
|
||||
在主机目录下创建sureness.yml,eg:/opt/sureness.yml
|
||||
配置文件内容参考 项目仓库[/script/sureness.yml](https://gitee.com/dromara/hertzbeat/blob/master/script/sureness.yml)
|
||||
```yaml
|
||||
|
||||
resourceRole:
|
||||
- /api/account/auth/refresh===post===[admin,user,guest]
|
||||
- /api/apps/**===get===[admin,user,guest]
|
||||
- /api/monitor/**===get===[admin,user,guest]
|
||||
- /api/monitor/**===post===[admin,user]
|
||||
- /api/monitor/**===put===[admin,user]
|
||||
- /api/monitor/**===delete==[admin]
|
||||
- /api/monitors/**===get===[admin,user,guest]
|
||||
- /api/monitors/**===post===[admin,user]
|
||||
- /api/monitors/**===put===[admin,user]
|
||||
- /api/monitors/**===delete===[admin]
|
||||
- /api/alert/**===get===[admin,user,guest]
|
||||
- /api/alert/**===post===[admin,user]
|
||||
- /api/alert/**===put===[admin,user]
|
||||
- /api/alert/**===delete===[admin]
|
||||
- /api/alerts/**===get===[admin,user,guest]
|
||||
- /api/alerts/**===post===[admin,user]
|
||||
- /api/alerts/**===put===[admin,user]
|
||||
- /api/alerts/**===delete===[admin]
|
||||
- /api/notice/**===get===[admin,user,guest]
|
||||
- /api/notice/**===post===[admin,user]
|
||||
- /api/notice/**===put===[admin,user]
|
||||
- /api/notice/**===delete===[admin]
|
||||
- /api/tag/**===get===[admin,user,guest]
|
||||
- /api/tag/**===post===[admin,user]
|
||||
- /api/tag/**===put===[admin,user]
|
||||
- /api/tag/**===delete===[admin]
|
||||
- /api/summary/**===get===[admin,user,guest]
|
||||
- /api/summary/**===post===[admin,user]
|
||||
- /api/summary/**===put===[admin,user]
|
||||
- /api/summary/**===delete===[admin]
|
||||
|
||||
# 需要被过滤保护的资源,不认证鉴权直接访问
|
||||
# /api/v1/source3===get 表示 /api/v1/source3===get 可以被任何人访问 无需登录认证鉴权
|
||||
excludedResource:
|
||||
- /api/account/auth/**===*
|
||||
- /api/i18n/**===get
|
||||
- /api/apps/hierarchy===get
|
||||
# web ui 前端静态资源
|
||||
- /===get
|
||||
- /dashboard/**===get
|
||||
- /monitors/**===get
|
||||
- /alert/**===get
|
||||
- /account/**===get
|
||||
- /setting/**===get
|
||||
- /passport/**===get
|
||||
- /**/*.html===get
|
||||
- /**/*.js===get
|
||||
- /**/*.css===get
|
||||
- /**/*.ico===get
|
||||
- /**/*.ttf===get
|
||||
- /**/*.png===get
|
||||
- /**/*.gif===get
|
||||
- /**/*.jpg===get
|
||||
- /**/*.svg===get
|
||||
- /**/*.json===get
|
||||
# swagger ui 资源
|
||||
- /swagger-resources/**===get
|
||||
- /v2/api-docs===get
|
||||
- /v3/api-docs===get
|
||||
|
||||
# 用户账户信息
|
||||
# 下面有 admin tom lili 三个账户
|
||||
# eg: admin 拥有[admin,user]角色,密码为hertzbeat
|
||||
# eg: tom 拥有[user],密码为hertzbeat
|
||||
# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
```
|
||||
|
||||
修改sureness.yml的如下**部分参数**:**[注意⚠️sureness配置的其它默认参数需保留]**
|
||||
|
||||
```yaml
|
||||
|
||||
# 用户账户信息
|
||||
# 下面有 admin tom lili 三个账户
|
||||
# eg: admin 拥有[admin,user]角色,密码为hertzbeat
|
||||
# eg: tom 拥有[user],密码为hertzbeat
|
||||
# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
```
|
||||
配置文件完整内容见项目仓库[/script/sureness.yml](https://github.com/dromara/hertzbeat/blob/master/script/sureness.yml)
|
||||
具体修改步骤参考 [配置修改账户密码](account-modify)
|
||||
|
||||
6. 启动HertzBeat Docker容器
|
||||
|
||||
@@ -229,7 +99,7 @@ $ docker run -d -p 1157:1157 \
|
||||
- `tancloud/hertzbeat` : 使用拉取最新的的HertzBeat官方发布的应用镜像来启动容器,版本可查看[官方镜像仓库](https://hub.docker.com/r/tancloud/hertzbeat/tags)
|
||||
|
||||
7. 开始探索HertzBeat
|
||||
浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat。
|
||||
浏览器访问 http://ip:1157/ 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。
|
||||
|
||||
**HAVE FUN**
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
---
|
||||
id: iotdb-init
|
||||
title: 依赖时序数据库服务IoTDB安装初始化
|
||||
sidebar_label: 时序数据库IoTDB安装(可选)
|
||||
sidebar_label: 使用IoTDB存储指标数据(可选)
|
||||
---
|
||||
|
||||
HertzBeat的历史数据存储依赖时序数据库 IoTDB 或 TDengine,任选其一安装初始化即可,也可不安装(注意⚠️不安装则无历史图表数据)
|
||||
HertzBeat的历史数据存储依赖时序数据库 IoTDB 或 TDengine,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置)
|
||||
|
||||
Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据的软件系统,我们使用其存储分析采集到的监控指标历史数据。
|
||||
Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据的软件系统,我们使用其存储分析采集到的监控指标历史数据。支持V0.12 - V0.13版本,推荐使用V0.13.*版本。
|
||||
|
||||
注意⚠️ IoTDB为可选项,未配置则无历史图表数据,支持V0.12 - V0.13版本,推荐使用V0.13.*版本。
|
||||
**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能和高性能**
|
||||
|
||||
> 如果您已有IoTDB环境,可直接跳到YML配置那一步。
|
||||
|
||||
@@ -38,12 +38,17 @@ $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \
|
||||
|
||||
配置HertzBeat的配置文件
|
||||
修改位于 `hertzbeat/config/application.yml` 的配置文件
|
||||
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可
|
||||
替换里面的`warehouse.store.iot-db`数据源参数,HOST账户密码等
|
||||
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可
|
||||
|
||||
```
|
||||
**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`**
|
||||
|
||||
```yaml
|
||||
warehouse:
|
||||
store:
|
||||
# 关闭默认JPA
|
||||
jpa:
|
||||
enabled: false
|
||||
# 启用IotDB
|
||||
iot-db:
|
||||
enabled: true
|
||||
host: 127.0.0.1
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
---
|
||||
id: mysql-change
|
||||
title: 依赖的关系型数据库 H2 切换 为MYSQL
|
||||
sidebar_label: H2切换为MYSQL
|
||||
sidebar_label: 使用Mysql替换内置H2数据库(可选)
|
||||
---
|
||||
MYSQL是一款值得信赖的关系型数据库,HertzBeat除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。
|
||||
|
||||
注意⚠️ 使用外置Mysql数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能
|
||||
|
||||
> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。
|
||||
|
||||
### 通过Docker方式安装MYSQL
|
||||
@@ -38,10 +40,12 @@ MYSQL是一款值得信赖的关系型数据库,HertzBeat除了支持使用默
|
||||
### 修改hertzbeat的配置文件application.yml切换数据源
|
||||
|
||||
1. 配置HertzBeat的配置文件
|
||||
修改位于 `hertzbeat/config/application.yml` 的配置文件
|
||||
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可
|
||||
替换里面的`spring.database`数据源参数,IP端口账户密码驱动
|
||||
原参数:
|
||||
修改位于 `hertzbeat/config/application.yml` 的配置文件
|
||||
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可
|
||||
替换里面的`spring.database`数据源参数,IP端口账户密码驱动
|
||||
⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://gitee.com/dromara/hertzbeat/raw/master/script/application.yml)
|
||||
|
||||
需修改部分原参数:
|
||||
```yaml
|
||||
spring:
|
||||
datasource:
|
||||
@@ -50,7 +54,7 @@ spring:
|
||||
password: 123456
|
||||
url: jdbc:h2:./data/hertzbeat;MODE=MYSQL
|
||||
```
|
||||
具体替换参数如下,需根据mysql环境配置账户密码IP:
|
||||
具体替换参数如下,需根据mysql环境配置账户密码IP:
|
||||
```yaml
|
||||
spring:
|
||||
datasource:
|
||||
|
||||
@@ -3,12 +3,11 @@ id: package-deploy
|
||||
title: 通过安装包安装 HertzBeat
|
||||
sidebar_label: 安装包方式部署
|
||||
---
|
||||
> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。由于安装包自身不包含JAVA运行环境,需您提前准备JAVA运行环境。
|
||||
|
||||
安装部署视频教程: [HertzBeat安装部署-BiliBili](https://www.bilibili.com/video/BV1GY41177YL)
|
||||
> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。
|
||||
> 由于安装包自身不包含JAVA运行环境,需您提前准备JAVA运行环境。
|
||||
|
||||
1. 安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
|
||||
要求:JDK11环境
|
||||
要求:JAVA11环境
|
||||
下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/)
|
||||
安装后命令行检查是否成功安装
|
||||
```
|
||||
@@ -28,74 +27,24 @@ sidebar_label: 安装包方式部署
|
||||
```
|
||||
$ tar zxvf hertzbeat-[版本号].tar.gz
|
||||
```
|
||||
修改位于 `hertzbeat/config/application.yml` 的配置文件
|
||||
替换里面的`warehouse`服务参数,IP端口账户密码
|
||||
注意⚠️(若使用邮件告警,需替换里面的邮件服务器参数。若使用MYSQL数据源,需替换里面的datasource参数 参见[H2数据库切换为MYSQL](mysql-change))
|
||||
具体替换参数如下:
|
||||
```yaml
|
||||
warehouse:
|
||||
store:
|
||||
td-engine:
|
||||
enabled: false
|
||||
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
||||
url: jdbc:TAOS-RS://localhost:6041/hertzbeat
|
||||
username: root
|
||||
password: taosdata
|
||||
iot-db:
|
||||
enabled: false
|
||||
host: 127.0.0.1
|
||||
rpc-port: 6667
|
||||
username: root
|
||||
password: root
|
||||
# org.apache.iotdb.session.util.Version: V_O_12 || V_0_13
|
||||
version: V_0_13
|
||||
# if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0
|
||||
query-timeout-in-ms: -1
|
||||
# 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期)
|
||||
expire-time: '7776000000'
|
||||
|
||||
spring:
|
||||
mail:
|
||||
# 请注意此为邮件服务器地址:qq邮箱为 smtp.qq.com qq企业邮箱为 smtp.exmail.qq.com
|
||||
host: smtp.exmail.qq.com
|
||||
username: example@tancloud.cn
|
||||
# 请注意此非邮箱账户密码 此需填写邮箱授权码
|
||||
password: example
|
||||
port: 465
|
||||
```
|
||||
修改位于 `hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件
|
||||
- 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数
|
||||
- **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change))
|
||||
- **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init)
|
||||
- **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init)
|
||||
|
||||
4. 配置用户配置文件(可选,自定义配置用户密码)
|
||||
HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat
|
||||
若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤
|
||||
修改sureness.yml的如下**部分参数**:**[注意⚠️sureness配置的其它默认参数需保留]**
|
||||
|
||||
```yaml
|
||||
|
||||
# 用户账户信息
|
||||
# 下面有 admin tom lili 三个账户
|
||||
# eg: admin 拥有[admin,user]角色,密码为hertzbeat
|
||||
# eg: tom 拥有[user],密码为hertzbeat
|
||||
# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
|
||||
```
|
||||
若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤
|
||||
具体参考 [配置修改账户密码](account-modify)
|
||||
|
||||
5. 部署启动
|
||||
执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh
|
||||
执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat
|
||||
```
|
||||
$ ./startup.sh
|
||||
```
|
||||
6. 开始探索HertzBeat
|
||||
浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat。
|
||||
浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。
|
||||
|
||||
**HAVE FUN**
|
||||
|
||||
@@ -115,5 +64,5 @@ account:
|
||||
|
||||
3. **监控历史图表长时间都一直无数据**
|
||||
> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据
|
||||
> 二:Tdengine的数据库`hertzbeat`是否创建
|
||||
> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB或Tdengine IP账户密码等配置是否正确
|
||||
> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建
|
||||
> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB 或 Tdengine IP账户密码等配置是否正确
|
||||
|
||||
@@ -11,10 +11,21 @@ sidebar_label: 快速开始
|
||||
|
||||
### 🐵 依赖服务部署(可选)
|
||||
|
||||
> HertzBeat依赖于 关系型数据库 H2(已内置无需安装) 和 时序性数据库 [TDengine2+](tdengine-init) 或 [IOTDB](iotdb-init) (可选,未配置则无历史图表数据)
|
||||
> HertzBeat依赖于 **关系型数据库** H2(默认已内置无需安装) 或 [Mysql](mysql-change) 和 **时序性数据库** [TDengine2+](tdengine-init) 或 [IOTDB](iotdb-init) (可选)
|
||||
|
||||
**注意⚠️ 若需要部署时序数据库,IotDB 和 TDengine 任选其一即可!**
|
||||
|
||||
##### 安装Mysql(可选)
|
||||
|
||||
1. docker安装Mysql
|
||||
` $ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7`
|
||||
`-v /opt/data:/var/lib/mysql` - 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录
|
||||
2. 创建名称为hertzbeat的数据库
|
||||
`create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;`
|
||||
3. 在hertzbeat的配置文件`application.yml`配置Mysql数据库替换H2内置数据库连接参数
|
||||
|
||||
详细步骤参考 [使用Mysql替换内置H2数据库](mysql-change)
|
||||
|
||||
##### 安装TDengine(可选)
|
||||
|
||||
1. docker安装TDengine
|
||||
@@ -22,7 +33,7 @@ sidebar_label: 快速开始
|
||||
2. 创建名称为hertzbeat的数据库
|
||||
3. 在hertzbeat的配置文件`application.yml`配置tdengine连接
|
||||
|
||||
详细步骤参考 [依赖服务TDengine安装初始化](tdengine-init)
|
||||
详细步骤参考 [使用时序数据库TDengine存储指标数据(可选)](tdengine-init)
|
||||
|
||||
##### 安装IotDB(可选)
|
||||
|
||||
@@ -35,7 +46,7 @@ $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \
|
||||
apache/iotdb:0.13.3-node
|
||||
```
|
||||
|
||||
详细步骤参考 [依赖服务IotDB安装初始化](iotdb-init)
|
||||
详细步骤参考 [使用时序数据库IoTDB存储指标数据(可选)](iotdb-init)
|
||||
|
||||
### 🍞 HertzBeat安装
|
||||
> HertzBeat支持通过源码安装启动,Docker容器运行和安装包方式安装部署,CPU架构支持X86/ARM64。
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
---
|
||||
id: tdengine-init
|
||||
title: 依赖时序数据库服务TDengine安装初始化
|
||||
sidebar_label: 时序数据库TDengine安装(可选)
|
||||
sidebar_label: 使用TDengine存储指标数据(可选)
|
||||
---
|
||||
|
||||
HertzBeat的历史数据存储依赖时序数据库 TDengine 或 IoTDB,任选其一安装初始化即可,也可不安装(注意⚠️不安装则无历史图表数据)
|
||||
HertzBeat的历史数据存储依赖时序数据库 TDengine 或 IoTDB,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置)
|
||||
|
||||
TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意⚠️ 2.4.x版本。
|
||||
注意⚠️ TDengine为可选项,未配置则无历史图表数据。
|
||||
TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 2.4.x版本。
|
||||
|
||||
**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能和高性能**
|
||||
|
||||
> 如果您已有TDengine环境,可直接跳到创建数据库实例那一步。
|
||||
|
||||
@@ -89,17 +90,21 @@ $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \
|
||||
1. 配置HertzBeat的配置文件
|
||||
修改位于 `hertzbeat/config/application.yml` 的配置文件
|
||||
注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可
|
||||
替换里面的`warehouse.store.td-engine`数据源参数,URL账户密码
|
||||
|
||||
**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`**
|
||||
|
||||
```yaml
|
||||
warehouse:
|
||||
store:
|
||||
td-engine:
|
||||
enabled: true
|
||||
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
||||
url: jdbc:TAOS-RS://localhost:6041/hertzbeat
|
||||
username: root
|
||||
password: taosdata
|
||||
store:
|
||||
# 关闭默认JPA
|
||||
jpa:
|
||||
enabled: false
|
||||
td-engine:
|
||||
enabled: true
|
||||
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
||||
url: jdbc:TAOS-RS://localhost:6041/hertzbeat
|
||||
username: root
|
||||
password: taosdata
|
||||
```
|
||||
|
||||
### 常见问题
|
||||
|
||||
@@ -486,5 +486,8 @@
|
||||
},
|
||||
"We will grow better with your support.": {
|
||||
"message": "We will grow better with your support and is our greatest motivation."
|
||||
},
|
||||
"quickstart": {
|
||||
"message": "QuickStart"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,13 @@ slug: /
|
||||
|
||||
----
|
||||
|
||||
|
||||
[](https://www.bilibili.com/video/BV1LY4y1m7rH/)
|
||||
|
||||
[](https://www.bilibili.com/video/BV1LY4y1m7rH/)
|
||||
|
||||
----
|
||||
|
||||
## 🥐 Architecture
|
||||
|
||||
- **[manager](https://github.com/dromara/hertzbeat/tree/master/manager)** Provide monitoring management, system management basic services.
|
||||
@@ -53,3 +60,29 @@ slug: /
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## ⛄ Supported
|
||||
|
||||
- [Website](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-port.yml),
|
||||
[Http Api](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ping.yml),
|
||||
[Jvm](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-fullsite.yml),
|
||||
[Ssl Certificate](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-springboot2.yml),
|
||||
[FTP Server](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ftp.yml)
|
||||
- [Mysql](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-postgresql.yml),
|
||||
[MariaDB](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-redis.yml),
|
||||
[ElasticSearch](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-sqlserver.yml),
|
||||
[Oracle](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-mongodb.yml),
|
||||
[DM](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-opengauss.yml),
|
||||
[ClickHouse](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-iotdb.yml)
|
||||
- [Linux](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-ubuntu.yml),
|
||||
[CentOS](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-windows.yml)
|
||||
- [Tomcat](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-nacos.yml),
|
||||
[Zookeeper](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-rabbitmq.yml),
|
||||
[Flink](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-kafka.yml),
|
||||
[ShenYu](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-dynamic_tp.yml),
|
||||
[Jetty](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-activemq.yml)
|
||||
- [Kubernetes](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://github.com/dromara/hertzbeat/tree/master/manager/src/main/resources/define/app-docker.yml)
|
||||
- And More Your Custom Define.
|
||||
- Notified Support `Discord` `Slack` `Telegram` `Email` `DingDing` `WeChat` `FeiShu` `Webhook` `SMS`.
|
||||
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
---
|
||||
id: account-modify
|
||||
title: Modify Account Username Password
|
||||
sidebar_label: Update Account(Optional)
|
||||
---
|
||||
|
||||
HertzBeat default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat
|
||||
If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand.
|
||||
The configuration file content refer to project repository[/script/sureness.yml](https://gitee.com/dromara/hertzbeat/blob/master/script/sureness.yml)
|
||||
Modify the following **part parameters** in sureness.yml:**[Note⚠️Other default sureness configuration parameters should be retained]**
|
||||
|
||||
```yaml
|
||||
|
||||
resourceRole:
|
||||
- /api/account/auth/refresh===post===[admin,user,guest]
|
||||
- /api/apps/**===get===[admin,user,guest]
|
||||
- /api/monitor/**===get===[admin,user,guest]
|
||||
- /api/monitor/**===post===[admin,user]
|
||||
- /api/monitor/**===put===[admin,user]
|
||||
- /api/monitor/**===delete==[admin]
|
||||
- /api/monitors/**===get===[admin,user,guest]
|
||||
- /api/monitors/**===post===[admin,user]
|
||||
- /api/monitors/**===put===[admin,user]
|
||||
- /api/monitors/**===delete===[admin]
|
||||
- /api/alert/**===get===[admin,user,guest]
|
||||
- /api/alert/**===post===[admin,user]
|
||||
- /api/alert/**===put===[admin,user]
|
||||
- /api/alert/**===delete===[admin]
|
||||
- /api/alerts/**===get===[admin,user,guest]
|
||||
- /api/alerts/**===post===[admin,user]
|
||||
- /api/alerts/**===put===[admin,user]
|
||||
- /api/alerts/**===delete===[admin]
|
||||
- /api/notice/**===get===[admin,user,guest]
|
||||
- /api/notice/**===post===[admin,user]
|
||||
- /api/notice/**===put===[admin,user]
|
||||
- /api/notice/**===delete===[admin]
|
||||
- /api/tag/**===get===[admin,user,guest]
|
||||
- /api/tag/**===post===[admin,user]
|
||||
- /api/tag/**===put===[admin,user]
|
||||
- /api/tag/**===delete===[admin]
|
||||
- /api/summary/**===get===[admin,user,guest]
|
||||
- /api/summary/**===post===[admin,user]
|
||||
- /api/summary/**===put===[admin,user]
|
||||
- /api/summary/**===delete===[admin]
|
||||
|
||||
# Resources that need to be filtered and protected can be accessed directly without authentication
|
||||
# /api/v1/source3===get means /api/v1/source3===get it can be accessed by anyone. Don't need to authentication
|
||||
excludedResource:
|
||||
- /api/account/auth/**===*
|
||||
- /api/i18n/**===get
|
||||
- /api/apps/hierarchy===get
|
||||
# web ui the front-end static resource
|
||||
- /===get
|
||||
- /dashboard/**===get
|
||||
- /monitors/**===get
|
||||
- /alert/**===get
|
||||
- /account/**===get
|
||||
- /setting/**===get
|
||||
- /passport/**===get
|
||||
- /**/*.html===get
|
||||
- /**/*.js===get
|
||||
- /**/*.css===get
|
||||
- /**/*.ico===get
|
||||
- /**/*.ttf===get
|
||||
- /**/*.png===get
|
||||
- /**/*.gif===get
|
||||
- /**/*.jpg===get
|
||||
- /**/*.svg===get
|
||||
- /**/*.json===get
|
||||
# swagger ui resource
|
||||
- /swagger-resources/**===get
|
||||
- /v2/api-docs===get
|
||||
- /v3/api-docs===get
|
||||
|
||||
# user account information
|
||||
# Here is admin tom lili three accounts
|
||||
# eg: admin includes[admin,user]roles, password is hertzbeat
|
||||
# eg: tom includes[user], password is hertzbeat
|
||||
# eg: lili includes[guest],text password is lili, salt password is 1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
```
|
||||
|
||||
Modify the following **part parameters** in sureness.yml **[Note⚠️Other default sureness configuration parameters should be retained]**:
|
||||
|
||||
```yaml
|
||||
|
||||
# user account information
|
||||
# Here is admin tom lili three accounts
|
||||
# eg: admin includes[admin,user]roles, password is hertzbeat
|
||||
# eg: tom includes[user], password is hertzbeat
|
||||
# eg: lili includes[guest], text password is lili, salt password is 1A676730B0C7F54654B0E09184448289
|
||||
account:
|
||||
- appId: admin
|
||||
credential: hertzbeat
|
||||
role: [admin,user]
|
||||
- appId: tom
|
||||
credential: hertzbeat
|
||||
role: [user]
|
||||
- appId: guest
|
||||
credential: hertzbeat
|
||||
role: [guest]
|
||||
```
|
||||
|
||||
|
||||
**Restart HertzBeat, access http://ip:1157/ to explore**
|
||||
@@ -54,5 +54,9 @@
|
||||
"link.item.label.相关资源": {
|
||||
"message": "Resource",
|
||||
"description": "The label of footer link with label=相关资源 linking to docs/others/resource"
|
||||
},
|
||||
"copyright": {
|
||||
"message": "<a target=\"_blank\" href=\"https://beian.miit.gov.cn/\">蜀ICP备2022002218号</a> | Copyright © 2021-2023 TANCLOUD",
|
||||
"description": "The footer copyright"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"item.label.文档中心": {
|
||||
"message": "Document",
|
||||
"description": "Navbar item with label 文档"
|
||||
"description": "Navbar item with label 文档中心"
|
||||
},
|
||||
"item.label.博客": {
|
||||
"message": "Blog",
|
||||
|
||||
@@ -483,5 +483,8 @@
|
||||
},
|
||||
"We will grow better with your support.": {
|
||||
"message": "有您的支持 HertzBeat 社区会发展得更好,也是我们的最大动力。"
|
||||
},
|
||||
"quickstart": {
|
||||
"message": "快速开始"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,5 +54,9 @@
|
||||
"link.item.label.相关资源": {
|
||||
"message": "相关资源",
|
||||
"description": "The label of footer link with label=相关资源 linking to docs/others/resource"
|
||||
},
|
||||
"copyright": {
|
||||
"message": "<a target=\"_blank\" href=\"https://beian.miit.gov.cn/\">蜀ICP备2022002218号</a> | Copyright © 2021-2023 TANCLOUD",
|
||||
"description": "The footer copyright"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"item.label.文档中心": {
|
||||
"message": "文档中心",
|
||||
"description": "Navbar item with label 文档"
|
||||
"description": "Navbar item with label 文档中心"
|
||||
},
|
||||
"item.label.博客": {
|
||||
"message": "博客",
|
||||
|
||||
+5
-4
@@ -6,14 +6,15 @@
|
||||
"items": [
|
||||
"introduce",
|
||||
"start/quickstart",
|
||||
"start/iotdb-init",
|
||||
"start/tdengine-init",
|
||||
"start/docker-deploy",
|
||||
"start/package-deploy",
|
||||
"start/rainbond-deploy",
|
||||
"start/ssl-cert-practice",
|
||||
"start/iotdb-init",
|
||||
"start/tdengine-init",
|
||||
"start/mysql-change",
|
||||
"start/custom-config"
|
||||
"start/account-modify",
|
||||
"start/custom-config",
|
||||
"start/ssl-cert-practice"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
html[data-theme=dark] .button {
|
||||
--ifm-button-border-color: transparent;
|
||||
}
|
||||
|
||||
.button--secondary {
|
||||
background-color: var(--ifm-color-primary);
|
||||
color: #fff;
|
||||
font-family: 'IBM Plex Mono', serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
body .button.button--secondary {
|
||||
color: var(--ifm-color-white)!important;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,11 @@ html[data-theme=dark] {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.header-console-link:hover {
|
||||
color: var(--ifm-color-primary);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.header-github-link:hover {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
@@ -88,13 +88,13 @@ function Home() {
|
||||
</div>
|
||||
<div className={styles.buttons}>
|
||||
<Link
|
||||
to="https://console.tancloud.cn"
|
||||
to="/docs/"
|
||||
className={clsx(
|
||||
'button button--outline button--secondary button--lg',
|
||||
'button button--primary button--lg',
|
||||
styles.getStarted
|
||||
)}
|
||||
>
|
||||
<Translate>即刻登录免费使用</Translate>
|
||||
<Translate>quickstart</Translate>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user