Skip to content

taosdata/taosadapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

taosAdapter

GitHub Actions Workflow Status codecov GitHub commit activity GitHub License GitHub Tag
Twitter Follow YouTube Channel Discord Community LinkedIn StackOverflow

English | 简体中文

Table of Contents

1. Introduction

taosAdapter is a companion tool for TDengine, serving as a bridge and adapter between the TDengine cluster and applications. It provides an easy and efficient way to ingest data directly from data collection agents (such as Telegraf, StatsD, collectd, etc.). It also offers InfluxDB/OpenTSDB compatible data ingestion interfaces, allowing InfluxDB/OpenTSDB applications to be seamlessly ported to TDengine. The connectors of TDengine in various languages communicate with TDengine through the WebSocket interface, hence the taosAdapter must be installed.

2. Documentation

  • To use taosAdapter, please refer to the taosAdapter Reference.
  • This quick guide is mainly for developers who like to contribute/build/test the taosAdapter by themselves. To learn about TDengine, you can visit the official documentation.

3. Prerequisites

  • Go 1.17 or above is installed and CGO is enabled export CGO_ENABLED=1.
  • TDengine has been deployed locally. For specific steps, please refer to Deploy TDengine. Please make sure taosd has been started.

4. Build

Execute go build in the project directory to build the project.

5. Testing

5.1 Test Execution

  1. Before running tests, ensure that the TDengine server is installed and the taosd is running. The database should be empty.
  2. In the project directory, run go test ./... to execute the tests. The tests will connect to the local TDengine server and taosAdapter for testing.
  3. The output result PASS means the test passed, while FAIL means the test failed. For detailed information, run go test -v ./....

5.2 Test Case Addition

Add test cases to the *_test.go file to ensure that the test cases cover the new code.

5.3 Performance Testing

Performance testing is in progress.

6. CI/CD

7. Submitting Issues

We welcome the submission of GitHub Issue. When submitting, please provide the following information:

  • Description of the issue and whether it is consistently reproducible.
  • taosAdapter version.
  • TDengine version.

8. Submitting PRs

We welcome developers to contribute to this project. When submitting PRs, please follow these steps:

  1. Fork this project. Please refer to how to fork a repo.
  2. Create a new branch from the main branch with a meaningful branch name (git checkout -b my_branch).
  3. Modify the code, ensure all unit tests pass, and add new unit tests to verify the changes.
  4. Push the changes to the remote branch (git push origin my_branch).
  5. Create a Pull Request on GitHub. Please refer to how to create a pull request.
  6. After submitting the PR, you can find your PR through the Pull Request. Click on the corresponding link to see if the CI for your PR has passed. If it has passed, it will display "All checks have passed". Regardless of whether the CI passes or not, you can click "Show all checks" -> "Details" to view the detailed test case logs.
  7. After submitting the PR, if the CI passes, you can find your PR on the codecov page to check the coverage.

9. References

10. License

MIT License