Skip to content

Commit

Permalink
fix metrics
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <admin@liudos.us>
  • Loading branch information
lhy1024 committed Mar 26, 2024
1 parent 33a1ed2 commit 92c7de0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics/grafana/pd.json
Original file line number Diff line number Diff line change
Expand Up @@ -13081,7 +13081,7 @@
"id": 1601,
"options": {
"colorMode": "value",
"graphMode": "area",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
Expand All @@ -13098,7 +13098,7 @@
"targets": [
{
"exemplar": true,
"expr": "pd_replication_dr_state{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}!=0",
"expr": "max(pd_replication_dr_state{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"})",
"instant": false,
"interval": "",
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -13266,7 +13266,7 @@
"targets": [
{
"exemplar": true,
"expr": "rate(pd_replication_dr_tick_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\"}[5m])",
"expr": "rate(pd_replication_dr_tick_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[5m])",
"instant": false,
"interval": "",
"legendFormat": "{{instance}}",
Expand Down

0 comments on commit 92c7de0

Please sign in to comment.