tencent cloud

Feedback

Reporting over SkyWalking Protocol

Last updated: 2023-12-25 16:02:06
    This document describes how to report the data of a Java application over the SkyWalking protocol.

    Prerequisites

    Download SkyWalking 8.5.0 or later and place the extracted agent folder to a directory accessible to the Java process.
    Plugins are in the /plugins directory. Put a new plugin in this directory during the startup phase to enable it, or remove it from this directory to disable it. Log files are output to the /logs directory by default.

    Access Steps

    Step 1. Get the endpoint and token

    Log in to the APM console, enter the Application monitoring > Application list page, click Access application, and select the Java language and the SkyWalking data collection method. Then, get the endpoint and token in the step of access method selection.
    
    

    Step 2. Download Skywalking

    If you have already used SkyWalking, skip this step.
    Otherwise, download the latest version as instructed in Prerequisites.

    Step 3. Configure parameters and names

    Open the agent/config/agent.config file to configure the endpoint, token, and custom service name.
    collector.backend_service=<endpoint>
    agent.authentication=<Token>
    agent.service_name=<reporting service name>
    Note:
    After modifying agent.config, remove the # before configuration items; otherwise, the changed information will not take effect.

    Step 4. Specify the plugin path

    Select an appropriate method based on the runtime environment of your application to specify the path of the SkyWalking agent.
    Linux Tomcat 7/Tomcat 8 Add the following to the first line in tomcat/bin/catalina.sh:
    CATALINA_OPTS="$CATALINA_OPTS -javaagent:<skywalking-agent-path>"; export CATALINA_OPTS
    JAR file or Spring Boot Add the -javaagent parameter to the startup command line of the application with the following content:
    java -javaagent:<skywalking-agent-path> -jar yourApp.jar

    Step 5. Restart the application

    After completing the above deployment steps, restart the application as instructed in Install javaagent FAQs.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support