Skip to content

Commit

Permalink
ticdc/alert: add no owner alert rule (pingcap#3809) (pingcap#3835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored and 3AceShowHand committed Dec 25, 2021
1 parent 974aaa1 commit e5155ed
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 @@ -13,6 +13,18 @@ groups:
value: '{{ $value }}'
summary: cdc cluster has multiple owners

- alert: cdc_no_owner
expr: sum(rate(ticdc_owner_ownership_counter[30s])) < 0.5
for: 10m
labels:
env: ENV_LABELS_ENV
level: warning
expr: sum(rate(ticdc_owner_ownership_counter[30s])) < 0.5
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values: {{ $value }}'
value: '{{ $value }}'
summary: cdc cluster has no owner for more than 10 minutes

- alert: cdc_checkpoint_high_delay
expr: ticdc_processor_checkpoint_ts_lag > 600
for: 1m
Expand Down

0 comments on commit e5155ed

Please sign in to comment.