From 1bd88a8c747eda53e0e88c1fbd0bafb89491a36c Mon Sep 17 00:00:00 2001 From: zhangjinpeng1987 Date: Mon, 20 Dec 2021 15:25:46 +0800 Subject: [PATCH] metrics alert: fix apply cpu alert (#11672) Signed-off-by: zhangjinpeng1987 Co-authored-by: Ti Chi Robot --- metrics/alertmanager/tikv.rules.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/alertmanager/tikv.rules.yml b/metrics/alertmanager/tikv.rules.yml index 6eeda09e2bdc..9b25637d14f6 100644 --- a/metrics/alertmanager/tikv.rules.yml +++ b/metrics/alertmanager/tikv.rules.yml @@ -158,12 +158,12 @@ groups: summary: TiKV scheduler latch wait duration seconds more than 1s - alert: TiKV_thread_apply_worker_cpu_seconds - expr: sum(rate(tikv_thread_cpu_seconds_total{name="apply_worker"}[1m])) by (instance) > 1.8 + expr: max(rate(tikv_thread_cpu_seconds_total{name="apply_.*"}[1m])) by (instance) > 0.9 for: 1m labels: env: ENV_LABELS_ENV level: critical - expr: sum(rate(tikv_thread_cpu_seconds_total{name="apply_worker"}[1m])) by (instance) > 1.8 + expr: max(rate(tikv_thread_cpu_seconds_total{name="apply_.*"}[1m])) by (instance) > 0.9 annotations: description: 'cluster: ENV_LABELS_ENV, type: {{ $labels.type }}, instance: {{ $labels.instance }}, values: {{ $value }}' value: '{{ $value }}'