Skip to content

Commit

Permalink
Update alert rule for low space (#6978) (#7030)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Aug 30, 2021
1 parent f6cfa7f commit 4310e3d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions alert-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -749,11 +749,19 @@ summary: TiDB 集群中各组件的报警规则详解。

查看是哪一类任务的值偏高,通常 Coprocessor、apply worker 这类任务都可以在其他指标里找到解决办法。

#### `TiKV_low_space_and_add_region`
#### `TiKV_low_space`

* 报警规则:

`count((sum(tikv_store_size_bytes{type="available"}) by (instance) / sum(tikv_store_size_bytes{type="capacity"}) by (instance) < 0.2) and (sum(tikv_raftstore_snapshot_traffic_total{type="applying"}) by (instance) > 0)) > 0`
`sum(tikv_store_size_bytes{type="available"}) by (instance) / sum(tikv_store_size_bytes{type="capacity"}) by (instance) < 0.2`

* 规则描述:

TiKV 数据量超过节点配置容量或物理磁盘容量的 80%。

* 处理方法:

确认节点空间均衡情况,做好扩容计划。

#### `TiKV_approximate_region_size`

Expand Down

0 comments on commit 4310e3d

Please sign in to comment.