Installation and Uninstallation
The C/C++ SDK consists of two modules:
- In-process Data Collection Module: Provided as a dynamic library, loaded at runtime, and supports instrumentation calls in application programs.
- Transaction Data Aggregation Process (Daemon Process): The aggregation process runs as a daemon and needs to be installed.
Prerequisites
Before deploying the SDK, ensure that the local browser time, server time zone, and time are consistent. If there are multiple servers, ensure that the local browser, all servers' time zones, and times are consistent. Otherwise, it may affect data accuracy, such as incorrect topology, etc.
First-time Installation
-
Download the installation package: tingyun-agent-csdk-release-3.x.x.bin.
-
Run the following command:
sudo bash tingyun-agent-csdk-release-3.x.x.binThe installation process will prompt you to enter the license key and collector address. Please enter them as required.
-
After installation, the service tingyun3-csdk-daemon will start automatically.
Update Installation
Run the command:
sudo bash tingyun-agent-csdk-release-3.x.x.bin update
The update installation will not modify existing configuration items and will not prompt for license information. After installation, the service tingyun3-csdk-daemon will restart automatically.
Modify Configuration
Run the command:
tingyun3-sdk-init license=<license key> collector=<collector address>
Note: After modifying the configuration, you need to restart the daemon process service: /etc/init.d/tingyun3-csdk-daemon restart.
Uninstallation
Run the following command:
tingyun3-sdk-init uninstall