Install taosX-Agent
The features or components discussed in this document are available in TDengine TSDB-Enterprise only. TDengine TSDB-OSS does not include these features or components.
If TDengine TSDB cannot connect directly to your data source, you can install taosX-Agent on the network where your data source is located. You can install taosX-Agent on the machine where your data source is located or on a different machine on the same network that can access the data source. TDengine TSDB can then connect to your data source through taosX-Agent.
- It is not necessary to install TDengine TSDB on the same machine as the data source.
- If TDengine TSDB can connect directly to your data source, it is not necessary to install taosX-Agent.
Create Agent
- Windows
- Linux
-
In a web browser, access TDengine TSDB.
-
From the main menu on the left, select Data In.
-
Open the Agent tab and click Create New Agent.
-
Click Windows to download taosX-Agent.
-
On your local machine, run the taosX-Agent installer and follow the prompts.
-
In TDengine TSDB, click Next.
-
Enter a unique name for your agent and click Next to generate an authentication token.
-
On your local machine, open the
C:\TDengine\cfg\agent.tomlfile. -
Copy the values of
endpointandtokendisplayed in TDengine TSDB into theagent.tomlfile.endpoint="http://localhost:6055"
token="eyJ0eX...BhA" -
In TDengine TSDB, click Next.
-
On your local machine, open a terminal as an administrator and run the following command:
sc start taosx-agent -
In TDengine TSDB, click Check Agent Connection.
-
If Success is displayed, click Finish.
-
In a web browser, access TDengine TSDB.
-
From the main menu on the left, select Data In.
-
Open the Agent tab and click Create New Agent.
-
Click Linux to download taosX-Agent.
-
On your local machine, run the taosX-Agent installer and follow the prompts.
-
In TDengine TSDB, click Next.
-
Enter a unique name for your agent and click Next to generate an authentication token.
-
On your local machine, open the
/etc/taos/agent.tomlfile. -
Copy the values of
endpointandtokendisplayed in TDengine TSDB into theagent.tomlfile.endpoint="http://localhost:6055"
token="eyJ0eX...BhA" -
In TDengine TSDB, click Next.
-
On your local machine, open a terminal and run the following command:
sudo systemctl start taosx-agent -
In TDengine TSDB, click Check Agent Connection.
-
If Success is displayed, click Finish.
When you create data in tasks, you can use this agent to connect to your data source.
For full configuration options, see taosX-Agent.