tencent cloud

피드백

Setting Interval-Valued Comparison and Periodically-Valued Comparison as Alarm Trigger Conditions

마지막 업데이트 시간:2024-01-20 17:28:40

    Overview

    Setting an alarm trigger condition usually involves interval-valued comparison of metrics due to business characteristics. For example, you can set to trigger an alarm when API response time is over 50% longer than that in the same time period yesterday.

    Configuration method

    When configuring an alarm policy, enter the following query statements and trigger conditions:
    Query statements:
    * | select
    round(compare[3], 4) as ratio,
    compare[1] as current_avg_request_time,
    compare[2] as yesterday_avg_request_time
    from
    (
    select compare(avg_request_time, 86400) as compare
    from
    (
    select avg("request_time") as avg_request_time
    )
    )
    In the execution result of the above statements:
    ratio indicates the ratio of the current average API response time to the value yesterday (86,400 seconds earlier).
    current_avg_request_time indicates the current average API response time.
    yesterday_avg_request_time indicates the average API response time in the same period yesterday.
    The compare function is used in the above statement. For more information, see Interval-Valued Comparison and Periodicity-Valued Comparison Functions.
    Trigger conditions:
    $1.ratio > 1.5
    An alarm will be triggered if ratio exceeds 1.5, that is, the time is over 50% longer than that yesterday.
    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원