docs: shell format

This commit is contained in:
huolibo 2022-08-16 18:50:59 +08:00
parent b42f2d9502
commit 3851c16f9b
1 changed files with 6 additions and 8 deletions

View File

@ -41,7 +41,7 @@ taosKeeper
执行以下命令即可快速体验 taosKeeper。当不指定 taosKeeper 配置文件时,优先使用 `/etc/taos/keeper.toml` 配置,否则将使用默认配置。 执行以下命令即可快速体验 taosKeeper。当不指定 taosKeeper 配置文件时,优先使用 `/etc/taos/keeper.toml` 配置,否则将使用默认配置。
```shell ```shell
$ taoskeeper -c <keeper config file> taoskeeper -c <keeper config file>
``` ```
**下面是配置文件的示例:** **下面是配置文件的示例:**
@ -92,12 +92,10 @@ taosKeeper 作为 TDengine 监控指标的导出工具,可以将 TDengine 产
#### 查看监控结果集 #### 查看监控结果集
```shell ```shell
$ taos; $ taos
#
// 如上示例,使用 log 库作为监控日志存储位置 > use log;
$ use log; > select * from cluster_info limit 1;
$ select * from cluster_info limit 1;
``` ```
结果示例: 结果示例:
@ -112,7 +110,7 @@ Query OK, 1 rows in database (0.036162s)
#### 导出监控指标 #### 导出监控指标
```shell ```shell
$ curl http://127.0.0.1:6043/metrics curl http://127.0.0.1:6043/metrics
``` ```
部分结果集: 部分结果集: