docs: taosadapter supports get table vgid (#19084)
* docs: taosadapter supports get table vgid * fix: typos Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
This commit is contained in:
parent
892be91001
commit
3ccf2490d8
|
@ -21,6 +21,7 @@ taosAdapter provides the following features.
|
||||||
- Seamless connection to collectd
|
- Seamless connection to collectd
|
||||||
- Seamless connection to StatsD
|
- Seamless connection to StatsD
|
||||||
- Supports Prometheus remote_read and remote_write
|
- Supports Prometheus remote_read and remote_write
|
||||||
|
- Get table's VGroup ID
|
||||||
|
|
||||||
## taosAdapter architecture diagram
|
## taosAdapter architecture diagram
|
||||||
|
|
||||||
|
@ -178,6 +179,7 @@ See [example/config/taosadapter.toml](https://github.com/taosdata/taosadapter/bl
|
||||||
node_export is an exporter for machine metrics. Please visit [https://github.com/prometheus/node_exporter](https://github.com/prometheus/node_exporter) for more information.
|
node_export is an exporter for machine metrics. Please visit [https://github.com/prometheus/node_exporter](https://github.com/prometheus/node_exporter) for more information.
|
||||||
- Support for Prometheus remote_read and remote_write
|
- Support for Prometheus remote_read and remote_write
|
||||||
remote_read and remote_write are interfaces for Prometheus data read and write from/to other data storage solution. Please visit [https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis](https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis) for more information.
|
remote_read and remote_write are interfaces for Prometheus data read and write from/to other data storage solution. Please visit [https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis](https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis) for more information.
|
||||||
|
- Get table's VGroup ID. For more information about VGroup, please refer to [primary-logic-unit](/tdinternal/arch/#primary-logic-unit).
|
||||||
|
|
||||||
## Interfaces
|
## Interfaces
|
||||||
|
|
||||||
|
@ -199,7 +201,7 @@ Support InfluxDB query parameters as follows.
|
||||||
- `precision` The time precision used by TDengine
|
- `precision` The time precision used by TDengine
|
||||||
- `u` TDengine user name
|
- `u` TDengine user name
|
||||||
- `p` TDengine password
|
- `p` TDengine password
|
||||||
- `ttl` The time to live of automatically created sub-table. This value cannot be updated. TDengine will use the ttl value of the frist data of sub-table to create sub-table. For more information, please refer [Create Table](/taos-sql/table/#create-table)
|
- `ttl` The time to live of automatically created sub-table. This value cannot be updated. TDengine will use the ttl value of the first data of sub-table to create sub-table. For more information, please refer [Create Table](/taos-sql/table/#create-table)
|
||||||
|
|
||||||
Note: InfluxDB token authorization is not supported at present. Only Basic authorization and query parameter validation are supported.
|
Note: InfluxDB token authorization is not supported at present. Only Basic authorization and query parameter validation are supported.
|
||||||
Example: curl --request POST http://127.0.0.1:6041/influxdb/v1/write?db=test --user "root:taosdata" --data-binary "measurement,host=host1 field1=2i,field2=2.0 1577836800000000000"
|
Example: curl --request POST http://127.0.0.1:6041/influxdb/v1/write?db=test --user "root:taosdata" --data-binary "measurement,host=host1 field1=2i,field2=2.0 1577836800000000000"
|
||||||
|
@ -241,6 +243,10 @@ node_export is an exporter of hardware and OS metrics exposed by the \*NIX kerne
|
||||||
|
|
||||||
<Prometheus />
|
<Prometheus />
|
||||||
|
|
||||||
|
### Get table's VGroup ID
|
||||||
|
|
||||||
|
You can call `http://<fqdn>:6041/rest/vgid?db=<db>&table=<table>` to get table's VGroup ID. For more information about VGroup, please refer to [primary-logic-unit](/tdinternal/arch/#primary-logic-unit).
|
||||||
|
|
||||||
## Memory usage optimization methods
|
## Memory usage optimization methods
|
||||||
|
|
||||||
taosAdapter will monitor its memory usage during operation and adjust it with two thresholds. Valid values are integers between 1 to 100, and represent a percentage of the system's physical memory.
|
taosAdapter will monitor its memory usage during operation and adjust it with two thresholds. Valid values are integers between 1 to 100, and represent a percentage of the system's physical memory.
|
||||||
|
|
|
@ -21,6 +21,7 @@ taosAdapter 提供以下功能:
|
||||||
- 无缝连接到 collectd
|
- 无缝连接到 collectd
|
||||||
- 无缝连接到 StatsD
|
- 无缝连接到 StatsD
|
||||||
- 支持 Prometheus remote_read 和 remote_write
|
- 支持 Prometheus remote_read 和 remote_write
|
||||||
|
- 获取 table 所在的虚拟节点组(VGroup)的 VGroup ID
|
||||||
|
|
||||||
## taosAdapter 架构图
|
## taosAdapter 架构图
|
||||||
|
|
||||||
|
@ -178,6 +179,7 @@ AllowWebSockets
|
||||||
node_export 是一个机器指标的导出器。请访问 [https://github.com/prometheus/node_exporter](https://github.com/prometheus/node_exporter) 了解更多信息。
|
node_export 是一个机器指标的导出器。请访问 [https://github.com/prometheus/node_exporter](https://github.com/prometheus/node_exporter) 了解更多信息。
|
||||||
- 支持 Prometheus remote_read 和 remote_write
|
- 支持 Prometheus remote_read 和 remote_write
|
||||||
remote_read 和 remote_write 是 Prometheus 数据读写分离的集群方案。请访问[https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis](https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis) 了解更多信息。
|
remote_read 和 remote_write 是 Prometheus 数据读写分离的集群方案。请访问[https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis](https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/#remote-apis) 了解更多信息。
|
||||||
|
- 获取 table 所在的虚拟节点组(VGroup)的 VGroup ID。关于虚拟节点组(VGroup)的更多信息,请访问[整体架构文档](/tdinternal/arch/#主要逻辑单元) 。
|
||||||
|
|
||||||
## 接口
|
## 接口
|
||||||
|
|
||||||
|
@ -240,6 +242,10 @@ Prometheus 使用的由 \*NIX 内核暴露的硬件和操作系统指标的输
|
||||||
|
|
||||||
<Prometheus />
|
<Prometheus />
|
||||||
|
|
||||||
|
### 获取 table 的 VGroup ID
|
||||||
|
|
||||||
|
可以访问 http 接口 `http://<fqdn>:6041/rest/vgid?db=<db>&table=<table>` 获取 table 的 VGroup ID。关于虚拟节点组(VGroup)的更多信息,请访问[整体架构文档](/tdinternal/arch/#主要逻辑单元) 。
|
||||||
|
|
||||||
## 内存使用优化方法
|
## 内存使用优化方法
|
||||||
|
|
||||||
taosAdapter 将监测自身运行过程中内存使用率并通过两个阈值进行调节。有效值范围为 -1 到 100 的整数,单位为系统物理内存的百分比。
|
taosAdapter 将监测自身运行过程中内存使用率并通过两个阈值进行调节。有效值范围为 -1 到 100 的整数,单位为系统物理内存的百分比。
|
||||||
|
@ -282,7 +288,7 @@ http 返回内容:
|
||||||
|
|
||||||
## taosAdapter 监控指标
|
## taosAdapter 监控指标
|
||||||
|
|
||||||
taosAdapter 采集 http 相关指标、cpu 百分比和内存百分比。
|
taosAdapter 采集 http 相关指标、CPU 百分比和内存百分比。
|
||||||
|
|
||||||
### http 接口
|
### http 接口
|
||||||
|
|
||||||
|
@ -294,13 +300,13 @@ http://<fqdn>:6041/metrics
|
||||||
|
|
||||||
### 写入 TDengine
|
### 写入 TDengine
|
||||||
|
|
||||||
taosAdapter 支持将 http 监控、cpu 百分比和内存百分比写入 TDengine。
|
taosAdapter 支持将 http 监控、CPU 百分比和内存百分比写入 TDengine。
|
||||||
|
|
||||||
有关配置参数
|
有关配置参数
|
||||||
|
|
||||||
| **配置项** | **描述** | **默认值** |
|
| **配置项** | **描述** | **默认值** |
|
||||||
|-------------------------|--------------------------------------------|----------|
|
|-------------------------|--------------------------------------------|----------|
|
||||||
| monitor.collectDuration | cpu 和内存采集间隔 | 3s |
|
| monitor.collectDuration | CPU 和内存采集间隔 | 3s |
|
||||||
| monitor.identity | 当前taosadapter 的标识符如果不设置将使用 'hostname:port' | |
|
| monitor.identity | 当前taosadapter 的标识符如果不设置将使用 'hostname:port' | |
|
||||||
| monitor.incgroup | 是否是 cgroup 中运行(容器中运行设置为 true) | false |
|
| monitor.incgroup | 是否是 cgroup 中运行(容器中运行设置为 true) | false |
|
||||||
| monitor.writeToTD | 是否写入到 TDengine | false |
|
| monitor.writeToTD | 是否写入到 TDengine | false |
|
||||||
|
|
Loading…
Reference in New Issue