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

fix TiDB alert rules (#960) #962

Merged
merged 1 commit into from
Sep 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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