Skip to main content

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_name in the configuration file. However, after deploying UniAgent, specifying app_name via configuration is equivalent to configuring app_name in 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_name in the startup script. The value of app_name will be used as the Application name.

    Tomcat

    Add the following configuration to the catalina.sh file under {TOMCAT_HOME}/bin:

    export CATALINA_OPTS="$CATALINA_OPTS -Dtingyun.app_name=YourAppName"

    Weblogic

    Add the following configuration to the startWebLogic.sh file under {WEBLOGIC_HOME}/bin:

    export JAVA_OPTIONS="$JAVA_OPTIONS -Dtingyun.app_name=YourAppName"
  • .NET Core process: Set the environment variable export TINGYUN_APP_NAME, where TINGYUN_APP_NAME is the Application name.

    [root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName
  • Python process: Set the environment variable export TINGYUN_APP_NAME, where TINGYUN_APP_NAME is the Application name.

    [root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName
  • Node.js process: Set the environment variable export TINGYUN_APP_NAME, where TINGYUN_APP_NAME is the Application name.

    [root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName
  • Go process: Set the environment variable export TINGYUN_APP_NAME, where TINGYUN_APP_NAME is the Application name.

    [root@k8s-master logs]# export TINGYUN_APP_NAME=YourAppName