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

Commit

Permalink
fix TiDB alert rules (#960) (#962)
Browse files Browse the repository at this point in the history
Signed-off-by: Lonng <[email protected]>
  • Loading branch information
lonng authored Sep 16, 2019
1 parent 7bbe155 commit 497546c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/prometheus/files/tidb.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,24 @@ groups:
summary: TiDB query duration 99th percentile is above 1s

- alert: TiDB_server_event_error
expr: increase(tidb_server_server_event{type=~"server_start|server_hang"}[15m]) > 0
expr: increase(tidb_server_event_total{type=~"server_start|server_hang"}[15m]) > 0
for: 1m
labels:
env: ENV_LABELS_ENV
level: warning
expr: increase(tidb_server_server_event{type=~"server_start|server_hang"}[15m]) > 0
expr: increase(tidb_server_event_total{type=~"server_start|server_hang"}[15m]) > 0
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
summary: TiDB server event error

- alert: TiDB_tikvclient_backoff_count
expr: increase( tidb_tikvclient_backoff_count[10m] ) > 10
- alert: tidb_tikvclient_backoff_total
expr: increase( tidb_tikvclient_backoff_total[10m] ) > 10
for: 1m
labels:
env: ENV_LABELS_ENV
level: warning
expr: increase( tidb_tikvclient_backoff_count[10m] ) > 10
expr: increase( tidb_tikvclient_backoff_total[10m] ) > 10
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
Expand Down

0 comments on commit 497546c

Please sign in to comment.