Skip to content

Commit 02b245d

Browse files
authored
remove by name for alert of TiKV_raftstore_thread_cpu_seconds_total (#19275) (#19284)
1 parent c9c7821 commit 02b245d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

alert-rules.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,13 @@ This section gives the alert rules for the TiKV component.
560560

561561
* Alert rule:
562562

563-
`sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance, name) > 1.6`
563+
`sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance) > 1.6`
564564

565565
* Description:
566566

567-
The pressure on the Raftstore thread is too high.
567+
This rule monitors CPU usage by Raftstore. If the value is high, it indicates pressure on Raftstore threads is heavy.
568+
569+
The alert threshold is 80% of the [`raftstore.store-pool-size`](/tikv-configuration-file.md#store-pool-size) value. `raftstore.store-pool-size` is 2 by default, so the alert threshold is 1.6.
568570

569571
* Solution:
570572

0 commit comments

Comments
 (0)