Skip to content

Commit

Permalink
remove by name for alert of TiKV_raftstore_thread_cpu_seconds_total (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mayjiang0203 authored Oct 31, 2024
1 parent 9623468 commit 61621b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alert-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,13 @@ aliases: ['/docs-cn/dev/alert-rules/','/docs-cn/dev/reference/alert-rules/']

* 报警规则:

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

* 规则描述:

Raftstore 线程压力太大。
监测 raftstore 的 CPU 消耗。如果该值偏大,表明 Raftstore 线程压力很大。

该报警项的阈值为 [`raftstore.store-pool-size`](/tikv-configuration-file.md#store-pool-size) 的 80%。`raftstore.store-pool-size` 默认为 2,所以该阈值为 1.6。

* 处理方法:

Expand Down

0 comments on commit 61621b9

Please sign in to comment.