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

scripts: use address instead of store in PD #693

Merged
merged 1 commit into from
Mar 5, 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
78 changes: 39 additions & 39 deletions scripts/pd.json
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@
"hide": false,
"instant": false,
"intervalFactor": 2,
"legendFormat": "store-{{store}}",
"legendFormat": "{{address}}",
"refId": "B"
}
],
Expand Down Expand Up @@ -1478,7 +1478,7 @@
"expr": "{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_available\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "store-{{store}}",
"legendFormat": "{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1557,7 +1557,7 @@
"expr": "pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_used\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "store-{{store}}",
"legendFormat": "{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1633,10 +1633,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"region_size\"}) by (store) / sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_used\"}) by (store) * 2^20",
"expr": "sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"region_size\"}) by (address) / sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_used\"}) by (address) * 2^20",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "store-{{store}}",
"legendFormat": "{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1713,10 +1713,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_available\"}) by (store) / sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_capacity\"}) by (store)",
"expr": "sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_available\"}) by (address) / sum(pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"store_capacity\"}) by (address)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "store-{{store}}",
"legendFormat": "{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1801,7 +1801,7 @@
"expr": "pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"leader_score\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tikv-{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -1897,7 +1897,7 @@
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "tikv-{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -1987,7 +1987,7 @@
{
"expr": "pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"leader_size\"}",
"intervalFactor": 2,
"legendFormat": "tikv-{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2068,7 +2068,7 @@
{
"expr": "pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"region_size\"}",
"intervalFactor": 2,
"legendFormat": "tikv-{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2149,7 +2149,7 @@
{
"expr": "pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"leader_count\"}",
"intervalFactor": 2,
"legendFormat": "tikv-{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2230,7 +2230,7 @@
{
"expr": "pd_scheduler_store_status{instance=\"$instance\", namespace=~\"$namespace\", type=\"region_count\"}",
"intervalFactor": 2,
"legendFormat": "tikv-{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2325,7 +2325,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"hot_write_region_as_leader\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2408,7 +2408,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"hot_write_region_as_peer\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2491,7 +2491,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"total_written_bytes_as_leader\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"metric": "pd_hotspot_status",
"refId": "A",
"step": 4
Expand Down Expand Up @@ -2575,7 +2575,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"total_written_bytes_as_peer\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2658,7 +2658,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"hot_read_region_as_leader\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2741,7 +2741,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"hot_read_region_as_peer\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -2823,7 +2823,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"total_read_bytes_as_leader\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"metric": "pd_hotspot_status",
"refId": "A",
"step": 4
Expand Down Expand Up @@ -2906,7 +2906,7 @@
"expr": "pd_hotspot_status{instance=\"$instance\",type=\"total_read_bytes_as_peer\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -3078,10 +3078,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_balance_leader{instance=\"$instance\", type=\"move_leader\"}[30s])) by (store)",
"expr": "sum(delta(pd_scheduler_balance_leader{instance=\"$instance\", type=\"move_leader\"}[30s])) by (address)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -3160,10 +3160,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_balance_region{instance=\"$instance\", type=\"move_peer\"}[1m])) by (store)",
"expr": "sum(delta(pd_scheduler_balance_region{instance=\"$instance\", type=\"move_peer\"}[1m])) by (address)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{store}}",
"legendFormat": "{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -3239,10 +3239,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_balance_leader{instance=\"$instance\", type!=\"move_leader\"}[30s])) by (type, store)",
"expr": "sum(delta(pd_scheduler_balance_leader{instance=\"$instance\", type!=\"move_leader\"}[30s])) by (type, address)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}_{{store}}",
"legendFormat": "{{type}}_{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -3319,10 +3319,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_balance_region{instance=\"$instance\", type!=\"move_peer\"}[30s])) by (type, store)",
"expr": "sum(delta(pd_scheduler_balance_region{instance=\"$instance\", type!=\"move_peer\"}[30s])) by (type, address)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}_{{store}}",
"legendFormat": "{{type}}_{{address}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -5706,11 +5706,11 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_region_heartbeat{instance=\"$instance\", type=\"report\", status=\"ok\"}[1m])) by (store)",
"expr": "sum(delta(pd_scheduler_region_heartbeat{instance=\"$instance\", type=\"report\", status=\"ok\"}[1m])) by (address)",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "store{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -5791,11 +5791,11 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_region_heartbeat{instance=\"$instance\", type=\"report\", status=\"err\"}[1m])) by (store)",
"expr": "sum(delta(pd_scheduler_region_heartbeat{instance=\"$instance\", type=\"report\", status=\"err\"}[1m])) by (address)",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "store{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -5876,11 +5876,11 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(delta(pd_scheduler_region_heartbeat{instance=\"$instance\", type=\"report\", status=\"bind\"}[1m])) by (store)",
"expr": "sum(delta(pd_scheduler_region_heartbeat{instance=\"$instance\", type=\"report\", status=\"bind\"}[1m])) by (address)",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "store{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -5961,11 +5961,11 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(pd_scheduler_region_heartbeat{type=\"push\",instance=\"$instance\"}[5m])*60) by (store, status)",
"expr": "sum(rate(pd_scheduler_region_heartbeat{type=\"push\",instance=\"$instance\"}[5m])*60) by (address, status)",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "store{{store}}-{{status}}",
"legendFormat": "{{address}}-{{status}}",
"refId": "A",
"step": 4
}
Expand Down Expand Up @@ -6046,11 +6046,11 @@
"steppedLine": false,
"targets": [
{
"expr": "round(histogram_quantile(0.99, sum(rate(pd_scheduler_region_heartbeat_latency_seconds_bucket[5m])) by (store, le)), 1000)",
"expr": "round(histogram_quantile(0.99, sum(rate(pd_scheduler_region_heartbeat_latency_seconds_bucket[5m])) by (address, le)), 1000)",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "store{{store}}",
"legendFormat": "{{address}}",
"refId": "A",
"step": 4
}
Expand Down