Skip to content

Commit

Permalink
metrics: add alert for tikv hibernate regions (pingcap#1116) (pingcap…
Browse files Browse the repository at this point in the history
…#1120)

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
ti-srebot authored Nov 25, 2020
1 parent e5d5d13 commit ec11221
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions metrics/alertmanager/ticdc.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,15 @@ groups:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
summary: TiCDC heap memory usage is over 10 GB

- alert: tikv_enabled_hibernate_regions
expr: sum(tikv_config_raftstore{name="hibernate_regions"}) > 0
for: 1m
labels:
env: ENV_LABELS_ENV
level: warning
expr: sum(tikv_config_raftstore{name="hibernate_regions"}) > 0
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values: {{ $value }}'
value: '{{ $value }}'
summary: cdc will break tikv hibernate regions

0 comments on commit ec11221

Please sign in to comment.