Skip to content

Commit

Permalink
Merge branch 'release-5.1' into cherry-pick-4148-to-release-5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Nov 30, 2021
2 parents 6db04e8 + 6b186ae commit d0e3f61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metrics/alertmanager/pd.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ groups:
summary: PD_pending_peer_region_count

- alert: PD_leader_change
expr: count( changes(pd_server_tso{type="save"}[10m]) > 0 ) >= 2
expr: count( changes(pd_tso_events{type="save"}[10m]) > 0 ) >= 2
for: 1m
labels:
env: ENV_LABELS_ENV
level: warning
expr: count( changes(pd_server_tso{type="save"}[10m]) > 0 ) >= 2
expr: count( changes(pd_tso_events{type="save"}[10m]) > 0 ) >= 2
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
Expand All @@ -146,12 +146,12 @@ groups:
summary: TiKV_space_used_more_than_80%

- alert: PD_system_time_slow
expr: changes(pd_server_tso{type="system_time_slow"}[10m]) >= 1
expr: changes(pd_tso_events{type="system_time_slow"}[10m]) >= 1
for: 1m
labels:
env: ENV_LABELS_ENV
level: warning
expr: changes(pd_server_tso{type="system_time_slow"}[10m]) >= 1
expr: changes(pd_tso_events{type="system_time_slow"}[10m]) >= 1
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values: {{ $value }}'
value: '{{ $value }}'
Expand Down

0 comments on commit d0e3f61

Please sign in to comment.