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

Commit

Permalink
Fix overview metrics (#990)
Browse files Browse the repository at this point in the history
Signed-off-by: Breezewish <me@breeswish.org>
  • Loading branch information
breezewish authored Oct 14, 2019
1 parent d30a3fd commit c0261b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions roles/prometheus/files/tikv.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ groups:
summary: TiKV coprocessor request wait seconds more than 10s

- alert: TiKV_raftstore_thread_cpu_seconds_total
expr: sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance, name) > 1.6
expr: sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance) > 1.6
for: 1m
labels:
env: ENV_LABELS_ENV
level: critical
expr: sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance, name) > 1.6
expr: sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance) > 1.6
annotations:
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
value: '{{ $value }}'
Expand Down
4 changes: 2 additions & 2 deletions scripts/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -4234,7 +4234,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tikv_thread_cpu_seconds_total{name=~\"raftstore_.*\"}[1m])) by (instance, name)",
"expr": "sum(rate(tikv_thread_cpu_seconds_total{name=~\"raftstore_.*\"}[1m])) by (instance)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -5220,4 +5220,4 @@
"title": "Test-Cluster-Overview",
"uid": "eDbRZpnWk",
"version": 11
}
}

0 comments on commit c0261b7

Please sign in to comment.