Skip to content

Commit

Permalink
ticdc.rules: fix alertmanager rules (pingcap#3422) (pingcap#3595)
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 47b2b2d commit 666ac9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metrics/alertmanager/ticdc.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ groups:
summary: cdc cluster has multiple owners

- alert: cdc_checkpoint_high_delay
expr: (time() - ticdc_processor_checkpoint_ts / 1000) > 600
expr: ticdc_processor_checkpoint_ts_lag > 600
for: 1m
labels:
env: ENV_LABELS_ENV
level: critical
expr: (time() - ticdc_processor_checkpoint_ts / 1000) > 600
expr: ticdc_processor_checkpoint_ts_lag > 600
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values: {{ $value }}'
value: '{{ $value }}'
summary: cdc processor checkpoint delay more than 10 minutes

- alert: cdc_resolvedts_high_delay
expr: (time() - ticdc_processor_resolved_ts / 1000) > 300
expr: ticdc_processor_resolved_ts_lag > 300
for: 1m
labels:
env: ENV_LABELS_ENV
level: critical
expr: (time() - ticdc_processor_resolved_ts / 1000) > 300
expr: ticdc_processor_resolved_ts_lag > 300
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values: {{ $value }}'
value: '{{ $value }}'
Expand Down

0 comments on commit 666ac9e

Please sign in to comment.