|
216 | 216 | "tableColumn": "", |
217 | 217 | "targets": [ |
218 | 218 | { |
219 | | - "expr": "pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\",type=\"storage_capacity\"}", |
| 219 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"storage_capacity\"})", |
220 | 220 | "format": "time_series", |
221 | 221 | "intervalFactor": 2, |
222 | 222 | "refId": "A", |
|
301 | 301 | "tableColumn": "", |
302 | 302 | "targets": [ |
303 | 303 | { |
304 | | - "expr": "pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\",type=\"storage_size\"}", |
| 304 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"storage_size\"})", |
305 | 305 | "intervalFactor": 2, |
306 | 306 | "refId": "A", |
307 | 307 | "step": 60 |
|
381 | 381 | "tableColumn": "", |
382 | 382 | "targets": [ |
383 | 383 | { |
384 | | - "expr": "pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"leader_count\"}", |
| 384 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"leader_count\"})", |
385 | 385 | "intervalFactor": 2, |
386 | 386 | "refId": "A", |
387 | 387 | "step": 60 |
|
461 | 461 | "tableColumn": "", |
462 | 462 | "targets": [ |
463 | 463 | { |
464 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_up_count\"})", |
| 464 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_up_count\"})", |
465 | 465 | "format": "time_series", |
466 | 466 | "interval": "15s", |
467 | 467 | "intervalFactor": 2, |
|
536 | 536 | ], |
537 | 537 | "targets": [ |
538 | 538 | { |
539 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_disconnected_count\"})", |
| 539 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_disconnected_count\"})", |
540 | 540 | "format": "time_series", |
541 | 541 | "intervalFactor": 2, |
542 | 542 | "legendFormat": "Disconnect Stores", |
543 | 543 | "refId": "B", |
544 | | - "step": 20 |
| 544 | + "step": 20, |
| 545 | + "instant": true, |
| 546 | + "range": false |
545 | 547 | }, |
546 | 548 | { |
547 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_unhealth_count\"})", |
| 549 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_unhealth_count\"})", |
548 | 550 | "format": "time_series", |
549 | 551 | "intervalFactor": 2, |
550 | 552 | "legendFormat": "Unhealth Stores", |
551 | 553 | "refId": "C", |
552 | | - "step": 20 |
| 554 | + "step": 20, |
| 555 | + "instant": true, |
| 556 | + "range": false |
553 | 557 | }, |
554 | 558 | { |
555 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_low_space_count\"})", |
| 559 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_low_space_count\"})", |
556 | 560 | "format": "time_series", |
557 | 561 | "intervalFactor": 2, |
558 | 562 | "legendFormat": "LowSpace Stores", |
559 | 563 | "refId": "D", |
560 | | - "step": 20 |
| 564 | + "step": 20, |
| 565 | + "instant": true, |
| 566 | + "range": false |
561 | 567 | }, |
562 | 568 | { |
563 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_down_count\"})", |
| 569 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_down_count\"})", |
564 | 570 | "format": "time_series", |
565 | 571 | "intervalFactor": 2, |
566 | 572 | "legendFormat": "Down Stores", |
567 | 573 | "refId": "E", |
568 | | - "step": 20 |
| 574 | + "step": 20, |
| 575 | + "instant": true, |
| 576 | + "range": false |
569 | 577 | }, |
570 | 578 | { |
571 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_offline_count\"})", |
| 579 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_offline_count\"})", |
572 | 580 | "format": "time_series", |
573 | 581 | "intervalFactor": 2, |
574 | 582 | "legendFormat": "Offline Stores", |
575 | 583 | "refId": "F", |
576 | | - "step": 20 |
| 584 | + "step": 20, |
| 585 | + "instant": true, |
| 586 | + "range": false |
577 | 587 | }, |
578 | 588 | { |
579 | | - "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\", type=\"store_tombstone_count\"})", |
| 589 | + "expr": "sum(pd_cluster_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"store_tombstone_count\"})", |
580 | 590 | "format": "time_series", |
581 | 591 | "intervalFactor": 2, |
582 | 592 | "legendFormat": "Tombstone Stores", |
583 | 593 | "refId": "G", |
584 | | - "step": 20 |
| 594 | + "step": 20, |
| 595 | + "instant": true, |
| 596 | + "range": false |
585 | 597 | } |
586 | 598 | ], |
587 | 599 | "timeFrom": "1s", |
|
1134 | 1146 | "steppedLine": false, |
1135 | 1147 | "targets": [ |
1136 | 1148 | { |
1137 | | - "expr": "pd_hotspot_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\",type=\"hot_write_region_as_leader\"}", |
| 1149 | + "expr": "pd_hotspot_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"hot_write_region_as_leader\"}", |
1138 | 1150 | "format": "time_series", |
1139 | 1151 | "intervalFactor": 2, |
1140 | 1152 | "legendFormat": "store-{{store}}", |
|
1225 | 1237 | "steppedLine": false, |
1226 | 1238 | "targets": [ |
1227 | 1239 | { |
1228 | | - "expr": "pd_hotspot_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=\"$instance\",type=\"hot_read_region_as_leader\"}", |
| 1240 | + "expr": "pd_hotspot_status{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"hot_read_region_as_leader\"}", |
1229 | 1241 | "format": "time_series", |
1230 | 1242 | "intervalFactor": 2, |
1231 | 1243 | "legendFormat": "store-{{store}}", |
|
4212 | 4224 | "steppedLine": false, |
4213 | 4225 | "targets": [ |
4214 | 4226 | { |
4215 | | - "expr": "sum(rate(tikv_thread_cpu_seconds_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", name=~\"raftstore_.*\"}[1m])) by (instance)", |
| 4227 | + "expr": "sum(rate(tikv_thread_cpu_seconds_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", name=~\"(raftstore|rs|rfstore)_.*\"}[1m])) by (instance)", |
4216 | 4228 | "format": "time_series", |
4217 | 4229 | "intervalFactor": 2, |
4218 | 4230 | "legendFormat": "{{instance}}", |
|
4307 | 4319 | "steppedLine": false, |
4308 | 4320 | "targets": [ |
4309 | 4321 | { |
4310 | | - "expr": "sum(rate(tikv_thread_cpu_seconds_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", name=~\"cop_.*\"}[1m])) by (instance)", |
| 4322 | + "expr": "sum(rate(tikv_thread_cpu_seconds_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", name=~\"unified_read_po.*\"}[1m])) by (instance)", |
4311 | 4323 | "format": "time_series", |
4312 | 4324 | "intervalFactor": 2, |
4313 | 4325 | "legendFormat": "{{instance}}", |
|
4320 | 4332 | "timeFrom": null, |
4321 | 4333 | "timeRegions": [], |
4322 | 4334 | "timeShift": null, |
4323 | | - "title": "Coprocessor CPU", |
| 4335 | + "title": "Unified Read Pool CPU", |
4324 | 4336 | "tooltip": { |
4325 | 4337 | "shared": true, |
4326 | 4338 | "sort": 0, |
|
0 commit comments