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

scripts: use one backoff metric for KV backoff #1067

Merged
merged 1 commit into from
Dec 18, 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
6 changes: 3 additions & 3 deletions roles/prometheus/files/tidb.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ groups:
value: '{{ $value }}'
summary: TiDB server event error

- alert: tidb_tikvclient_backoff_total
expr: increase( tidb_tikvclient_backoff_total[10m] ) > 10
- alert: tidb_tikvclient_backoff_seconds_count
expr: increase( tidb_tikvclient_backoff_seconds_count[10m] ) > 10
for: 1m
labels:
env: ENV_LABELS_ENV
level: warning
expr: increase( tidb_tikvclient_backoff_total[10m] ) > 10
expr: increase( tidb_tikvclient_backoff_seconds_count[10m] ) > 10
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
Expand Down
2 changes: 1 addition & 1 deletion scripts/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -3086,7 +3086,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tidb_tikvclient_backoff_total[1m])) by (type)",
"expr": "sum(rate(tidb_tikvclient_backoff_seconds_count[1m])) by (type)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
Expand Down
2 changes: 1 addition & 1 deletion scripts/performance_read.json
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tidb_tikvclient_backoff_total[1m])) by (type)",
"expr": "sum(rate(tidb_tikvclient_backoff_seconds_count[1m])) by (type)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
Expand Down
2 changes: 1 addition & 1 deletion scripts/performance_write.json
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tidb_tikvclient_backoff_total[1m])) by (type)",
"expr": "sum(rate(tidb_tikvclient_backoff_seconds_count[1m])) by (type)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
Expand Down
4 changes: 2 additions & 2 deletions scripts/tidb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5235,7 +5235,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "KV Retry Duration",
"title": "KV Backoff Duration",
"tooltip": {
"msResolution": false,
"shared": true,
Expand Down Expand Up @@ -5420,7 +5420,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tidb_tikvclient_backoff_total[1m])) by (type)",
"expr": "sum(rate(tidb_tikvclient_backoff_seconds_count[1m])) by (type)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
Expand Down