Application Naming Rules
UniAgent application naming refers to setting the Application name, which is the name displayed on the dashboard. There are two ways to set the Application name for the agent: by default, the process name is used as the Application name, or you can specify the Application name via configuration.
Note: If you do not use UniAgent but deploy the Agent directly, you need to configure
app_namein the configuration file. However, after deploying UniAgent, specifyingapp_namevia configuration is equivalent to configuringapp_namein the configuration file.
-
By default, the agent uses the process name as the Application name. For details, see Process Naming Rules.
-
Specify the Application name via configuration.
-
Java process: Set
-Dtingyun.app_namein the startup script. The value ofapp_namewill be used as the Application name.Tomcat
Add the following configuration to the
catalina.shfile under{TOMCAT_HOME}/bin:export CATALINA_OPTS="$CATALINA_OPTS -Dtingyun.app_name=YourAppName"Weblogic
Add the following configuration to the
startWebLogic.shfile under{WEBLOGIC_HOME}/bin:export JAVA_OPTIONS="$JAVA_OPTIONS -Dtingyun.app_name=YourAppName" -
.NET Core process: Set the environment variable
export TINGYUN_APP_NAME, whereTINGYUN_APP_NAMEis the Application name.[root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName -
Python process: Set the environment variable
export TINGYUN_APP_NAME, whereTINGYUN_APP_NAMEis the Application name.[root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName -
Node.js process: Set the environment variable
export TINGYUN_APP_NAME, whereTINGYUN_APP_NAMEis the Application name.[root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName -
Go process: Set the environment variable
export TINGYUN_APP_NAME, whereTINGYUN_APP_NAMEis the Application name.[root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName