taosdata/taosadapter is a open-source project on GitHub, written primarily in Go. It has 63 stars. Taos Adapter for TDengine
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A REST/WebSocket gateway and protocol adapter service for TDengine.
Table of Contents
1. Introduction
2. Documentation
3. Prerequisites
3.1 System Requirements
3.2 Installing Build Tools
3.3 TDengine Client Library
4. Building
4.1 Build with Version Info
5. Testing
5.1 Test Execution
5.2 Test Case Addition
5.3 Performance Testing
6. Packaging
7. Configuration & Running
8. CI/CD
9. Submitting Issues
10. Submitting PRs
11. References
12. License
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.
It is written in Go and built with CGO enabled because it links against TDengine native client libraries.
Before building, testing, or running taosAdapter, install TDengine so that the required native libraries are available on the system.
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
3.1 System Requirements
Linux x86_64 or ARM64
TDengine server or client package installed (the client header for the build, libtaosnative.so for run time)
Go >= 1.23
3.2 Installing Build Tools
Go >= 1.23 is required.
Ubuntu/Debian:
# Install Go (if not already installed)
case "$(uname -m)" in
x86_64) go_arch=amd64 ;;
aarch64|arm64) go_arch=arm64 ;;
*) echo "unsupported arch: $(uname -m)" >&2; exit 1 ;;
esac
wget https://go.dev/dl/go1.23.4.linux-${go_arch}.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.23.4.linux-${go_arch}.tar.gz
export PATH=/usr/local/go/bin:$PATH
CentOS/RHEL:
Same Go installation steps as above.
3.3 TDengine Client Library
taosAdapter needs the TDengine client header (taos.h) to build and the native client
driver (libtaosnative.so, or libtaosnative.dylib / taosnative.dll) at run time.
The driver is not linked: taosAdapter loads it when it starts (see
driver/native/), so the adapter does not have to be rebuilt against the exact client
version that is installed, and running it does not drag the libtaos.so dispatcher
in. You must install a TDengine server or client package first.
Option A: Install from official release package (recommended)
Download from TDengine Releases:
# Example for server package:
tar xf TDengine-server-<version>-Linux-*.tar.gz
cd TDengine-server-<version>/
sudo ./install.sh -e no
Option B: Build TDengine from source
git clone https://github.com/taosdata/TDengine.git
cd TDengine
mkdir debug && cd debug
cmake .. -DBUILD_CONTRIB=ON
make -j$(nproc)
cd ..
packaging/pack_community_tar.sh -c debug -n <version>
cd release && tar xf TDengine-server-*.tar.gz
cd TDengine-server-*/ && sudo ./install.sh -e no
After installation, verify the library is accessible:
ls /usr/lib/libtaosnative.so # symlink should exist
ls /usr/local/taos/include/taos.h
The driver is looked up in this order (the same order the libtaos.so dispatcher uses),
and taosAdapter logs the file it loaded at startup as native client driver: <path>:
TDENGINE_DRIVER_PATH, when set -- use it to pin a client that is not installed
next to the taosAdapter binary
<taosAdapter>/../lib (build tree) and <taosAdapter>/../driver (package layout)
the LD_LIBRARY_PATH entries (DYLD_LIBRARY_PATH on macOS)
the system library path (ldconfig cache, /usr/lib, ...; plus /usr/local/lib on macOS)
If the driver cannot be loaded, taosAdapter reports it and exits:
git clone https://github.com/taosdata/taosadapter.git
cd taosadapter
go build -o taosadapter
The resulting binary is ./taosadapter.
Note: On Linux, CGO_ENABLED=1 is the default when building natively.
If cross-compiling or building in a restricted environment, set export CGO_ENABLED=1 explicitly.
Before running tests, ensure that the TDengine server is installed and the taosd is running.
The database should be empty.
Most tests require a usable native client driver. taosAdapter loads it at run time,
so if it is installed outside the searched paths, point at it explicitly:
export TDENGINE_DRIVER_PATH=/usr/local/taos/driver/libtaosnative.so (or export
LD_LIBRARY_PATH=/usr/local/taos/driver:$LD_LIBRARY_PATH).
In the project directory, run go test ./... to execute the tests. The tests will connect to the local TDengine
server and taosAdapter for testing.
For detailed output, run go test -v ./....
To run a specific package, for example:
go test -v ./controller/rest/
If your environment does not use systemd, start taosd with your platform's normal service command.
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. Packaging
pack_adapter_tar.sh creates a Linux-only taosAdapter tar.gz package with a two-layer layout:
Before packaging or installing taosAdapter, install the taos-community package first so that the client header is available to build against and the native client driver (libtaosnative.so) is available on the target system at run time.
6.1 Build the release binary
mkdir -p build/bin
CGO_ENABLED=1 go build -ldflags="-s -w" -o build/bin/taosadapter
6.2 Create the tar.gz package
From the source/taos-adapter/packaging/ directory:
bash ./pack_adapter_tar.sh -c ../build -n 3.3.6.0
Optional arguments:
-m <compat_version>: keep the community-compatible CLI argument (default 3.0.0.0)
-V stable|beta: choose the output package type (default stable)
tar xzf taosAdapter-3.3.6.0-Linux-<arch>.tar.gz
cd taosAdapter-3.3.6.0
sudo bash ./install_adapter.sh
The installer extracts the inner package.tar.gz, installs taosadapter to /usr/bin/, places the config in /etc/taos/, installs the systemd unit in /etc/systemd/system/, and preserves any existing config as taosadapter.toml.new.
If you need a non-interactive install, use:
sudo bash ./install_adapter.sh -s
7. Configuration & Running
A sample configuration file is provided at example/config/taosadapter.toml. Packaged deployments typically use /etc/taosadapter/taosadapter.toml.
# Run with default config
./taosadapter
# Run with custom config
./taosadapter -c /path/to/taosadapter.toml
# Run as systemd service (after installing TDengine package)
sudo systemctl start taosadapter
Default port: 6041 (REST API), 6042 (WebSocket)
For product usage and API details, see the taosAdapter reference documentation.
8. CI/CD
Build Workflow
Code Coverage
9. 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.
10. Submitting PRs
We welcome developers to contribute to this project. When submitting PRs, please follow these steps:
Fork this project. Please refer to how to fork a repo.
Create a new branch from the main branch with a meaningful branch name (git checkout -b my_branch).
Modify the code, ensure all unit tests pass, and add new unit tests to verify the changes.
Push the changes to the remote branch (git push origin my_branch).
Create a Pull Request on GitHub. Please refer to how to create a pull request.
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.
After submitting the PR, if the CI passes, you can find your PR on the codecov page to check the coverage.
No homepage URL was recorded for taosdata/taosadapter in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How many stars does taosdata/taosadapter have?
taosdata/taosadapter has 63 GitHub stars — refresh the page for the live number, or check github.com/taosdata/taosadapter. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is taosdata/taosadapter open source?
Yes — taosdata/taosadapter ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/taosdata/taosadapter.
What is taosdata/taosadapter?
taosdata/taosadapter (taosdata/taosadapter) is a Go project on GitHub. From the project's own README: Taos Adapter for TDengine
Where do I read more about taosdata/taosadapter?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/taosdata/taosadapter is the definitive source.
Read full README in the tab above.
Is taosadapter worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of taosadapter.