tencent cloud

Feedback

Custom Statistical Metrics

Last updated: 2024-12-16 17:23:50

    Summary of Features

    The custom metrics feature allows users to meet personalized business monitoring needs through flexible configuration. With this feature, users can precisely customize and track key traffic and performance metrics of websites or APIs, gaining deep business insights. EdgeOne pushes the user-defined metrics to the Tencent Cloud Observability Platform (TCOP) and enables users to build customized alert strategies based on these metrics (for example, monitoring traffic from specific countries or regions) to monitor business status in real-time, promptly detect and respond to potential issues, ensuring business continuity and stability.

    Use Restrictions

    Supported Metrics Range

    The basic metrics currently supported are as follows:
    L7 Access Traffic
    Total Traffic
    EdgeOne response traffic
    Client request traffic
    L7 access bandwidth
    Total bandwidth
    EdgeOne response bandwidth
    Client request bandwidth
    L7 access number of requests
    Note:
    1. The meanings of the basic metrics can be found in Metric Analysis.
    2. Supported filter conditions can be found in How to Use Filter Conditions.

    Data Reporting Latency Note

    In the EdgeOne service, data collection and processing is a complex process involving multiple stages. Specifically, EdgeOne collects log information in real-time from various nodes around the world. The system then processes this data based on specific filtering conditions set by users in the Custom Statistical Metrics feature. The processed data is pushed to the Tencent Cloud Observability Platform (TCOP) for further analysis and monitoring. Due to the multiple steps involved in data collection, processing, and transmission, there is a certain data processing delay. Currently, the delay from data collection to final display on the observability platform is approximately 10 minutes. This means that when an alert policy is triggered, the alert notification may be delivered 10-12 minutes after the actual triggering event.
    This delay is acceptable for most monitoring scenarios as it does not significantly impact users' ability to grasp traffic trends and respond to anomalies. However, for urgent situations requiring immediate response, users may need to consider this delay and adjust their alert policies accordingly to ensure timely action.

    Package Support Differences

    The Custom Statistical Metrics feature is only available in the Trial, Standard, and Enterprise editions. For the Trial edition, the quota limit is 10. For a complete comparison of package support differences, please refer to the Comparison of EdgeOne Plans.
    Function
    Individual Edition
    Basic or Platinum Edition
    Standard Edition
    Enterprise Edition
    Custom Statistical Metrics
    Not supported.
    100 per site
    100 per site

    Examples

    Example One: Monitoring Access Traffic in Specific Countries or Regions

    Scene Description

    In a globalized business environment, monitoring and configuring alarms for traffic in specific countries or regions is crucial for enterprises. This involves not only a quick response to market dynamics but also continuous assurance of service quality. By using the custom statistical metrics feature, users can achieve detailed monitoring of traffic in key regions and set up alarm mechanisms based on this data to take swift action in case of traffic anomalies.

    Operation Steps

    Step 1: Creating EdgeOne custom statistical metrics
    1. Access the TencentCloud EdgeOne console, locate the left-hand menu, and select the Site List. Within this listing, click on the site requiring configuration to enter its detailed page.
    2. On the site details page, click Alarm Service > Custom Statistical Metrics.
    3. On the custom statistical metrics page, click Create Custom Statistical Metric.
    4. In the pop-up window, enter the metric name, supporting Chinese characters, letters, numbers, and hyphens, 2 - 120 bytes.
    5. Select the base metric as "L7 Access Traffic - EdgeOne Response Traffic".
    6. Set the filter criteria, specifying the country/region, such as "Country/Region not equal to Chinese mainland". The data preview area will display the data for the past 7 days based on the base metric and filter criteria configured by the user.
    7. Click Add to save the configuration. The system will start collecting access data under the above conditions and begin pushing it to the Tencent Cloud Observability Platform.
    
    Step 2: Creating an alarm policy
    1. After creating a custom statistical metric, click Configuring Alarm Policy in the operation column of the custom statistical metrics list. The new page will redirect to Tencent Cloud Observability Platform - Alarm Management - Alarm Configuration - Creating a Policy, and automatically select the corresponding EO custom statistical metric as the alarm object.
    2. Enter the alarm policy name.
    3. Configure the alarm trigger conditions based on actual business needs.
    4. click Next: Configure alarm notifications.
    4.1 Confirm whether the preset notification template meets expectations. If a custom notification template is needed, refer to Creating Notification Template.
    4.2 After selecting the required notification template, click Complete to save the configuration.

    Example 2: Excluding the Impact of a Specific User-Agent on Monitoring Alarms

    Scene Description

    When monitoring website traffic, it is sometimes necessary to exclude certain User-Agent accesses, such as crawlers or testing tools, to avoid these accesses affecting normal business analysis and alarm triggers. By customizing statistical metrics, you can create monitoring metrics that exclude specific User-Agents and configure corresponding alarm policies.

    Operation Steps

    Step 1: Creating EdgeOne custom statistical metrics
    1. Access the TencentCloud EdgeOne console, locate the left-hand menu, and select the Site List. Within this listing, click on the site requiring configuration to enter its detailed page.
    2. On the site details page, click Alarm Service > Custom Statistical Metrics.
    3. On the custom statistical metrics page, click Create Custom Statistical Metric.
    4. In the pop-up window, enter the metric name, supporting Chinese characters, letters, numbers, and hyphens, 2 - 120 bytes.
    5. Select the base metric as "L7 access number of requests".
    6. Set the filter criteria, such as "User-Agent not equal to tget "and "status code equal to4xx". The data preview area will display the data for the past 7 days based on the base metric and filter criteria configured by the user.
    7. Click Add to save the configuration. The system will start collecting access data under the above conditions and begin pushing it to the Tencent Cloud Observability Platform.
    
    Step 2: Creating an alarm policy
    1. After creating custom statistical metrics, in the custom statistical metrics list operation column, click Configuring Alarm Policy. The new page will redirect to Tencent Cloud Observability Platform > Alarm Management > Alarm Configuration > Creating a policy, and automatically select the corresponding EO custom statistical metrics as the alarm object.
    2. Enter the alarm policy name.
    3. Configure the alarm trigger conditions based on actual business needs.
    4. click Next: Configure alarm notifications.
    4.1 Confirm whether the preset notification template meets expectations. If a custom notification template is needed, refer to Creating Notification Template.
    4.2 After selecting the required notification template, click Complete to save the configuration.
    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