|
106 | 106 | "steppedLine": false, |
107 | 107 | "targets": [ |
108 | 108 | { |
109 | | - "expr": "binlog_pump_storage_storage_size_bytes", |
| 109 | + "expr": "binlog_pump_storage_storage_size_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}", |
110 | 110 | "format": "time_series", |
111 | 111 | "hide": false, |
112 | 112 | "intervalFactor": 2, |
|
196 | 196 | "steppedLine": false, |
197 | 197 | "targets": [ |
198 | 198 | { |
199 | | - "expr": "binlog_pump_storage_gc_ts", |
| 199 | + "expr": "binlog_pump_storage_gc_ts{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}", |
200 | 200 | "format": "time_series", |
201 | 201 | "intervalFactor": 2, |
202 | 202 | "legendFormat": "{{instance}} : gc_tso", |
203 | 203 | "refId": "A" |
204 | 204 | }, |
205 | 205 | { |
206 | | - "expr": "binlog_pump_storage_max_commit_ts", |
| 206 | + "expr": "binlog_pump_storage_max_commit_ts{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}", |
207 | 207 | "format": "time_series", |
208 | 208 | "intervalFactor": 2, |
209 | 209 | "legendFormat": "{{instance}} : max_commit_tso", |
|
293 | 293 | "steppedLine": false, |
294 | 294 | "targets": [ |
295 | 295 | { |
296 | | - "expr": "rate(binlog_pump_rpc_duration_seconds_count{method=\"WriteBinlog\"}[1m])", |
| 296 | + "expr": "rate(binlog_pump_rpc_duration_seconds_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", method=\"WriteBinlog\"}[1m])", |
297 | 297 | "format": "time_series", |
298 | 298 | "intervalFactor": 2, |
299 | 299 | "legendFormat": "{{instance}} :: {{label}}", |
|
386 | 386 | "steppedLine": false, |
387 | 387 | "targets": [ |
388 | 388 | { |
389 | | - "expr": "histogram_quantile(0.99, rate(binlog_pump_rpc_duration_seconds_bucket{method=\"WriteBinlog\"}[1m]))", |
| 389 | + "expr": "histogram_quantile(0.99, rate(binlog_pump_rpc_duration_seconds_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", method=\"WriteBinlog\"}[1m]))", |
390 | 390 | "format": "time_series", |
391 | 391 | "intervalFactor": 2, |
392 | 392 | "legendFormat": "{{instance}} : {{method}}:99", |
393 | 393 | "refId": "A" |
394 | 394 | }, |
395 | 395 | { |
396 | | - "expr": "histogram_quantile(0.95, rate(binlog_pump_rpc_duration_seconds_bucket{method=\"WriteBinlog\"}[1m]))", |
| 396 | + "expr": "histogram_quantile(0.95, rate(binlog_pump_rpc_duration_seconds_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", method=\"WriteBinlog\"}[1m]))", |
397 | 397 | "format": "time_series", |
398 | 398 | "intervalFactor": 2, |
399 | 399 | "legendFormat": "{{instance}} : {{method}} : 95", |
|
481 | 481 | "steppedLine": false, |
482 | 482 | "targets": [ |
483 | 483 | { |
484 | | - "expr": "histogram_quantile(0.99, rate(binlog_pump_storage_write_binlog_size_bucket[1m]))", |
| 484 | + "expr": "histogram_quantile(0.99, rate(binlog_pump_storage_write_binlog_size_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[1m]))", |
485 | 485 | "format": "time_series", |
486 | 486 | "intervalFactor": 2, |
487 | 487 | "legendFormat": "{{instance}} : {{type}} : 99", |
488 | 488 | "refId": "B" |
489 | 489 | }, |
490 | 490 | { |
491 | | - "expr": "histogram_quantile(0.95, rate(binlog_pump_storage_write_binlog_size_bucket[1m]))", |
| 491 | + "expr": "histogram_quantile(0.95, rate(binlog_pump_storage_write_binlog_size_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[1m]))", |
492 | 492 | "format": "time_series", |
493 | 493 | "intervalFactor": 2, |
494 | 494 | "legendFormat": "{{instance}} : {{type}} : 95", |
|
578 | 578 | "steppedLine": false, |
579 | 579 | "targets": [ |
580 | 580 | { |
581 | | - "expr": "histogram_quantile(0.99, rate(binlog_pump_storage_write_binlog_duration_time_bucket[1m]))", |
| 581 | + "expr": "histogram_quantile(0.99, rate(binlog_pump_storage_write_binlog_duration_time_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[1m]))", |
582 | 582 | "format": "time_series", |
583 | 583 | "intervalFactor": 2, |
584 | 584 | "legendFormat": "{{instance}} : {{type}}:99", |
585 | 585 | "refId": "A" |
586 | 586 | }, |
587 | 587 | { |
588 | | - "expr": "histogram_quantile(0.95, rate(binlog_pump_storage_write_binlog_duration_time_bucket[1m]))", |
| 588 | + "expr": "histogram_quantile(0.95, rate(binlog_pump_storage_write_binlog_duration_time_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[1m]))", |
589 | 589 | "format": "time_series", |
590 | 590 | "intervalFactor": 2, |
591 | 591 | "legendFormat": "{{instance}} : {{type}}:95", |
|
673 | 673 | "steppedLine": false, |
674 | 674 | "targets": [ |
675 | 675 | { |
676 | | - "expr": "rate(binlog_pump_storage_error_count[1m])", |
| 676 | + "expr": "rate(binlog_pump_storage_error_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[1m])", |
677 | 677 | "format": "time_series", |
678 | 678 | "instant": false, |
679 | 679 | "intervalFactor": 2, |
|
761 | 761 | "steppedLine": false, |
762 | 762 | "targets": [ |
763 | 763 | { |
764 | | - "expr": "binlog_pump_storage_query_tikv_count", |
| 764 | + "expr": "binlog_pump_storage_query_tikv_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}", |
765 | 765 | "format": "time_series", |
766 | 766 | "intervalFactor": 2, |
767 | 767 | "legendFormat": "{{instance}}", |
|
848 | 848 | "steppedLine": false, |
849 | 849 | "targets": [ |
850 | 850 | { |
851 | | - "expr": "tidb_server_critical_error_total", |
| 851 | + "expr": "tidb_server_critical_error_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}", |
852 | 852 | "format": "time_series", |
853 | 853 | "intervalFactor": 2, |
854 | 854 | "legendFormat": "{{instance}}", |
|
974 | 974 | "tableColumn": "__name__", |
975 | 975 | "targets": [ |
976 | 976 | { |
977 | | - "expr": "binlog_drainer_checkpoint_tso{instance = \"$drainer_instance\"}", |
| 977 | + "expr": "binlog_drainer_checkpoint_tso{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}", |
978 | 978 | "format": "time_series", |
979 | 979 | "instant": true, |
980 | 980 | "intervalFactor": 2, |
|
1039 | 1039 | "steppedLine": false, |
1040 | 1040 | "targets": [ |
1041 | 1041 | { |
1042 | | - "expr": "binlog_drainer_pump_position{instance = \"$drainer_instance\"}", |
| 1042 | + "expr": "binlog_drainer_pump_position{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}", |
1043 | 1043 | "format": "time_series", |
1044 | 1044 | "hide": false, |
1045 | 1045 | "instant": false, |
|
1127 | 1127 | "steppedLine": false, |
1128 | 1128 | "targets": [ |
1129 | 1129 | { |
1130 | | - "expr": "sum(rate(binlog_drainer_read_binlog_size_count{instance = \"$drainer_instance\"}[1m])) by (nodeID)", |
| 1130 | + "expr": "sum(rate(binlog_drainer_read_binlog_size_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}[1m])) by (nodeID)", |
1131 | 1131 | "format": "time_series", |
1132 | 1132 | "intervalFactor": 2, |
1133 | 1133 | "legendFormat": "{{nodeID}}", |
|
1215 | 1215 | "steppedLine": false, |
1216 | 1216 | "targets": [ |
1217 | 1217 | { |
1218 | | - "expr": "histogram_quantile(0.95, rate(binlog_drainer_binlog_reach_duration_time_bucket{instance = \"$drainer_instance\"}[1m]))", |
| 1218 | + "expr": "histogram_quantile(0.95, rate(binlog_drainer_binlog_reach_duration_time_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}[1m]))", |
1219 | 1219 | "format": "time_series", |
1220 | 1220 | "intervalFactor": 2, |
1221 | 1221 | "legendFormat": "{{nodeID}}", |
|
1303 | 1303 | "steppedLine": false, |
1304 | 1304 | "targets": [ |
1305 | 1305 | { |
1306 | | - "expr": "binlog_drainer_error_count{instance = \"$drainer_instance\"}", |
| 1306 | + "expr": "binlog_drainer_error_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}", |
1307 | 1307 | "format": "time_series", |
1308 | 1308 | "intervalFactor": 2, |
1309 | 1309 | "legendFormat": "{{type}}", |
|
1391 | 1391 | "steppedLine": false, |
1392 | 1392 | "targets": [ |
1393 | 1393 | { |
1394 | | - "expr": "irate(binlog_drainer_event{instance = \"$drainer_instance\"}[1m])", |
| 1394 | + "expr": "irate(binlog_drainer_event{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}[1m])", |
1395 | 1395 | "format": "time_series", |
1396 | 1396 | "intervalFactor": 2, |
1397 | 1397 | "legendFormat": "{{type}}", |
|
1477 | 1477 | "steppedLine": false, |
1478 | 1478 | "targets": [ |
1479 | 1479 | { |
1480 | | - "expr": "histogram_quantile(0.99, rate(binlog_drainer_execute_duration_time_bucket{instance = \"$drainer_instance\"}[1m]))", |
| 1480 | + "expr": "histogram_quantile(0.99, rate(binlog_drainer_execute_duration_time_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}[1m]))", |
1481 | 1481 | "format": "time_series", |
1482 | 1482 | "intervalFactor": 2, |
1483 | 1483 | "legendFormat": "{{job}}", |
|
1563 | 1563 | "steppedLine": false, |
1564 | 1564 | "targets": [ |
1565 | 1565 | { |
1566 | | - "expr": "histogram_quantile(0.99, rate(binlog_drainer_query_duration_time_bucket{instance = \"$drainer_instance\"}[1m]))", |
| 1566 | + "expr": "histogram_quantile(0.99, rate(binlog_drainer_query_duration_time_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}[1m]))", |
1567 | 1567 | "format": "time_series", |
1568 | 1568 | "intervalFactor": 2, |
1569 | 1569 | "legendFormat": "{{type}}", |
|
1651 | 1651 | "steppedLine": false, |
1652 | 1652 | "targets": [ |
1653 | 1653 | { |
1654 | | - "expr": "histogram_quantile(0.95, rate(binlog_drainer_read_binlog_size_bucket{instance = \"$drainer_instance\"}[1m]))", |
| 1654 | + "expr": "histogram_quantile(0.95, rate(binlog_drainer_read_binlog_size_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}[1m]))", |
1655 | 1655 | "format": "time_series", |
1656 | 1656 | "intervalFactor": 2, |
1657 | 1657 | "legendFormat": "pump: {{nodeID}}", |
|
1739 | 1739 | "steppedLine": false, |
1740 | 1740 | "targets": [ |
1741 | 1741 | { |
1742 | | - "expr": "binlog_drainer_ddl_jobs_total{instance = \"$drainer_instance\"}", |
| 1742 | + "expr": "binlog_drainer_ddl_jobs_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}", |
1743 | 1743 | "format": "time_series", |
1744 | 1744 | "instant": false, |
1745 | 1745 | "intervalFactor": 2, |
|
1823 | 1823 | "steppedLine": false, |
1824 | 1824 | "targets": [ |
1825 | 1825 | { |
1826 | | - "expr": "binlog_drainer_queue_size{instance = \"$drainer_instance\"}", |
| 1826 | + "expr": "binlog_drainer_queue_size{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance = \"$drainer_instance\"}", |
1827 | 1827 | "format": "time_series", |
1828 | 1828 | "intervalFactor": 2, |
1829 | 1829 | "legendFormat": "{{name}}", |
|
1923 | 1923 | "steppedLine": false, |
1924 | 1924 | "targets": [ |
1925 | 1925 | { |
1926 | | - "expr": "go_goroutines{job=~\"binlog|pump|drainer\"}", |
| 1926 | + "expr": "go_goroutines{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=~\"binlog|pump|drainer\"}", |
1927 | 1927 | "format": "time_series", |
1928 | 1928 | "intervalFactor": 2, |
1929 | 1929 | "legendFormat": "{{instance}}", |
|
2011 | 2011 | "steppedLine": false, |
2012 | 2012 | "targets": [ |
2013 | 2013 | { |
2014 | | - "expr": "go_memstats_heap_inuse_bytes{job=~\"binlog|pump|drainer\"}", |
| 2014 | + "expr": "go_memstats_heap_inuse_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=~\"binlog|pump|drainer\"}", |
2015 | 2015 | "format": "time_series", |
2016 | 2016 | "intervalFactor": 2, |
2017 | 2017 | "legendFormat": "{{instance}}", |
|
2069 | 2069 | "tags": [], |
2070 | 2070 | "templating": { |
2071 | 2071 | "list": [ |
| 2072 | + { |
| 2073 | + "allValue": null, |
| 2074 | + "current": {}, |
| 2075 | + "datasource": "${DS_TEST-CLUSTER}", |
| 2076 | + "definition": "", |
| 2077 | + "hide": 0, |
| 2078 | + "includeAll": false, |
| 2079 | + "label": "K8s-cluster", |
| 2080 | + "multi": false, |
| 2081 | + "name": "k8s_cluster", |
| 2082 | + "options": [], |
| 2083 | + "query": "label_values(binlog_drainer_ddl_jobs_total, k8s_cluster)", |
| 2084 | + "refresh": 1, |
| 2085 | + "regex": "", |
| 2086 | + "skipUrlSync": false, |
| 2087 | + "sort": 0, |
| 2088 | + "tagValuesQuery": "", |
| 2089 | + "tags": [], |
| 2090 | + "tagsQuery": "", |
| 2091 | + "type": "query", |
| 2092 | + "useTags": false |
| 2093 | + }, |
| 2094 | + { |
| 2095 | + "allValue": null, |
| 2096 | + "current": {}, |
| 2097 | + "datasource": "${DS_TEST-CLUSTER}", |
| 2098 | + "definition": "", |
| 2099 | + "hide": 0, |
| 2100 | + "includeAll": false, |
| 2101 | + "label": "tidb_cluster", |
| 2102 | + "multi": false, |
| 2103 | + "name": "tidb_cluster", |
| 2104 | + "options": [], |
| 2105 | + "query": "label_values(binlog_drainer_ddl_jobs_total{k8s_cluster=\"$k8s_cluster\"}, tidb_cluster)", |
| 2106 | + "refresh": 1, |
| 2107 | + "regex": "", |
| 2108 | + "skipUrlSync": false, |
| 2109 | + "sort": 0, |
| 2110 | + "tagValuesQuery": "", |
| 2111 | + "tags": [], |
| 2112 | + "tagsQuery": "", |
| 2113 | + "type": "query", |
| 2114 | + "useTags": false |
| 2115 | + }, |
2072 | 2116 | { |
2073 | 2117 | "allValue": null, |
2074 | 2118 | "current": {}, |
|
2080 | 2124 | "multi": false, |
2081 | 2125 | "name": "drainer_instance", |
2082 | 2126 | "options": [], |
2083 | | - "query": "label_values(binlog_drainer_ddl_jobs_total, instance)", |
| 2127 | + "query": "label_values(binlog_drainer_ddl_jobs_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}, instance)", |
2084 | 2128 | "refresh": 1, |
2085 | 2129 | "regex": "", |
2086 | 2130 | "skipUrlSync": false, |
|
0 commit comments