简体   繁体   English

"使用 collectd + TDengine + Grafana 部署监控系统"

[英]Deploy monitoring system using collectd + TDengine + Grafana

Trying to construct a monitoring system.尝试构建监控系统。 After using collectd to generate monitoring metrics into files with the following format, my next step will be importing data into TDengine and using Grafana as front end dash board to show collected metrics.在使用 collectd 将监控指标生成以下格式的文件后,我的下一步是将数据导入 TDengine 并使用 Grafana 作为前端仪表板来显示收集的指标。 What will be the best practice for converting such data format into TDengine compatible data format and import data into the database?将此类数据格式转换为与 TDengine 兼容的数据格式并将数据导入数据库的最佳实践是什么?

[root@nas01]# head cpu-load-2021-10-15
epoch,min,max,avg
1470731947.726,0.000000,0.002500,0.012500
1470731957.724,0.000000,0.002500,0.012500
1470731967.724,0.000000,0.002500,0.012500
1470731977.724,0.000000,0.002500,0.012500
1470731987.724,0.000000,0.002500,0.012500

You can use collectd to write data into TDengine via taosAdapter.您可以使用 collectd 通过 taosAdapter 将数据写入 TDengine。

Use "direct collection" way:使用“直接收集”方式:

Modify the collectd configuration /etc/collectd/collectd.conf.修改collectd配置/etc/collectd/collectd.conf。 taosAdapter uses 6045 for collectd direct collection data write by default. taosAdapter默认使用6045进行collectd直接采集数据写入。

LoadPlugin network
<Plugin network>
         Server "127.0.0.1" "6045"
</Plugin>

Or use "tsdb writer" way:或者使用“tsdb writer”方式:

Modify the collectd configuration /etc/collectd/collectd.conf.修改collectd配置/etc/collectd/collectd.conf。 taosAdapter uses 6047 for collectd tsdb write by default. taosAdapter 默认使用 6047 进行 collectd tsdb 写入。

LoadPlugin write_tsdb
<Plugin write_tsdb>
        <Node>
                Host "localhost"
                Port "6047"
                HostTags "status=production"
                StoreRates false
                AlwaysAppendDS false
        </Node>
</Plugin>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM