Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Update alert rule to work properly when distrubuted gc is enabled (#994
Browse files Browse the repository at this point in the history
…) (#995)

Signed-off-by: MyonKeminta <[email protected]>
  • Loading branch information
MyonKeminta authored and liubo0127 committed Oct 17, 2019
1 parent ae71ca1 commit a005206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/prometheus/files/tikv.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ groups:
summary: TiKV memory used too fast

- alert: TiKV_GC_can_not_work
expr: sum(increase(tidb_tikvclient_gc_action_result{type="success"}[6h])) < 1
expr: sum(increase(tikv_gcworker_gc_tasks_vec{task="gc"}[1d])) < 1
for: 1m
labels:
env: ENV_LABELS_ENV
level: emergency
expr: sum(increase(tidb_tikvclient_gc_action_result{type="success"}[6h])) < 1
expr: sum(increase(tikv_gcworker_gc_tasks_vec{task="gc"}[1d])) < 1
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
Expand Down

0 comments on commit a005206

Please sign in to comment.