Skip to content

Orienteer TWeb (TongWeb)

Installation Configuration

Download ddtrace

Download the ddtrace agent

Configure Agent

In the bin directory, adjust the external.vmoptions file, add the following variable information under server_options:

......
#server_options
......
-javaagent:/home/lr/agent/dd-java-agent-v1.10.2-guance.jar
-Ddd.tags=component:tongweb,env:dev
-Ddd.jmxfetch.enabled=true
-Ddd.jmxfetch.statsd.host=localhost
-Ddd.jmxfetch.statsd.port=8125
-Ddd.jmxfetch.tomcat.enabled=true
#debug
......

The version of dd-java-agent should be adjusted according to the actual situation. It is not recommended to add the variable -Ddd.service.name. If added, it will cause all projects to use the same serviceName.

Enable Statsd Collector in DataKit

The Statsd collector is used to collect Metrics-related information. Go to the datakit/conf.d/statsd directory and copy statsd.conf.sample as statsd.conf.

root:/usr/local/datakit/conf.d/statsd$ ll
total 16
drwxr-xr-x  2 root root 4096 Oct  9 08:32 ./
drwxr-xr-x 53 root root 4096 Oct  9 08:32 ../
-rwxr-xr-x  1 root root 2233 Jul 24 16:38 statsd.conf
-rwxr-xr-x  1 root root 2233 Oct  9 08:32 statsd.conf.sample

Refer to the Statsd collector integration documentation for more parameter adjustments.

Enable ddtrace Collector in DataKit

The ddtrace collector is used to collect ddtrace APM-related information. Go to the datakit/conf.d/ddtrace directory and copy ddtrace.conf.sample as ddtrace.conf.

root:/usr/local/datakit/conf.d/ddtrace$ ll
total 16
drwxr-xr-x  2 root root 4096 Oct  9 08:32 ./
drwxr-xr-x 53 root root 4096 Oct  9 08:32 ../
-rwxr-xr-x  1 root root 2470 Aug 16 10:42 ddtrace.conf
-rwxr-xr-x  1 root root 2474 Oct  9 08:32 ddtrace.conf.sample

Refer to the ddtrace collector integration documentation for more parameter adjustments.

Restart DataKit

Restart DataKit

Restart TongWeb

bin/startserver.sh restart

Metrics

Global Tags

Tag Description
component Component name: tongweb
env Environment: env

For JVM, refer to JVM Metrics