Install Connection Agent
You can install the connection agent as the following.
Prerequisites
- Ensure that your local machine is located on the same network as your data source machines, such as PI Data Archive and PI AF Server (optional).
- Ensure that your local machine is running Linux or Windows.
Create Agent
- Windows
- Linux
- In TDengine Cloud, open Data In.
- On the Data Sources tab, click Create New Agent in the Connection Agents section.
- Click Windows to download the connection agent.
- On your local machine, run the connection agent installer and follow the prompts.
- In TDengine Cloud, 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.toml
file. - Copy the values of
endpoint
andtoken
displayed in TDengine Cloud into theagent.toml
file. - In TDengine Cloud, click Next and click Finish.
- In TDengine Cloud, open Data In.
- On the Data Sources tab, click Create New Agent in the Connection Agents section.
- Click Linux to download the connection agent.
- On your local machine, decompress the installation package and run the
install.sh
file. - In TDengine Cloud, 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.toml
file. - Copy the values of
endpoint
andtoken
displayed in TDengine Cloud into theagent.toml
file. - In TDengine Cloud, click Next and click Finish.
Start Agent
- Windows
- Linux
Run the sc start taosx-agent
command to start the connection agent as a service on your local machine.
Run the systemctl start taosx-agent
command to start the connection agent as a service on your local machine.
Go to the specified data source steps to create it.