Skip to content

Deploying on Hosts


Install DataKit Agent

Before conducting system and application link analysis, it is necessary to deploy the TrueWatch DataKit collector on each target host to collect the necessary link data.

Add the command DK_APM_INSTRUMENTATION_ENABLED=host before the installation command to enable APM automatic injection.

If DataKit is already installed, you only need to upgrade it. Use the following command to perform the upgrade operation.

DK_APM_INSTRUMENTATION_ENABLED=host DK_DEF_INPUTS="ddtrace" DK_UPGRADE=1 bash -c "$(curl -L https://static.truewatch.com/datakit/install.sh)"

Verification

Execute the following command for verification. If the value of instrumentation_enabled is empty, manually adjust it to host:

$ cat /usr/local/datakit/conf.d/datakit.conf | grep instru
instrumentation_enabled = "host"

Then restart DataKit:

datakit service -R

Restart Application

After the installation is complete, restart the application. The following is an example of restarting a Java application:

java -jar  springboot-server.jar