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

add alert rule for tidb binlog error count #1038

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions roles/prometheus/files/tidb.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ groups:
value: '{{ $value }}'
summary: TiDB tikvclient_backoff_count error

- alert: TiDB_binlog_error_total
expr: increase( tidb_server_critical_error_total[5m] ) > 0
for: 1m
labels:
env: ENV_LABELS_ENV
level: emergency
expr: increase( tidb_server_critical_error_total[5m] ) > 0
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
summary: TiDB tidb binlog error total

- alert: TiDB_domain_load_schema_total
expr: increase( tidb_domain_load_schema_total{type="failed"}[10m] ) > 10
for: 1m
Expand Down
2 changes: 1 addition & 1 deletion scripts/tidb.json
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Uncommon Error OPM",
"title": "Write Binlog Error",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down