tencent cloud

Feedback

Configuring Java Application Data Collection with SkyWalking

Last updated: 2023-12-25 15:58:14
    This document describes how to configure Java application data collection with SkyWalking.

    Overview

    When the number of access requests is high, reporting all trace data may greatly increase APM fees. In this case, data sampling is often used.
    Note:
    In sampling, certain data is sampled from all the collected trace data for analysis, which reduces the span volume and trace storage fees.

    Prerequisites

    Directions

    1. Open the agent/config/agent.config file and find the agent.sample_n_per_3_secs=${SW_AGENT_SAMPLE:-1} configuration item.
    
    
    2. Modify the sample rate. agent.sample_n_per_3_secs indicates the volume of trace data (TraceSegment) that can be collected every three seconds. If it is negative or 0, all traces are collected, which is the default option.
    Example:
    To collect 1,500 TraceSegments in three seconds, set as follows:
    agent.sample_n_per_3_secs=${SW_AGENT_SAMPLE:1500}
    
    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