tools/keeper/README.md
English | 简体中文
<!-- omit in toc -->taosKeeper is a new monitoring indicator export tool introduced in TDengine 3.0, which is designed to facilitate users to monitor the operating status and performance indicators of TDengine in real time. With simple configuration, TDengine can report its own operating status and various indicators to taosKeeper. After receiving the monitoring data, taosKeeper will use the RESTful interface provided by taosAdapter to store the data in TDengine.
An important value of taosKeeper is that it can store the monitoring data of multiple or even a batch of TDengine clusters in a unified platform. In this way, the monitoring software can easily obtain this data, and then realize comprehensive monitoring and real-time analysis of the TDengine cluster. Through taosKeeper, users can more easily understand the operation status of TDengine, discover and solve potential problems in a timely manner, and ensure the stability and efficiency of the system.
Run the following command in the TDengine/tools/keeper directory to build the project:
go build
Run the test by executing the following command in the TDengine/tools/keeper directory:
sudo go test ./...
The test case will connect to the local TDengine server and taosAdapter for testing. After the test is completed, you will see a result summary similar to the following. If all test cases pass, there will be no FAIL in the output.
ok github.com/taosdata/taoskeeper/api 17.405s
ok github.com/taosdata/taoskeeper/cmd 1.819s
ok github.com/taosdata/taoskeeper/db 0.484s
ok github.com/taosdata/taoskeeper/infrastructure/config 0.417s
ok github.com/taosdata/taoskeeper/infrastructure/log 0.785s
ok github.com/taosdata/taoskeeper/monitor 4.623s
ok github.com/taosdata/taoskeeper/process 0.606s
ok github.com/taosdata/taoskeeper/system 3.420s
ok github.com/taosdata/taoskeeper/util 0.097s
ok github.com/taosdata/taoskeeper/util/pool 0.146s
Add test cases in files ending with _test.go and make sure the new code is covered by the corresponding test cases.
Performance testing is under development.
We welcome submissions of GitHub Issues. Please provide the following information when submitting so that the problem can be quickly located:
taoskeeper -V.taos -V.If you have other relevant information (such as environment configuration, operating system version, etc.), please add it so that we can understand the problem more comprehensively.
We welcome developers to participate in the development of this project. Please follow the steps below when submitting a PR:
main branch and use a meaningful branch name (for example: git checkout -b feature/my_feature). Do not modify it directly on the main branch.git push origin feature/my_feature).All checks have passed. Regardless of whether CI has passed or not, you can click Show all checks/Details to view detailed test case logs.