Java agent for WSO2 server
For supported agent versions and framework, see APM agents.
Downloading the Agent version 1.18.4 (latest)
- Download the agent tar file from the following link.
curl --header "PRIVATE-TOKEN:{{TOKEN}}" --output sixthsense-agent.zip "https://artifacts-observability.sixthsense.rakuten.com/api/v4/projects/4/packages/generic/sixthsense/v1.18.4-latest/agent.zip"
- Copy the tar to the WSO2_HOME and untar.
Configuring the agent
- Delete the plugin apm-httpasyncclient-4.x-plugin-8.5.0.jar file from AGENT_HOME/plugins/apm-httpasyncclient-4.x-plugin-8.5.0.jar.
AGENT_HOME="$WSO2_HOME/agent"
rm -rf $AGENT_HOME/plugins/apm-httpasyncclient-4.x-plugin-8.5.0.jar
- Update the following parameters in the agent.config file in the agent.
agent.service_name= APPLICATION_NAME
agent.force_tls= true
collector.backend_service = URL
agent.authentication = TOKEN_FROM_UI
For OneCloud Platform use the following command:
agent.service_name= APPLICATION_NAME
agent.force_tls=${SW_AGENT_FORCE_TLS:false}
# For connectivity to backend using intra public network:
collector.backend_service = 133.237.176.44:80
# For connectivity to backend using onecloud private network:
collector.backend_service = 100.99.116.221:80
agent.authentication = TOKEN_FROM_UI
Enabling proxy
note
The agent uses internet to communicate with backend address. If direct internet access is not enabled, pass a proxy through which it can communicate to the SixthSense backend address.
Enable proxy using any of the following two methods:
- Set proxy at system/container level.
Example:
a. Windows Servers: add environment variable in system level variables for HTTP_PROXY, GRPC_PROXY_EXP
b. Linux Servers:
Add proxy in the ~/.bashrc file as follows:
export HTTP_PROXY= 10.0.0.1:3128 && export GRPC_PROXY_EXP=10.0.0.1:3128
- Pass Proxy to JVM by adding proxy in Java options.
JAVA_OPTS= -Dhttp.proxyHost=ip_address -Dhttp.proxyPort=3128 -Dhttps.proxyHost=ip_address -Dhttps.proxyPort=3128
Configuration on WSO2-EI ESB Server
Add the following entries in the bin/integrator.sh file of WSO2-EI ESB server.
JAVA_OPTS="$JAVA_OPTS -javaagent:$WSO2_HOME/agent/sixthsense-agent.jar"