docs: update taosAdapter doc
This commit is contained in:
parent
c70fcdc884
commit
e62f0d12f3
|
@ -27,46 +27,46 @@ collectd uses a plugin mechanism that can write the collected monitoring data to
|
||||||
|
|
||||||
1. **Configuring to receive direct collection plugin data**
|
1. **Configuring to receive direct collection plugin data**
|
||||||
|
|
||||||
Modify the related configuration items in the collectd configuration file (default location /etc/collectd/collectd.conf).
|
Modify the related configuration items in the collectd configuration file (default location /etc/collectd/collectd.conf).
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin network
|
LoadPlugin network
|
||||||
<Plugin network>
|
<Plugin network>
|
||||||
Server "<taosAdapter's host>" "<port for collectd direct>"
|
Server "<taosAdapter's host>" "<port for collectd direct>"
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
Where \<taosAdapter's host> should be filled with the domain name or IP address of the server running taosAdapter. \<port for collectd direct> should be filled with the port used by taosAdapter to receive collectd data (default is 6045).
|
Where \<taosAdapter's host> should be filled with the domain name or IP address of the server running taosAdapter. \<port for collectd direct> should be filled with the port used by taosAdapter to receive collectd data (default is 6045).
|
||||||
|
|
||||||
Example as follows:
|
Example as follows:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin network
|
LoadPlugin network
|
||||||
<Plugin network>
|
<Plugin network>
|
||||||
Server "127.0.0.1" "6045"
|
Server "127.0.0.1" "6045"
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Configuring write_tsdb plugin data**
|
2. **Configuring write_tsdb plugin data**
|
||||||
|
|
||||||
Modify the related configuration items in the collectd configuration file (default location /etc/collectd/collectd.conf).
|
Modify the related configuration items in the collectd configuration file (default location /etc/collectd/collectd.conf).
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin write_tsdb
|
LoadPlugin write_tsdb
|
||||||
<Plugin write_tsdb>
|
<Plugin write_tsdb>
|
||||||
<Node>
|
<Node>
|
||||||
Host "<taosAdapter's host>"
|
Host "<taosAdapter's host>"
|
||||||
Port "<port for collectd write_tsdb plugin>"
|
Port "<port for collectd write_tsdb plugin>"
|
||||||
...
|
...
|
||||||
</Node>
|
</Node>
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
Where \<taosAdapter's host> should be filled with the domain name or IP address of the server running taosAdapter. \<port for collectd write_tsdb plugin> should be filled with the port used by taosAdapter to receive collectd write_tsdb plugin data (default is 6047).
|
Where \<taosAdapter's host> should be filled with the domain name or IP address of the server running taosAdapter. \<port for collectd write_tsdb plugin> should be filled with the port used by taosAdapter to receive collectd write_tsdb plugin data (default is 6047).
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin write_tsdb
|
LoadPlugin write_tsdb
|
||||||
<Plugin write_tsdb>
|
<Plugin write_tsdb>
|
||||||
<Node>
|
<Node>
|
||||||
Host "127.0.0.1"
|
Host "127.0.0.1"
|
||||||
Port "6047"
|
Port "6047"
|
||||||
|
@ -74,11 +74,11 @@ LoadPlugin write_tsdb
|
||||||
StoreRates false
|
StoreRates false
|
||||||
AlwaysAppendDS false
|
AlwaysAppendDS false
|
||||||
</Node>
|
</Node>
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
Then restart collectd:
|
Then restart collectd:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
systemctl restart collectd
|
systemctl restart collectd
|
||||||
```
|
```
|
||||||
|
|
|
@ -26,18 +26,18 @@ Method to configure taosAdapter to receive icinga2 data:
|
||||||
- Enable icinga2's opentsdb-writer (reference link https://icinga.com/docs/icinga-2/latest/doc/14-features/#opentsdb-writer)
|
- Enable icinga2's opentsdb-writer (reference link https://icinga.com/docs/icinga-2/latest/doc/14-features/#opentsdb-writer)
|
||||||
- Modify the configuration file `/etc/icinga2/features-enabled/opentsdb.conf` filling in \<taosAdapter's host> with the domain name or IP address of the server running taosAdapter, \<port for icinga2> with the corresponding port supported by taosAdapter for receiving icinga2 data (default is 6048)
|
- Modify the configuration file `/etc/icinga2/features-enabled/opentsdb.conf` filling in \<taosAdapter's host> with the domain name or IP address of the server running taosAdapter, \<port for icinga2> with the corresponding port supported by taosAdapter for receiving icinga2 data (default is 6048)
|
||||||
|
|
||||||
```c
|
```c
|
||||||
object OpenTsdbWriter "opentsdb" {
|
object OpenTsdbWriter "opentsdb" {
|
||||||
host = "<taosAdapter's host>"
|
host = "<taosAdapter's host>"
|
||||||
port = <port for icinga2>
|
port = <port for icinga2>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Example file:
|
Example file:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
object OpenTsdbWriter "opentsdb" {
|
object OpenTsdbWriter "opentsdb" {
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
port = 6048
|
port = 6048
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -27,46 +27,46 @@ collectd 使用插件机制可以以多种形式将采集到的监控数据写
|
||||||
|
|
||||||
1. **配置直接采集插件**
|
1. **配置直接采集插件**
|
||||||
|
|
||||||
修改 collectd 配置文件(默认位置 /etc/collectd/collectd.conf)相关配置项。
|
修改 collectd 配置文件(默认位置 /etc/collectd/collectd.conf)相关配置项。
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin network
|
LoadPlugin network
|
||||||
<Plugin network>
|
<Plugin network>
|
||||||
Server "<taosAdapter's host>" "<port for collectd direct>"
|
Server "<taosAdapter's host>" "<port for collectd direct>"
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
其中 \<taosAdapter's host> 填写运行 taosAdapter 的服务器域名或 IP 地址。\<port for collectd direct> 填写 taosAdapter 用于接收 collectd 数据的端口(默认为 6045)。
|
其中 \<taosAdapter's host> 填写运行 taosAdapter 的服务器域名或 IP 地址。\<port for collectd direct> 填写 taosAdapter 用于接收 collectd 数据的端口(默认为 6045)。
|
||||||
|
|
||||||
示例如下:
|
示例如下:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin network
|
LoadPlugin network
|
||||||
<Plugin network>
|
<Plugin network>
|
||||||
Server "127.0.0.1" "6045"
|
Server "127.0.0.1" "6045"
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **配置 write_tsdb 插件**
|
2. **配置 write_tsdb 插件**
|
||||||
|
|
||||||
修改 collectd 配置文件(默认位置 /etc/collectd/collectd.conf)相关配置项。
|
修改 collectd 配置文件(默认位置 /etc/collectd/collectd.conf)相关配置项。
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin write_tsdb
|
LoadPlugin write_tsdb
|
||||||
<Plugin write_tsdb>
|
<Plugin write_tsdb>
|
||||||
<Node>
|
<Node>
|
||||||
Host "<taosAdapter's host>"
|
Host "<taosAdapter's host>"
|
||||||
Port "<port for collectd write_tsdb plugin>"
|
Port "<port for collectd write_tsdb plugin>"
|
||||||
...
|
...
|
||||||
</Node>
|
</Node>
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
其中 \<taosAdapter's host> 填写运行 taosAdapter 的服务器域名或 IP 地址。\<port for collectd write_tsdb plugin> 填写 taosAdapter 用于接收 collectd write_tsdb 插件的数据(默认为 6047)。
|
其中 \<taosAdapter's host> 填写运行 taosAdapter 的服务器域名或 IP 地址。\<port for collectd write_tsdb plugin> 填写 taosAdapter 用于接收 collectd write_tsdb 插件的数据(默认为 6047)。
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
LoadPlugin write_tsdb
|
LoadPlugin write_tsdb
|
||||||
<Plugin write_tsdb>
|
<Plugin write_tsdb>
|
||||||
<Node>
|
<Node>
|
||||||
Host "127.0.0.1"
|
Host "127.0.0.1"
|
||||||
Port "6047"
|
Port "6047"
|
||||||
|
@ -74,12 +74,12 @@ LoadPlugin write_tsdb
|
||||||
StoreRates false
|
StoreRates false
|
||||||
AlwaysAppendDS false
|
AlwaysAppendDS false
|
||||||
</Node>
|
</Node>
|
||||||
</Plugin>
|
</Plugin>
|
||||||
```
|
```
|
||||||
|
|
||||||
然后重启 collectd:
|
然后重启 collectd:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
systemctl restart collectd
|
systemctl restart collectd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -26,19 +26,19 @@
|
||||||
- 使能 icinga2 的 opentsdb-writer(参考链接 https://icinga.com/docs/icinga-2/latest/doc/14-features/#opentsdb-writer)
|
- 使能 icinga2 的 opentsdb-writer(参考链接 https://icinga.com/docs/icinga-2/latest/doc/14-features/#opentsdb-writer)
|
||||||
- 修改配置文件 `/etc/icinga2/features-enabled/opentsdb.conf` 填写 \<taosAdapter's host> 为运行 taosAdapter 的服务器的域名或 IP 地址,\<port for icinga2> 填写 taosAdapter 支持接收 icinga2 数据的相应端口(默认为 6048)
|
- 修改配置文件 `/etc/icinga2/features-enabled/opentsdb.conf` 填写 \<taosAdapter's host> 为运行 taosAdapter 的服务器的域名或 IP 地址,\<port for icinga2> 填写 taosAdapter 支持接收 icinga2 数据的相应端口(默认为 6048)
|
||||||
|
|
||||||
```c
|
```c
|
||||||
object OpenTsdbWriter "opentsdb" {
|
object OpenTsdbWriter "opentsdb" {
|
||||||
host = "<taosAdapter's host>"
|
host = "<taosAdapter's host>"
|
||||||
port = <port for icinga2>
|
port = <port for icinga2>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
示例文件:
|
示例文件:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
object OpenTsdbWriter "opentsdb" {
|
object OpenTsdbWriter "opentsdb" {
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
port = 6048
|
port = 6048
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue