github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/apecloud-mysql/dashboards/mysql.json (about) 1 { 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": { 7 "type": "datasource", 8 "uid": "grafana" 9 }, 10 "enable": true, 11 "hide": true, 12 "iconColor": "rgba(0, 211, 255, 1)", 13 "name": "Annotations & Alerts", 14 "target": { 15 "limit": 100, 16 "matchAny": false, 17 "tags": [], 18 "type": "dashboard" 19 }, 20 "type": "dashboard" 21 } 22 ] 23 }, 24 "description": "", 25 "editable": true, 26 "fiscalYearStartMonth": 0, 27 "gnetId": 11323, 28 "graphTooltip": 0, 29 "id": 10, 30 "links": [ 31 { 32 "asDropdown": false, 33 "icon": "cloud", 34 "includeVars": false, 35 "keepTime": false, 36 "tags": [], 37 "targetBlank": true, 38 "title": "ApeCloud", 39 "tooltip": "Improved productivity, cost-efficiency and business continuity.", 40 "type": "link", 41 "url": "https://kubeblocks.io/" 42 }, 43 { 44 "asDropdown": false, 45 "icon": "external link", 46 "includeVars": false, 47 "keepTime": false, 48 "tags": [], 49 "targetBlank": true, 50 "title": "KubeBlocks", 51 "tooltip": "An open-source and cloud-neutral DBaaS with Kubernetes.", 52 "type": "link", 53 "url": "https://github.com/apecloud/kubeblocks" 54 } 55 ], 56 "liveNow": false, 57 "panels": [ 58 { 59 "collapsed": false, 60 "datasource": { 61 "uid": "$datasource" 62 }, 63 "gridPos": { 64 "h": 1, 65 "w": 24, 66 "x": 0, 67 "y": 0 68 }, 69 "id": 382, 70 "panels": [], 71 "targets": [ 72 { 73 "datasource": { 74 "uid": "$datasource" 75 }, 76 "refId": "A" 77 } 78 ], 79 "title": "Summary", 80 "type": "row" 81 }, 82 { 83 "datasource": { 84 "type": "prometheus", 85 "uid": "$datasource" 86 }, 87 "description": "**Uptime**\n\nThe amount of time since the last restart of the MySQL server process.", 88 "fieldConfig": { 89 "defaults": { 90 "decimals": 1, 91 "mappings": [], 92 "thresholds": { 93 "mode": "absolute", 94 "steps": [ 95 { 96 "color": "rgba(245, 54, 54, 0.9)", 97 "value": null 98 }, 99 { 100 "color": "rgba(237, 129, 40, 0.89)", 101 "value": 300 102 }, 103 { 104 "color": "dark-green", 105 "value": 3600 106 } 107 ] 108 }, 109 "unit": "s" 110 }, 111 "overrides": [] 112 }, 113 "gridPos": { 114 "h": 5, 115 "w": 3, 116 "x": 0, 117 "y": 1 118 }, 119 "id": 12, 120 "interval": "", 121 "links": [], 122 "maxDataPoints": 100, 123 "options": { 124 "colorMode": "value", 125 "fieldOptions": { 126 "calcs": [ 127 "lastNotNull" 128 ] 129 }, 130 "graphMode": "none", 131 "justifyMode": "auto", 132 "orientation": "horizontal", 133 "reduceOptions": { 134 "calcs": [ 135 "mean" 136 ], 137 "fields": "", 138 "values": false 139 }, 140 "text": {}, 141 "textMode": "auto" 142 }, 143 "pluginVersion": "9.2.4", 144 "targets": [ 145 { 146 "calculatedInterval": "10m", 147 "datasource": { 148 "uid": "$datasource" 149 }, 150 "datasourceErrors": {}, 151 "editorMode": "code", 152 "errors": {}, 153 "exemplar": false, 154 "expr": "min(sum(mysql_global_status_uptime{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod))", 155 "format": "time_series", 156 "instant": true, 157 "interval": "", 158 "intervalFactor": 1, 159 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 160 "metric": "", 161 "range": false, 162 "refId": "A", 163 "step": 300 164 } 165 ], 166 "title": "Min Uptime", 167 "type": "stat" 168 }, 169 { 170 "datasource": { 171 "type": "prometheus", 172 "uid": "$datasource" 173 }, 174 "description": "**Current QPS**\n\nBased on the queries reported by MySQL's ``SHOW STATUS`` command, it is the number of statements executed by the server within the last second. This variable includes statements executed within stored programs, unlike the Questions variable. It does not count \n``COM_PING`` or ``COM_STATISTICS`` commands.", 175 "fieldConfig": { 176 "defaults": { 177 "decimals": 2, 178 "mappings": [], 179 "thresholds": { 180 "mode": "absolute", 181 "steps": [ 182 { 183 "color": "dark-green", 184 "value": null 185 } 186 ] 187 }, 188 "unit": "short" 189 }, 190 "overrides": [] 191 }, 192 "gridPos": { 193 "h": 5, 194 "w": 3, 195 "x": 3, 196 "y": 1 197 }, 198 "id": 13, 199 "interval": "", 200 "links": [ 201 { 202 "targetBlank": true, 203 "title": "MySQL Server Status Variables", 204 "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Queries" 205 } 206 ], 207 "maxDataPoints": 100, 208 "options": { 209 "colorMode": "value", 210 "fieldOptions": { 211 "calcs": [ 212 "lastNotNull" 213 ] 214 }, 215 "graphMode": "area", 216 "justifyMode": "auto", 217 "orientation": "horizontal", 218 "reduceOptions": { 219 "calcs": [ 220 "mean" 221 ], 222 "fields": "", 223 "values": false 224 }, 225 "textMode": "auto" 226 }, 227 "pluginVersion": "9.2.4", 228 "targets": [ 229 { 230 "calculatedInterval": "10m", 231 "datasource": { 232 "uid": "$datasource" 233 }, 234 "datasourceErrors": {}, 235 "editorMode": "code", 236 "errors": {}, 237 "exemplar": false, 238 "expr": "sum(rate(mysql_global_status_queries{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval]))", 239 "format": "time_series", 240 "instant": true, 241 "interval": "", 242 "intervalFactor": 1, 243 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 244 "metric": "", 245 "range": false, 246 "refId": "A", 247 "step": 20 248 } 249 ], 250 "title": "Total QPS", 251 "type": "stat" 252 }, 253 { 254 "datasource": { 255 "type": "prometheus", 256 "uid": "$datasource" 257 }, 258 "description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.", 259 "fieldConfig": { 260 "defaults": { 261 "decimals": 0, 262 "mappings": [], 263 "thresholds": { 264 "mode": "absolute", 265 "steps": [ 266 { 267 "color": "dark-green", 268 "value": null 269 } 270 ] 271 }, 272 "unit": "bytes" 273 }, 274 "overrides": [] 275 }, 276 "gridPos": { 277 "h": 5, 278 "w": 3, 279 "x": 6, 280 "y": 1 281 }, 282 "id": 51, 283 "interval": "", 284 "links": [ 285 { 286 "targetBlank": true, 287 "title": "Tuning the InnoDB Buffer Pool Size", 288 "url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/" 289 } 290 ], 291 "maxDataPoints": 100, 292 "options": { 293 "colorMode": "value", 294 "fieldOptions": { 295 "calcs": [ 296 "lastNotNull" 297 ] 298 }, 299 "graphMode": "none", 300 "justifyMode": "auto", 301 "orientation": "horizontal", 302 "reduceOptions": { 303 "calcs": [ 304 "mean" 305 ], 306 "fields": "", 307 "values": false 308 }, 309 "textMode": "auto" 310 }, 311 "pluginVersion": "9.2.4", 312 "targets": [ 313 { 314 "calculatedInterval": "10m", 315 "datasource": { 316 "uid": "$datasource" 317 }, 318 "datasourceErrors": {}, 319 "editorMode": "code", 320 "errors": {}, 321 "exemplar": false, 322 "expr": "min(sum(mysql_global_variables_innodb_buffer_pool_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod))", 323 "format": "time_series", 324 "instant": true, 325 "interval": "", 326 "intervalFactor": 1, 327 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 328 "metric": "", 329 "range": false, 330 "refId": "A", 331 "step": 300 332 } 333 ], 334 "title": "InnoDB Buffer Pool", 335 "type": "stat" 336 }, 337 { 338 "datasource": { 339 "type": "prometheus", 340 "uid": "$datasource" 341 }, 342 "description": "", 343 "fieldConfig": { 344 "defaults": { 345 "color": { 346 "mode": "thresholds" 347 }, 348 "custom": { 349 "align": "auto", 350 "displayMode": "auto", 351 "inspect": false 352 }, 353 "decimals": 1, 354 "mappings": [], 355 "thresholds": { 356 "mode": "absolute", 357 "steps": [ 358 { 359 "color": "dark-green", 360 "value": null 361 } 362 ] 363 }, 364 "unit": "s" 365 }, 366 "overrides": [ 367 { 368 "matcher": { 369 "id": "byName", 370 "options": "uptime" 371 }, 372 "properties": [ 373 { 374 "id": "custom.displayMode", 375 "value": "color-text" 376 }, 377 { 378 "id": "unit", 379 "value": "s" 380 } 381 ] 382 }, 383 { 384 "matcher": { 385 "id": "byName", 386 "options": "current qps" 387 }, 388 "properties": [ 389 { 390 "id": "custom.displayMode", 391 "value": "color-text" 392 }, 393 { 394 "id": "unit", 395 "value": "short" 396 } 397 ] 398 }, 399 { 400 "matcher": { 401 "id": "byName", 402 "options": "innodb buffer size" 403 }, 404 "properties": [ 405 { 406 "id": "custom.displayMode", 407 "value": "color-text" 408 }, 409 { 410 "id": "unit", 411 "value": "bytes" 412 } 413 ] 414 } 415 ] 416 }, 417 "gridPos": { 418 "h": 5, 419 "w": 15, 420 "x": 9, 421 "y": 1 422 }, 423 "id": 403, 424 "interval": "", 425 "links": [], 426 "maxDataPoints": 100, 427 "options": { 428 "footer": { 429 "fields": "", 430 "reducer": [ 431 "sum" 432 ], 433 "show": false 434 }, 435 "showHeader": true 436 }, 437 "pluginVersion": "9.2.4", 438 "targets": [ 439 { 440 "calculatedInterval": "10m", 441 "datasource": { 442 "uid": "$datasource" 443 }, 444 "datasourceErrors": {}, 445 "editorMode": "code", 446 "errors": {}, 447 "exemplar": false, 448 "expr": "sum(mysql_global_status_uptime{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 449 "format": "table", 450 "instant": true, 451 "interval": "", 452 "intervalFactor": 1, 453 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 454 "metric": "", 455 "range": false, 456 "refId": "A", 457 "step": 300 458 }, 459 { 460 "calculatedInterval": "10m", 461 "datasource": { 462 "uid": "$datasource" 463 }, 464 "datasourceErrors": {}, 465 "editorMode": "code", 466 "errors": {}, 467 "exemplar": false, 468 "expr": "sum(rate(mysql_global_status_queries{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 469 "format": "table", 470 "hide": false, 471 "instant": true, 472 "interval": "", 473 "intervalFactor": 1, 474 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 475 "metric": "", 476 "range": false, 477 "refId": "B", 478 "step": 300 479 }, 480 { 481 "calculatedInterval": "10m", 482 "datasource": { 483 "uid": "$datasource" 484 }, 485 "datasourceErrors": {}, 486 "editorMode": "code", 487 "errors": {}, 488 "exemplar": false, 489 "expr": "sum(mysql_global_variables_innodb_buffer_pool_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 490 "format": "table", 491 "hide": false, 492 "instant": true, 493 "interval": "", 494 "intervalFactor": 1, 495 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 496 "metric": "", 497 "range": false, 498 "refId": "C", 499 "step": 300 500 } 501 ], 502 "title": "Clusters && Instances", 503 "transformations": [ 504 { 505 "id": "joinByField", 506 "options": { 507 "byField": "pod", 508 "mode": "outer" 509 } 510 }, 511 { 512 "id": "organize", 513 "options": { 514 "excludeByName": { 515 "Time 1": true, 516 "Time 2": true, 517 "Time 3": true, 518 "app_kubernetes_io_instance 2": true, 519 "app_kubernetes_io_instance 3": true, 520 "namespace 2": true, 521 "namespace 3": true 522 }, 523 "indexByName": { 524 "Time 1": 3, 525 "Time 2": 5, 526 "Time 3": 9, 527 "Value #A": 4, 528 "Value #B": 8, 529 "Value #C": 12, 530 "app_kubernetes_io_instance 1": 1, 531 "app_kubernetes_io_instance 2": 6, 532 "app_kubernetes_io_instance 3": 10, 533 "namespace 1": 0, 534 "namespace 2": 7, 535 "namespace 3": 11, 536 "pod": 2 537 }, 538 "renameByName": { 539 "Value #A": "uptime", 540 "Value #B": "current qps", 541 "Value #C": "innodb buffer size", 542 "app_kubernetes_io_instance 1": "cluster", 543 "namespace 1": "namespace", 544 "pod": "instance" 545 } 546 } 547 } 548 ], 549 "type": "table" 550 }, 551 { 552 "collapsed": false, 553 "datasource": { 554 "uid": "$datasource" 555 }, 556 "gridPos": { 557 "h": 1, 558 "w": 24, 559 "x": 0, 560 "y": 6 561 }, 562 "id": 383, 563 "panels": [], 564 "targets": [ 565 { 566 "datasource": { 567 "uid": "$datasource" 568 }, 569 "refId": "A" 570 } 571 ], 572 "title": "Connections", 573 "type": "row" 574 }, 575 { 576 "datasource": { 577 "type": "prometheus", 578 "uid": "$datasource" 579 }, 580 "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.", 581 "fieldConfig": { 582 "defaults": { 583 "color": { 584 "mode": "palette-classic" 585 }, 586 "custom": { 587 "axisCenteredZero": false, 588 "axisColorMode": "text", 589 "axisLabel": "", 590 "axisPlacement": "auto", 591 "barAlignment": 0, 592 "drawStyle": "line", 593 "fillOpacity": 20, 594 "gradientMode": "none", 595 "hideFrom": { 596 "legend": false, 597 "tooltip": false, 598 "viz": false 599 }, 600 "lineInterpolation": "linear", 601 "lineWidth": 2, 602 "pointSize": 5, 603 "scaleDistribution": { 604 "type": "linear" 605 }, 606 "showPoints": "never", 607 "spanNulls": false, 608 "stacking": { 609 "group": "A", 610 "mode": "none" 611 }, 612 "thresholdsStyle": { 613 "mode": "off" 614 } 615 }, 616 "links": [], 617 "mappings": [], 618 "min": 0, 619 "thresholds": { 620 "mode": "absolute", 621 "steps": [ 622 { 623 "color": "green", 624 "value": null 625 }, 626 { 627 "color": "red", 628 "value": 80 629 } 630 ] 631 }, 632 "unit": "short" 633 }, 634 "overrides": [ 635 { 636 "matcher": { 637 "id": "byName", 638 "options": "Max Connections" 639 }, 640 "properties": [ 641 { 642 "id": "custom.fillOpacity", 643 "value": 0 644 } 645 ] 646 } 647 ] 648 }, 649 "gridPos": { 650 "h": 7, 651 "w": 8, 652 "x": 0, 653 "y": 7 654 }, 655 "id": 92, 656 "links": [ 657 { 658 "targetBlank": true, 659 "title": "MySQL Server System Variables", 660 "url": "https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections" 661 } 662 ], 663 "options": { 664 "legend": { 665 "calcs": [ 666 "mean", 667 "lastNotNull", 668 "max", 669 "min" 670 ], 671 "displayMode": "table", 672 "placement": "bottom", 673 "showLegend": true 674 }, 675 "tooltip": { 676 "mode": "multi", 677 "sort": "none" 678 } 679 }, 680 "pluginVersion": "9.2.4", 681 "targets": [ 682 { 683 "calculatedInterval": "2m", 684 "datasource": { 685 "uid": "$datasource" 686 }, 687 "datasourceErrors": {}, 688 "editorMode": "code", 689 "errors": {}, 690 "expr": "sum(max_over_time(mysql_global_status_threads_connected{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__interval])) by (namespace,app_kubernetes_io_instance,pod)", 691 "format": "time_series", 692 "interval": "", 693 "intervalFactor": 1, 694 "legendFormat": "Connections | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 695 "metric": "", 696 "range": true, 697 "refId": "A", 698 "step": 20 699 }, 700 { 701 "calculatedInterval": "2m", 702 "datasource": { 703 "uid": "$datasource" 704 }, 705 "datasourceErrors": {}, 706 "errors": {}, 707 "expr": "sum(mysql_global_status_max_used_connections{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 708 "format": "time_series", 709 "interval": "", 710 "intervalFactor": 1, 711 "legendFormat": "Max Used Connections | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 712 "metric": "", 713 "refId": "C", 714 "step": 20, 715 "target": "" 716 }, 717 { 718 "calculatedInterval": "2m", 719 "datasource": { 720 "uid": "$datasource" 721 }, 722 "datasourceErrors": {}, 723 "errors": {}, 724 "expr": "sum(mysql_global_variables_max_connections{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 725 "format": "time_series", 726 "interval": "", 727 "intervalFactor": 1, 728 "legendFormat": "Max Connections | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 729 "metric": "", 730 "refId": "B", 731 "step": 20, 732 "target": "" 733 } 734 ], 735 "title": "MySQL Connections", 736 "type": "timeseries" 737 }, 738 { 739 "datasource": { 740 "type": "prometheus", 741 "uid": "$datasource" 742 }, 743 "description": "**MySQL Active Threads**\n\nThreads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.", 744 "fieldConfig": { 745 "defaults": { 746 "color": { 747 "mode": "palette-classic" 748 }, 749 "custom": { 750 "axisCenteredZero": false, 751 "axisColorMode": "text", 752 "axisLabel": "Threads", 753 "axisPlacement": "auto", 754 "barAlignment": 0, 755 "drawStyle": "line", 756 "fillOpacity": 20, 757 "gradientMode": "none", 758 "hideFrom": { 759 "legend": false, 760 "tooltip": false, 761 "viz": false 762 }, 763 "lineInterpolation": "linear", 764 "lineWidth": 2, 765 "pointSize": 5, 766 "scaleDistribution": { 767 "type": "linear" 768 }, 769 "showPoints": "never", 770 "spanNulls": false, 771 "stacking": { 772 "group": "A", 773 "mode": "none" 774 }, 775 "thresholdsStyle": { 776 "mode": "off" 777 } 778 }, 779 "links": [], 780 "mappings": [], 781 "min": 0, 782 "thresholds": { 783 "mode": "absolute", 784 "steps": [ 785 { 786 "color": "green", 787 "value": null 788 }, 789 { 790 "color": "red", 791 "value": 80 792 } 793 ] 794 }, 795 "unit": "short" 796 }, 797 "overrides": [ 798 { 799 "matcher": { 800 "id": "byName", 801 "options": "Peak Threads Running" 802 }, 803 "properties": [ 804 { 805 "id": "color", 806 "value": { 807 "fixedColor": "#E24D42", 808 "mode": "fixed" 809 } 810 }, 811 { 812 "id": "custom.lineWidth", 813 "value": 0 814 }, 815 { 816 "id": "custom.pointSize", 817 "value": 4 818 }, 819 { 820 "id": "custom.showPoints", 821 "value": "always" 822 } 823 ] 824 }, 825 { 826 "matcher": { 827 "id": "byName", 828 "options": "Peak Threads Connected" 829 }, 830 "properties": [ 831 { 832 "id": "color", 833 "value": { 834 "fixedColor": "#1F78C1", 835 "mode": "fixed" 836 } 837 } 838 ] 839 }, 840 { 841 "matcher": { 842 "id": "byName", 843 "options": "Avg Threads Running" 844 }, 845 "properties": [ 846 { 847 "id": "color", 848 "value": { 849 "fixedColor": "#EAB839", 850 "mode": "fixed" 851 } 852 } 853 ] 854 } 855 ] 856 }, 857 "gridPos": { 858 "h": 7, 859 "w": 8, 860 "x": 8, 861 "y": 7 862 }, 863 "id": 10, 864 "links": [], 865 "options": { 866 "legend": { 867 "calcs": [ 868 "mean", 869 "lastNotNull", 870 "max", 871 "min" 872 ], 873 "displayMode": "table", 874 "placement": "bottom", 875 "showLegend": true 876 }, 877 "tooltip": { 878 "mode": "multi", 879 "sort": "none" 880 } 881 }, 882 "pluginVersion": "9.2.4", 883 "targets": [ 884 { 885 "calculatedInterval": "2m", 886 "datasource": { 887 "uid": "$datasource" 888 }, 889 "datasourceErrors": {}, 890 "editorMode": "code", 891 "errors": {}, 892 "expr": "sum(max_over_time(mysql_global_status_threads_connected{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__interval])) by (namespace,app_kubernetes_io_instance,pod)", 893 "format": "time_series", 894 "hide": false, 895 "interval": "", 896 "intervalFactor": 1, 897 "legendFormat": "Peak Threads Connected | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 898 "metric": "", 899 "range": true, 900 "refId": "A", 901 "step": 20 902 }, 903 { 904 "calculatedInterval": "2m", 905 "datasource": { 906 "uid": "$datasource" 907 }, 908 "datasourceErrors": {}, 909 "editorMode": "code", 910 "errors": {}, 911 "expr": "sum(max_over_time(mysql_global_status_threads_running{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__interval])) by (namespace,app_kubernetes_io_instance,pod)", 912 "format": "time_series", 913 "interval": "", 914 "intervalFactor": 1, 915 "legendFormat": "Peak Threads Running | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 916 "metric": "", 917 "range": true, 918 "refId": "B", 919 "step": 20 920 }, 921 { 922 "datasource": { 923 "uid": "$datasource" 924 }, 925 "editorMode": "code", 926 "expr": "sum(avg_over_time(mysql_global_status_threads_running{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__interval])) by (namespace,app_kubernetes_io_instance,pod)", 927 "format": "time_series", 928 "interval": "", 929 "intervalFactor": 1, 930 "legendFormat": "Avg Threads Running | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 931 "range": true, 932 "refId": "C", 933 "step": 20 934 } 935 ], 936 "title": "MySQL Client Thread Activity", 937 "type": "timeseries" 938 }, 939 { 940 "datasource": { 941 "type": "prometheus", 942 "uid": "$datasource" 943 }, 944 "description": "**MySQL Thread Cache**\n\nThe thread_cache_size variable sets how many threads the server should cache to reuse. When a client disconnects, the client's threads are put in the cache if the cache is not full. It is autosized in MySQL 5.6.8 and above (capped to 100). Requests for threads are satisfied by reusing threads taken from the cache if possible, and only when the cache is empty is a new thread created.\n\n* *Threads_created*: The number of threads created to handle connections.\n* *Threads_cached*: The number of threads in the thread cache.", 945 "fieldConfig": { 946 "defaults": { 947 "color": { 948 "mode": "palette-classic" 949 }, 950 "custom": { 951 "axisCenteredZero": false, 952 "axisColorMode": "text", 953 "axisLabel": "", 954 "axisPlacement": "auto", 955 "barAlignment": 0, 956 "drawStyle": "line", 957 "fillOpacity": 20, 958 "gradientMode": "none", 959 "hideFrom": { 960 "legend": false, 961 "tooltip": false, 962 "viz": false 963 }, 964 "lineInterpolation": "linear", 965 "lineWidth": 2, 966 "pointSize": 5, 967 "scaleDistribution": { 968 "type": "linear" 969 }, 970 "showPoints": "never", 971 "spanNulls": false, 972 "stacking": { 973 "group": "A", 974 "mode": "none" 975 }, 976 "thresholdsStyle": { 977 "mode": "off" 978 } 979 }, 980 "links": [], 981 "mappings": [], 982 "min": 0, 983 "thresholds": { 984 "mode": "absolute", 985 "steps": [ 986 { 987 "color": "green", 988 "value": null 989 }, 990 { 991 "color": "red", 992 "value": 80 993 } 994 ] 995 }, 996 "unit": "short" 997 }, 998 "overrides": [ 999 { 1000 "matcher": { 1001 "id": "byName", 1002 "options": "Threads Created" 1003 }, 1004 "properties": [ 1005 { 1006 "id": "custom.fillOpacity", 1007 "value": 0 1008 } 1009 ] 1010 } 1011 ] 1012 }, 1013 "gridPos": { 1014 "h": 7, 1015 "w": 8, 1016 "x": 16, 1017 "y": 7 1018 }, 1019 "id": 11, 1020 "links": [ 1021 { 1022 "title": "Tuning information", 1023 "url": "https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_thread_cache_size" 1024 } 1025 ], 1026 "options": { 1027 "legend": { 1028 "calcs": [ 1029 "mean", 1030 "lastNotNull", 1031 "max", 1032 "min" 1033 ], 1034 "displayMode": "table", 1035 "placement": "bottom", 1036 "showLegend": true 1037 }, 1038 "tooltip": { 1039 "mode": "multi", 1040 "sort": "none" 1041 } 1042 }, 1043 "pluginVersion": "9.2.4", 1044 "targets": [ 1045 { 1046 "calculatedInterval": "2m", 1047 "datasource": { 1048 "uid": "$datasource" 1049 }, 1050 "datasourceErrors": {}, 1051 "errors": {}, 1052 "expr": "sum(mysql_global_variables_thread_cache_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 1053 "format": "time_series", 1054 "interval": "", 1055 "intervalFactor": 1, 1056 "legendFormat": "Thread Cache Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1057 "metric": "", 1058 "refId": "B", 1059 "step": 20 1060 }, 1061 { 1062 "calculatedInterval": "2m", 1063 "datasource": { 1064 "uid": "$datasource" 1065 }, 1066 "datasourceErrors": {}, 1067 "errors": {}, 1068 "expr": "sum(mysql_global_status_threads_cached{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 1069 "format": "time_series", 1070 "interval": "", 1071 "intervalFactor": 1, 1072 "legendFormat": "Threads Cached | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1073 "metric": "", 1074 "refId": "C", 1075 "step": 20 1076 }, 1077 { 1078 "calculatedInterval": "2m", 1079 "datasource": { 1080 "uid": "$datasource" 1081 }, 1082 "datasourceErrors": {}, 1083 "editorMode": "code", 1084 "errors": {}, 1085 "expr": "sum(rate(mysql_global_status_threads_created{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1086 "format": "time_series", 1087 "interval": "", 1088 "intervalFactor": 1, 1089 "legendFormat": "Threads Created | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1090 "metric": "", 1091 "range": true, 1092 "refId": "A", 1093 "step": 20 1094 } 1095 ], 1096 "title": "MySQL Thread Cache", 1097 "type": "timeseries" 1098 }, 1099 { 1100 "datasource": { 1101 "uid": "$datasource" 1102 }, 1103 "description": "**Aborted Connections**\n\nWhen a given host connects to MySQL and the connection is interrupted in the middle (for example due to bad credentials), MySQL keeps that info in a system table (since 5.6 this table is exposed in performance_schema).\n\nIf the amount of failed requests without a successful connection reaches the value of max_connect_errors, mysqld assumes that something is wrong and blocks the host from further connection.\n\nTo allow connections from that host again, you need to issue the ``FLUSH HOSTS`` statement.", 1104 "fieldConfig": { 1105 "defaults": { 1106 "color": { 1107 "mode": "palette-classic" 1108 }, 1109 "custom": { 1110 "axisCenteredZero": false, 1111 "axisColorMode": "text", 1112 "axisLabel": "", 1113 "axisPlacement": "auto", 1114 "barAlignment": 0, 1115 "drawStyle": "line", 1116 "fillOpacity": 20, 1117 "gradientMode": "none", 1118 "hideFrom": { 1119 "legend": false, 1120 "tooltip": false, 1121 "viz": false 1122 }, 1123 "lineInterpolation": "linear", 1124 "lineWidth": 2, 1125 "pointSize": 5, 1126 "scaleDistribution": { 1127 "type": "linear" 1128 }, 1129 "showPoints": "never", 1130 "spanNulls": false, 1131 "stacking": { 1132 "group": "A", 1133 "mode": "none" 1134 }, 1135 "thresholdsStyle": { 1136 "mode": "off" 1137 } 1138 }, 1139 "links": [], 1140 "mappings": [], 1141 "min": 0, 1142 "thresholds": { 1143 "mode": "absolute", 1144 "steps": [ 1145 { 1146 "color": "green", 1147 "value": null 1148 }, 1149 { 1150 "color": "red", 1151 "value": 80 1152 } 1153 ] 1154 }, 1155 "unit": "short" 1156 }, 1157 "overrides": [] 1158 }, 1159 "gridPos": { 1160 "h": 7, 1161 "w": 8, 1162 "x": 0, 1163 "y": 14 1164 }, 1165 "id": 47, 1166 "links": [], 1167 "options": { 1168 "legend": { 1169 "calcs": [ 1170 "mean", 1171 "lastNotNull", 1172 "max", 1173 "min" 1174 ], 1175 "displayMode": "table", 1176 "placement": "bottom", 1177 "showLegend": true 1178 }, 1179 "tooltip": { 1180 "mode": "multi", 1181 "sort": "none" 1182 } 1183 }, 1184 "pluginVersion": "9.2.4", 1185 "targets": [ 1186 { 1187 "calculatedInterval": "2m", 1188 "datasource": { 1189 "uid": "$datasource" 1190 }, 1191 "datasourceErrors": {}, 1192 "errors": {}, 1193 "expr": "sum(rate(mysql_global_status_aborted_connects{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1194 "format": "time_series", 1195 "interval": "", 1196 "intervalFactor": 1, 1197 "legendFormat": "Aborted Connects (attempts) | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1198 "metric": "", 1199 "refId": "A", 1200 "step": 20 1201 }, 1202 { 1203 "calculatedInterval": "2m", 1204 "datasource": { 1205 "uid": "$datasource" 1206 }, 1207 "datasourceErrors": {}, 1208 "errors": {}, 1209 "expr": "sum(rate(mysql_global_status_aborted_clients{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1210 "format": "time_series", 1211 "interval": "", 1212 "intervalFactor": 1, 1213 "legendFormat": "Aborted Clients (timeout) | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1214 "metric": "", 1215 "refId": "B", 1216 "step": 20, 1217 "target": "" 1218 } 1219 ], 1220 "title": "MySQL Aborted Connections", 1221 "type": "timeseries" 1222 }, 1223 { 1224 "collapsed": false, 1225 "datasource": { 1226 "uid": "$datasource" 1227 }, 1228 "gridPos": { 1229 "h": 1, 1230 "w": 24, 1231 "x": 0, 1232 "y": 21 1233 }, 1234 "id": 384, 1235 "panels": [], 1236 "targets": [ 1237 { 1238 "datasource": { 1239 "uid": "$datasource" 1240 }, 1241 "refId": "A" 1242 } 1243 ], 1244 "title": "Queries", 1245 "type": "row" 1246 }, 1247 { 1248 "datasource": { 1249 "uid": "$datasource" 1250 }, 1251 "description": "**MySQL Questions**\n\nThe number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries used in the QPS calculation. \n\nThis variable does not count the following commands:\n* ``COM_PING``\n* ``COM_STATISTICS``\n* ``COM_STMT_PREPARE``\n* ``COM_STMT_CLOSE``\n* ``COM_STMT_RESET``", 1252 "fieldConfig": { 1253 "defaults": { 1254 "color": { 1255 "mode": "palette-classic" 1256 }, 1257 "custom": { 1258 "axisCenteredZero": false, 1259 "axisColorMode": "text", 1260 "axisLabel": "", 1261 "axisPlacement": "auto", 1262 "barAlignment": 0, 1263 "drawStyle": "line", 1264 "fillOpacity": 20, 1265 "gradientMode": "none", 1266 "hideFrom": { 1267 "legend": false, 1268 "tooltip": false, 1269 "viz": false 1270 }, 1271 "lineInterpolation": "linear", 1272 "lineWidth": 2, 1273 "pointSize": 5, 1274 "scaleDistribution": { 1275 "type": "linear" 1276 }, 1277 "showPoints": "never", 1278 "spanNulls": false, 1279 "stacking": { 1280 "group": "A", 1281 "mode": "none" 1282 }, 1283 "thresholdsStyle": { 1284 "mode": "off" 1285 } 1286 }, 1287 "links": [], 1288 "mappings": [], 1289 "min": 0, 1290 "thresholds": { 1291 "mode": "absolute", 1292 "steps": [ 1293 { 1294 "color": "green", 1295 "value": null 1296 }, 1297 { 1298 "color": "red", 1299 "value": 80 1300 } 1301 ] 1302 }, 1303 "unit": "short" 1304 }, 1305 "overrides": [] 1306 }, 1307 "gridPos": { 1308 "h": 7, 1309 "w": 8, 1310 "x": 0, 1311 "y": 22 1312 }, 1313 "id": 53, 1314 "links": [ 1315 { 1316 "targetBlank": true, 1317 "title": "MySQL Queries and Questions", 1318 "url": "https://www.percona.com/blog/2014/05/29/how-mysql-queries-and-questions-are-measured/" 1319 } 1320 ], 1321 "options": { 1322 "legend": { 1323 "calcs": [ 1324 "mean", 1325 "lastNotNull", 1326 "max", 1327 "min" 1328 ], 1329 "displayMode": "table", 1330 "placement": "bottom", 1331 "showLegend": true 1332 }, 1333 "tooltip": { 1334 "mode": "multi", 1335 "sort": "none" 1336 } 1337 }, 1338 "pluginVersion": "9.2.4", 1339 "targets": [ 1340 { 1341 "calculatedInterval": "2m", 1342 "datasource": { 1343 "uid": "$datasource" 1344 }, 1345 "datasourceErrors": {}, 1346 "errors": {}, 1347 "expr": "sum(rate(mysql_global_status_questions{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1348 "format": "time_series", 1349 "interval": "", 1350 "intervalFactor": 1, 1351 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1352 "metric": "", 1353 "refId": "A", 1354 "step": 20 1355 } 1356 ], 1357 "title": "MySQL Questions", 1358 "type": "timeseries" 1359 }, 1360 { 1361 "datasource": { 1362 "uid": "$datasource" 1363 }, 1364 "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.", 1365 "fieldConfig": { 1366 "defaults": { 1367 "color": { 1368 "mode": "palette-classic" 1369 }, 1370 "custom": { 1371 "axisCenteredZero": false, 1372 "axisColorMode": "text", 1373 "axisLabel": "", 1374 "axisPlacement": "auto", 1375 "barAlignment": 0, 1376 "drawStyle": "line", 1377 "fillOpacity": 20, 1378 "gradientMode": "none", 1379 "hideFrom": { 1380 "legend": false, 1381 "tooltip": false, 1382 "viz": false 1383 }, 1384 "lineInterpolation": "linear", 1385 "lineWidth": 2, 1386 "pointSize": 5, 1387 "scaleDistribution": { 1388 "type": "linear" 1389 }, 1390 "showPoints": "never", 1391 "spanNulls": false, 1392 "stacking": { 1393 "group": "A", 1394 "mode": "none" 1395 }, 1396 "thresholdsStyle": { 1397 "mode": "off" 1398 } 1399 }, 1400 "links": [], 1401 "mappings": [], 1402 "min": 0, 1403 "thresholds": { 1404 "mode": "absolute", 1405 "steps": [ 1406 { 1407 "color": "green", 1408 "value": null 1409 }, 1410 { 1411 "color": "red", 1412 "value": 80 1413 } 1414 ] 1415 }, 1416 "unit": "short" 1417 }, 1418 "overrides": [] 1419 }, 1420 "gridPos": { 1421 "h": 7, 1422 "w": 8, 1423 "x": 8, 1424 "y": 22 1425 }, 1426 "id": 48, 1427 "links": [], 1428 "options": { 1429 "legend": { 1430 "calcs": [ 1431 "mean", 1432 "lastNotNull", 1433 "max", 1434 "min" 1435 ], 1436 "displayMode": "table", 1437 "placement": "bottom", 1438 "showLegend": true 1439 }, 1440 "tooltip": { 1441 "mode": "multi", 1442 "sort": "none" 1443 } 1444 }, 1445 "pluginVersion": "9.2.4", 1446 "targets": [ 1447 { 1448 "calculatedInterval": "2m", 1449 "datasource": { 1450 "uid": "$datasource" 1451 }, 1452 "datasourceErrors": {}, 1453 "errors": {}, 1454 "expr": "sum(rate(mysql_global_status_slow_queries{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1455 "format": "time_series", 1456 "interval": "", 1457 "intervalFactor": 1, 1458 "legendFormat": "Slow Queries | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1459 "metric": "", 1460 "refId": "A", 1461 "step": 20 1462 } 1463 ], 1464 "title": "MySQL Slow Queries", 1465 "type": "timeseries" 1466 }, 1467 { 1468 "datasource": { 1469 "uid": "$datasource" 1470 }, 1471 "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.", 1472 "fieldConfig": { 1473 "defaults": { 1474 "color": { 1475 "mode": "palette-classic" 1476 }, 1477 "custom": { 1478 "axisCenteredZero": false, 1479 "axisColorMode": "text", 1480 "axisLabel": "", 1481 "axisPlacement": "auto", 1482 "barAlignment": 0, 1483 "drawStyle": "line", 1484 "fillOpacity": 20, 1485 "gradientMode": "none", 1486 "hideFrom": { 1487 "legend": false, 1488 "tooltip": false, 1489 "viz": false 1490 }, 1491 "lineInterpolation": "linear", 1492 "lineWidth": 2, 1493 "pointSize": 5, 1494 "scaleDistribution": { 1495 "type": "linear" 1496 }, 1497 "showPoints": "never", 1498 "spanNulls": false, 1499 "stacking": { 1500 "group": "A", 1501 "mode": "none" 1502 }, 1503 "thresholdsStyle": { 1504 "mode": "off" 1505 } 1506 }, 1507 "links": [], 1508 "mappings": [], 1509 "min": 0, 1510 "thresholds": { 1511 "mode": "absolute", 1512 "steps": [ 1513 { 1514 "color": "green", 1515 "value": null 1516 }, 1517 { 1518 "color": "red", 1519 "value": 80 1520 } 1521 ] 1522 }, 1523 "unit": "short" 1524 }, 1525 "overrides": [] 1526 }, 1527 "gridPos": { 1528 "h": 7, 1529 "w": 8, 1530 "x": 16, 1531 "y": 22 1532 }, 1533 "id": 311, 1534 "links": [], 1535 "options": { 1536 "legend": { 1537 "calcs": [ 1538 "mean", 1539 "lastNotNull", 1540 "max", 1541 "min" 1542 ], 1543 "displayMode": "table", 1544 "placement": "bottom", 1545 "showLegend": true 1546 }, 1547 "tooltip": { 1548 "mode": "multi", 1549 "sort": "none" 1550 } 1551 }, 1552 "pluginVersion": "9.2.4", 1553 "targets": [ 1554 { 1555 "calculatedInterval": "2m", 1556 "datasource": { 1557 "uid": "$datasource" 1558 }, 1559 "datasourceErrors": {}, 1560 "errors": {}, 1561 "expr": "sum(rate(mysql_global_status_select_full_join{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1562 "format": "time_series", 1563 "interval": "", 1564 "intervalFactor": 1, 1565 "legendFormat": "Select Full Join | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1566 "metric": "", 1567 "refId": "A", 1568 "step": 20 1569 }, 1570 { 1571 "calculatedInterval": "2m", 1572 "datasource": { 1573 "uid": "$datasource" 1574 }, 1575 "datasourceErrors": {}, 1576 "errors": {}, 1577 "expr": "sum(rate(mysql_global_status_select_full_range_join{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1578 "format": "time_series", 1579 "interval": "", 1580 "intervalFactor": 1, 1581 "legendFormat": "Select Full Range Join | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1582 "metric": "", 1583 "refId": "B", 1584 "step": 20 1585 }, 1586 { 1587 "calculatedInterval": "2m", 1588 "datasource": { 1589 "uid": "$datasource" 1590 }, 1591 "datasourceErrors": {}, 1592 "errors": {}, 1593 "expr": "sum(rate(mysql_global_status_select_range{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1594 "format": "time_series", 1595 "interval": "", 1596 "intervalFactor": 1, 1597 "legendFormat": "Select Range | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1598 "metric": "", 1599 "refId": "C", 1600 "step": 20 1601 }, 1602 { 1603 "calculatedInterval": "2m", 1604 "datasource": { 1605 "uid": "$datasource" 1606 }, 1607 "datasourceErrors": {}, 1608 "errors": {}, 1609 "expr": "sum(rate(mysql_global_status_select_range_check{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1610 "format": "time_series", 1611 "interval": "", 1612 "intervalFactor": 1, 1613 "legendFormat": "Select Range Check | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1614 "metric": "", 1615 "refId": "D", 1616 "step": 20 1617 }, 1618 { 1619 "calculatedInterval": "2m", 1620 "datasource": { 1621 "uid": "$datasource" 1622 }, 1623 "datasourceErrors": {}, 1624 "errors": {}, 1625 "expr": "sum(rate(mysql_global_status_select_scan{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1626 "format": "time_series", 1627 "interval": "", 1628 "intervalFactor": 1, 1629 "legendFormat": "Select Scan | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1630 "metric": "", 1631 "refId": "E", 1632 "step": 20 1633 } 1634 ], 1635 "title": "MySQL Select Types", 1636 "type": "timeseries" 1637 }, 1638 { 1639 "datasource": { 1640 "uid": "$datasource" 1641 }, 1642 "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.", 1643 "fieldConfig": { 1644 "defaults": { 1645 "color": { 1646 "mode": "palette-classic" 1647 }, 1648 "custom": { 1649 "axisCenteredZero": false, 1650 "axisColorMode": "text", 1651 "axisLabel": "", 1652 "axisPlacement": "auto", 1653 "barAlignment": 0, 1654 "drawStyle": "line", 1655 "fillOpacity": 20, 1656 "gradientMode": "none", 1657 "hideFrom": { 1658 "legend": false, 1659 "tooltip": false, 1660 "viz": false 1661 }, 1662 "lineInterpolation": "linear", 1663 "lineWidth": 2, 1664 "pointSize": 5, 1665 "scaleDistribution": { 1666 "type": "linear" 1667 }, 1668 "showPoints": "never", 1669 "spanNulls": false, 1670 "stacking": { 1671 "group": "A", 1672 "mode": "none" 1673 }, 1674 "thresholdsStyle": { 1675 "mode": "off" 1676 } 1677 }, 1678 "links": [], 1679 "mappings": [], 1680 "min": 0, 1681 "thresholds": { 1682 "mode": "absolute", 1683 "steps": [ 1684 { 1685 "color": "green", 1686 "value": null 1687 }, 1688 { 1689 "color": "red", 1690 "value": 80 1691 } 1692 ] 1693 }, 1694 "unit": "short" 1695 }, 1696 "overrides": [] 1697 }, 1698 "gridPos": { 1699 "h": 7, 1700 "w": 8, 1701 "x": 0, 1702 "y": 29 1703 }, 1704 "id": 30, 1705 "links": [], 1706 "options": { 1707 "legend": { 1708 "calcs": [ 1709 "mean", 1710 "lastNotNull", 1711 "max", 1712 "min" 1713 ], 1714 "displayMode": "table", 1715 "placement": "bottom", 1716 "showLegend": true 1717 }, 1718 "tooltip": { 1719 "mode": "multi", 1720 "sort": "none" 1721 } 1722 }, 1723 "pluginVersion": "9.2.4", 1724 "targets": [ 1725 { 1726 "calculatedInterval": "2m", 1727 "datasource": { 1728 "uid": "$datasource" 1729 }, 1730 "datasourceErrors": {}, 1731 "errors": {}, 1732 "expr": "sum(rate(mysql_global_status_sort_rows{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1733 "format": "time_series", 1734 "interval": "", 1735 "intervalFactor": 1, 1736 "legendFormat": "Sort Rows | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1737 "metric": "", 1738 "refId": "A", 1739 "step": 20 1740 }, 1741 { 1742 "calculatedInterval": "2m", 1743 "datasource": { 1744 "uid": "$datasource" 1745 }, 1746 "datasourceErrors": {}, 1747 "errors": {}, 1748 "expr": "sum(rate(mysql_global_status_sort_range{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1749 "format": "time_series", 1750 "interval": "", 1751 "intervalFactor": 1, 1752 "legendFormat": "Sort Range | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1753 "metric": "", 1754 "refId": "B", 1755 "step": 20 1756 }, 1757 { 1758 "calculatedInterval": "2m", 1759 "datasource": { 1760 "uid": "$datasource" 1761 }, 1762 "datasourceErrors": {}, 1763 "errors": {}, 1764 "expr": "sum(rate(mysql_global_status_sort_merge_passes{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1765 "format": "time_series", 1766 "interval": "", 1767 "intervalFactor": 1, 1768 "legendFormat": "Sort Merge Passes | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1769 "metric": "", 1770 "refId": "C", 1771 "step": 20 1772 }, 1773 { 1774 "calculatedInterval": "2m", 1775 "datasource": { 1776 "uid": "$datasource" 1777 }, 1778 "datasourceErrors": {}, 1779 "errors": {}, 1780 "expr": "sum(rate(mysql_global_status_sort_scan{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1781 "format": "time_series", 1782 "interval": "", 1783 "intervalFactor": 1, 1784 "legendFormat": "Sort Scan | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1785 "metric": "", 1786 "refId": "D", 1787 "step": 20 1788 } 1789 ], 1790 "title": "MySQL Sort Rows", 1791 "type": "timeseries" 1792 }, 1793 { 1794 "datasource": { 1795 "uid": "$datasource" 1796 }, 1797 "fieldConfig": { 1798 "defaults": { 1799 "color": { 1800 "mode": "palette-classic" 1801 }, 1802 "custom": { 1803 "axisCenteredZero": false, 1804 "axisColorMode": "text", 1805 "axisLabel": "", 1806 "axisPlacement": "auto", 1807 "barAlignment": 0, 1808 "drawStyle": "line", 1809 "fillOpacity": 20, 1810 "gradientMode": "none", 1811 "hideFrom": { 1812 "legend": false, 1813 "tooltip": false, 1814 "viz": false 1815 }, 1816 "lineInterpolation": "linear", 1817 "lineWidth": 2, 1818 "pointSize": 5, 1819 "scaleDistribution": { 1820 "type": "linear" 1821 }, 1822 "showPoints": "never", 1823 "spanNulls": false, 1824 "stacking": { 1825 "group": "A", 1826 "mode": "none" 1827 }, 1828 "thresholdsStyle": { 1829 "mode": "off" 1830 } 1831 }, 1832 "links": [], 1833 "mappings": [], 1834 "min": 0, 1835 "thresholds": { 1836 "mode": "absolute", 1837 "steps": [ 1838 { 1839 "color": "green", 1840 "value": null 1841 }, 1842 { 1843 "color": "red", 1844 "value": 80 1845 } 1846 ] 1847 }, 1848 "unit": "short" 1849 }, 1850 "overrides": [] 1851 }, 1852 "gridPos": { 1853 "h": 7, 1854 "w": 8, 1855 "x": 8, 1856 "y": 29 1857 }, 1858 "id": 22, 1859 "links": [], 1860 "options": { 1861 "legend": { 1862 "calcs": [ 1863 "mean", 1864 "lastNotNull", 1865 "max", 1866 "min" 1867 ], 1868 "displayMode": "table", 1869 "placement": "bottom", 1870 "showLegend": true 1871 }, 1872 "tooltip": { 1873 "mode": "multi", 1874 "sort": "none" 1875 } 1876 }, 1877 "pluginVersion": "9.2.4", 1878 "targets": [ 1879 { 1880 "calculatedInterval": "2m", 1881 "datasource": { 1882 "uid": "$datasource" 1883 }, 1884 "datasourceErrors": {}, 1885 "errors": {}, 1886 "expr": "sum(rate(mysql_global_status_created_tmp_tables{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1887 "interval": "", 1888 "intervalFactor": 1, 1889 "legendFormat": "Created Tmp Tables | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1890 "metric": "", 1891 "refId": "A", 1892 "step": 20 1893 }, 1894 { 1895 "calculatedInterval": "2m", 1896 "datasource": { 1897 "uid": "$datasource" 1898 }, 1899 "datasourceErrors": {}, 1900 "errors": {}, 1901 "expr": "sum(rate(mysql_global_status_created_tmp_disk_tables{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1902 "interval": "", 1903 "intervalFactor": 1, 1904 "legendFormat": "Created Tmp Disk Tables | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1905 "metric": "", 1906 "refId": "B", 1907 "step": 20 1908 }, 1909 { 1910 "calculatedInterval": "2m", 1911 "datasource": { 1912 "uid": "$datasource" 1913 }, 1914 "datasourceErrors": {}, 1915 "errors": {}, 1916 "expr": "sum(rate(mysql_global_status_created_tmp_files{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 1917 "interval": "", 1918 "intervalFactor": 1, 1919 "legendFormat": "Created Tmp Files | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 1920 "metric": "", 1921 "refId": "C", 1922 "step": 20 1923 } 1924 ], 1925 "title": "MySQL Temporary Objects", 1926 "type": "timeseries" 1927 }, 1928 { 1929 "collapsed": true, 1930 "datasource": { 1931 "uid": "$datasource" 1932 }, 1933 "gridPos": { 1934 "h": 1, 1935 "w": 24, 1936 "x": 0, 1937 "y": 36 1938 }, 1939 "id": 390, 1940 "panels": [ 1941 { 1942 "datasource": { 1943 "type": "prometheus", 1944 "uid": "$datasource" 1945 }, 1946 "description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.", 1947 "fieldConfig": { 1948 "defaults": { 1949 "color": { 1950 "mode": "palette-classic" 1951 }, 1952 "custom": { 1953 "axisCenteredZero": false, 1954 "axisColorMode": "text", 1955 "axisLabel": "", 1956 "axisPlacement": "auto", 1957 "barAlignment": 0, 1958 "drawStyle": "line", 1959 "fillOpacity": 20, 1960 "gradientMode": "none", 1961 "hideFrom": { 1962 "legend": false, 1963 "tooltip": false, 1964 "viz": false 1965 }, 1966 "lineInterpolation": "linear", 1967 "lineWidth": 2, 1968 "pointSize": 5, 1969 "scaleDistribution": { 1970 "type": "linear" 1971 }, 1972 "showPoints": "never", 1973 "spanNulls": false, 1974 "stacking": { 1975 "group": "A", 1976 "mode": "none" 1977 }, 1978 "thresholdsStyle": { 1979 "mode": "off" 1980 } 1981 }, 1982 "links": [], 1983 "mappings": [], 1984 "min": 0, 1985 "thresholds": { 1986 "mode": "absolute", 1987 "steps": [ 1988 { 1989 "color": "green", 1990 "value": null 1991 }, 1992 { 1993 "color": "red", 1994 "value": 80 1995 } 1996 ] 1997 }, 1998 "unit": "short" 1999 }, 2000 "overrides": [] 2001 }, 2002 "gridPos": { 2003 "h": 7, 2004 "w": 24, 2005 "x": 0, 2006 "y": 37 2007 }, 2008 "id": 14, 2009 "links": [ 2010 { 2011 "title": "Server Status Variables (Com_xxx)", 2012 "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx" 2013 } 2014 ], 2015 "options": { 2016 "legend": { 2017 "calcs": [ 2018 "mean", 2019 "lastNotNull", 2020 "max", 2021 "min" 2022 ], 2023 "displayMode": "table", 2024 "placement": "right", 2025 "showLegend": true 2026 }, 2027 "tooltip": { 2028 "mode": "multi", 2029 "sort": "none" 2030 } 2031 }, 2032 "pluginVersion": "9.2.4", 2033 "targets": [ 2034 { 2035 "calculatedInterval": "2m", 2036 "datasource": { 2037 "uid": "$datasource" 2038 }, 2039 "datasourceErrors": {}, 2040 "editorMode": "code", 2041 "errors": {}, 2042 "expr": "topk(15, rate(mysql_global_status_commands_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])>0)", 2043 "format": "time_series", 2044 "hide": false, 2045 "interval": "", 2046 "intervalFactor": 1, 2047 "legendFormat": "Com_{{ command }} | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2048 "metric": "", 2049 "range": true, 2050 "refId": "B", 2051 "step": 20 2052 } 2053 ], 2054 "title": "Top Command Counters", 2055 "type": "timeseries" 2056 }, 2057 { 2058 "datasource": { 2059 "type": "prometheus", 2060 "uid": "$datasource" 2061 }, 2062 "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.", 2063 "fieldConfig": { 2064 "defaults": { 2065 "color": { 2066 "mode": "palette-classic" 2067 }, 2068 "custom": { 2069 "axisCenteredZero": false, 2070 "axisColorMode": "text", 2071 "axisLabel": "", 2072 "axisPlacement": "auto", 2073 "barAlignment": 0, 2074 "drawStyle": "line", 2075 "fillOpacity": 20, 2076 "gradientMode": "none", 2077 "hideFrom": { 2078 "legend": false, 2079 "tooltip": false, 2080 "viz": false 2081 }, 2082 "lineInterpolation": "linear", 2083 "lineWidth": 2, 2084 "pointSize": 5, 2085 "scaleDistribution": { 2086 "type": "linear" 2087 }, 2088 "showPoints": "never", 2089 "spanNulls": false, 2090 "stacking": { 2091 "group": "A", 2092 "mode": "none" 2093 }, 2094 "thresholdsStyle": { 2095 "mode": "off" 2096 } 2097 }, 2098 "links": [], 2099 "mappings": [], 2100 "min": 0, 2101 "thresholds": { 2102 "mode": "absolute", 2103 "steps": [ 2104 { 2105 "color": "green", 2106 "value": null 2107 }, 2108 { 2109 "color": "red", 2110 "value": 80 2111 } 2112 ] 2113 }, 2114 "unit": "short" 2115 }, 2116 "overrides": [] 2117 }, 2118 "gridPos": { 2119 "h": 7, 2120 "w": 24, 2121 "x": 0, 2122 "y": 44 2123 }, 2124 "id": 8, 2125 "links": [], 2126 "options": { 2127 "legend": { 2128 "calcs": [ 2129 "mean", 2130 "lastNotNull", 2131 "max", 2132 "min" 2133 ], 2134 "displayMode": "table", 2135 "placement": "right", 2136 "showLegend": true 2137 }, 2138 "tooltip": { 2139 "mode": "multi", 2140 "sort": "none" 2141 } 2142 }, 2143 "pluginVersion": "9.2.4", 2144 "targets": [ 2145 { 2146 "calculatedInterval": "2m", 2147 "datasource": { 2148 "uid": "$datasource" 2149 }, 2150 "datasourceErrors": {}, 2151 "editorMode": "code", 2152 "errors": {}, 2153 "expr": "sum(rate(mysql_global_status_handlers_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",handler!~\"commit|rollback|savepoint.*|prepare\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod,handler)", 2154 "format": "time_series", 2155 "interval": "", 2156 "intervalFactor": 1, 2157 "legendFormat": "{{ handler }} | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2158 "metric": "", 2159 "range": true, 2160 "refId": "J", 2161 "step": 20 2162 } 2163 ], 2164 "title": "MySQL Handlers", 2165 "type": "timeseries" 2166 }, 2167 { 2168 "datasource": { 2169 "type": "prometheus", 2170 "uid": "$datasource" 2171 }, 2172 "fieldConfig": { 2173 "defaults": { 2174 "color": { 2175 "mode": "palette-classic" 2176 }, 2177 "custom": { 2178 "axisCenteredZero": false, 2179 "axisColorMode": "text", 2180 "axisLabel": "", 2181 "axisPlacement": "auto", 2182 "barAlignment": 0, 2183 "drawStyle": "line", 2184 "fillOpacity": 20, 2185 "gradientMode": "none", 2186 "hideFrom": { 2187 "legend": false, 2188 "tooltip": false, 2189 "viz": false 2190 }, 2191 "lineInterpolation": "linear", 2192 "lineWidth": 2, 2193 "pointSize": 5, 2194 "scaleDistribution": { 2195 "type": "linear" 2196 }, 2197 "showPoints": "never", 2198 "spanNulls": false, 2199 "stacking": { 2200 "group": "A", 2201 "mode": "none" 2202 }, 2203 "thresholdsStyle": { 2204 "mode": "off" 2205 } 2206 }, 2207 "links": [], 2208 "mappings": [], 2209 "min": 0, 2210 "thresholds": { 2211 "mode": "absolute", 2212 "steps": [ 2213 { 2214 "color": "green", 2215 "value": null 2216 }, 2217 { 2218 "color": "red", 2219 "value": 80 2220 } 2221 ] 2222 }, 2223 "unit": "short" 2224 }, 2225 "overrides": [] 2226 }, 2227 "gridPos": { 2228 "h": 7, 2229 "w": 24, 2230 "x": 0, 2231 "y": 51 2232 }, 2233 "id": 28, 2234 "links": [], 2235 "options": { 2236 "legend": { 2237 "calcs": [ 2238 "mean", 2239 "lastNotNull", 2240 "max", 2241 "min" 2242 ], 2243 "displayMode": "table", 2244 "placement": "right", 2245 "showLegend": true 2246 }, 2247 "tooltip": { 2248 "mode": "multi", 2249 "sort": "none" 2250 } 2251 }, 2252 "pluginVersion": "9.2.4", 2253 "targets": [ 2254 { 2255 "calculatedInterval": "2m", 2256 "datasource": { 2257 "uid": "$datasource" 2258 }, 2259 "datasourceErrors": {}, 2260 "editorMode": "code", 2261 "errors": {}, 2262 "expr": "sum(rate(mysql_global_status_handlers_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",handler=~\"commit|rollback|savepoint.*|prepare\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod,handler)", 2263 "interval": "", 2264 "intervalFactor": 1, 2265 "legendFormat": "{{ handler }} | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2266 "metric": "", 2267 "range": true, 2268 "refId": "A", 2269 "step": 20 2270 } 2271 ], 2272 "title": "MySQL Transaction Handlers", 2273 "type": "timeseries" 2274 } 2275 ], 2276 "targets": [ 2277 { 2278 "datasource": { 2279 "uid": "$datasource" 2280 }, 2281 "refId": "A" 2282 } 2283 ], 2284 "title": "Command, Handlers, Processes", 2285 "type": "row" 2286 }, 2287 { 2288 "collapsed": true, 2289 "gridPos": { 2290 "h": 1, 2291 "w": 24, 2292 "x": 0, 2293 "y": 37 2294 }, 2295 "id": 405, 2296 "panels": [ 2297 { 2298 "datasource": { 2299 "type": "prometheus", 2300 "uid": "$datasource" 2301 }, 2302 "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.", 2303 "fieldConfig": { 2304 "defaults": { 2305 "color": { 2306 "mode": "palette-classic" 2307 }, 2308 "custom": { 2309 "axisCenteredZero": false, 2310 "axisColorMode": "text", 2311 "axisLabel": "", 2312 "axisPlacement": "auto", 2313 "barAlignment": 0, 2314 "drawStyle": "line", 2315 "fillOpacity": 60, 2316 "gradientMode": "none", 2317 "hideFrom": { 2318 "legend": false, 2319 "tooltip": false, 2320 "viz": false 2321 }, 2322 "lineInterpolation": "linear", 2323 "lineWidth": 2, 2324 "pointSize": 5, 2325 "scaleDistribution": { 2326 "type": "linear" 2327 }, 2328 "showPoints": "never", 2329 "spanNulls": false, 2330 "stacking": { 2331 "group": "A", 2332 "mode": "normal" 2333 }, 2334 "thresholdsStyle": { 2335 "mode": "off" 2336 } 2337 }, 2338 "links": [], 2339 "mappings": [], 2340 "min": 0, 2341 "thresholds": { 2342 "mode": "absolute", 2343 "steps": [ 2344 { 2345 "color": "green", 2346 "value": null 2347 }, 2348 { 2349 "color": "red", 2350 "value": 80 2351 } 2352 ] 2353 }, 2354 "unit": "Bps" 2355 }, 2356 "overrides": [] 2357 }, 2358 "gridPos": { 2359 "h": 8, 2360 "w": 24, 2361 "x": 0, 2362 "y": 38 2363 }, 2364 "id": 9, 2365 "links": [], 2366 "options": { 2367 "legend": { 2368 "calcs": [ 2369 "mean", 2370 "lastNotNull", 2371 "max", 2372 "min" 2373 ], 2374 "displayMode": "table", 2375 "placement": "right", 2376 "showLegend": true 2377 }, 2378 "tooltip": { 2379 "mode": "multi", 2380 "sort": "none" 2381 } 2382 }, 2383 "pluginVersion": "9.2.4", 2384 "targets": [ 2385 { 2386 "calculatedInterval": "2m", 2387 "datasource": { 2388 "uid": "$datasource" 2389 }, 2390 "datasourceErrors": {}, 2391 "editorMode": "code", 2392 "errors": {}, 2393 "expr": "sum(rate(mysql_global_status_bytes_received{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 2394 "format": "time_series", 2395 "interval": "", 2396 "intervalFactor": 1, 2397 "legendFormat": "Inbound | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2398 "metric": "", 2399 "range": true, 2400 "refId": "A", 2401 "step": 20 2402 }, 2403 { 2404 "calculatedInterval": "2m", 2405 "datasource": { 2406 "uid": "$datasource" 2407 }, 2408 "datasourceErrors": {}, 2409 "editorMode": "code", 2410 "errors": {}, 2411 "expr": "sum(rate(mysql_global_status_bytes_sent{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 2412 "format": "time_series", 2413 "interval": "", 2414 "intervalFactor": 1, 2415 "legendFormat": "Outbound | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2416 "metric": "", 2417 "range": true, 2418 "refId": "B", 2419 "step": 20 2420 } 2421 ], 2422 "title": "Network Traffic", 2423 "type": "timeseries" 2424 } 2425 ], 2426 "title": "Traffic", 2427 "type": "row" 2428 }, 2429 { 2430 "collapsed": true, 2431 "datasource": { 2432 "uid": "$datasource" 2433 }, 2434 "gridPos": { 2435 "h": 1, 2436 "w": 24, 2437 "x": 0, 2438 "y": 38 2439 }, 2440 "id": 388, 2441 "panels": [ 2442 { 2443 "datasource": { 2444 "type": "prometheus", 2445 "uid": "$datasource" 2446 }, 2447 "description": "", 2448 "fieldConfig": { 2449 "defaults": { 2450 "color": { 2451 "mode": "palette-classic" 2452 }, 2453 "custom": { 2454 "axisCenteredZero": false, 2455 "axisColorMode": "text", 2456 "axisLabel": "", 2457 "axisPlacement": "auto", 2458 "barAlignment": 0, 2459 "drawStyle": "line", 2460 "fillOpacity": 60, 2461 "gradientMode": "none", 2462 "hideFrom": { 2463 "legend": false, 2464 "tooltip": false, 2465 "viz": false 2466 }, 2467 "lineInterpolation": "linear", 2468 "lineWidth": 2, 2469 "pointSize": 5, 2470 "scaleDistribution": { 2471 "type": "linear" 2472 }, 2473 "showPoints": "never", 2474 "spanNulls": false, 2475 "stacking": { 2476 "group": "A", 2477 "mode": "normal" 2478 }, 2479 "thresholdsStyle": { 2480 "mode": "off" 2481 } 2482 }, 2483 "links": [], 2484 "mappings": [], 2485 "min": 0, 2486 "thresholds": { 2487 "mode": "absolute", 2488 "steps": [ 2489 { 2490 "color": "green", 2491 "value": null 2492 }, 2493 { 2494 "color": "red", 2495 "value": 80 2496 } 2497 ] 2498 }, 2499 "unit": "short" 2500 }, 2501 "overrides": [ 2502 { 2503 "matcher": { 2504 "id": "byName", 2505 "options": "System Memory" 2506 }, 2507 "properties": [ 2508 { 2509 "id": "custom.fillOpacity", 2510 "value": 0 2511 }, 2512 { 2513 "id": "custom.stacking", 2514 "value": { 2515 "group": false, 2516 "mode": "normal" 2517 } 2518 } 2519 ] 2520 } 2521 ] 2522 }, 2523 "gridPos": { 2524 "h": 8, 2525 "w": 8, 2526 "x": 0, 2527 "y": 39 2528 }, 2529 "id": 407, 2530 "links": [ 2531 { 2532 "title": "Detailed descriptions about metrics", 2533 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 2534 } 2535 ], 2536 "options": { 2537 "legend": { 2538 "calcs": [ 2539 "mean", 2540 "lastNotNull", 2541 "max", 2542 "min" 2543 ], 2544 "displayMode": "table", 2545 "placement": "bottom", 2546 "showLegend": true 2547 }, 2548 "tooltip": { 2549 "mode": "multi", 2550 "sort": "none" 2551 } 2552 }, 2553 "pluginVersion": "9.2.4", 2554 "targets": [ 2555 { 2556 "datasource": { 2557 "uid": "$datasource" 2558 }, 2559 "editorMode": "code", 2560 "expr": "sum(rate(mysql_global_status_innodb_buffer_pool_read_requests{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 2561 "format": "time_series", 2562 "interval": "", 2563 "intervalFactor": 1, 2564 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2565 "range": true, 2566 "refId": "D", 2567 "step": 20 2568 } 2569 ], 2570 "title": "Buffers Pool Read", 2571 "type": "timeseries" 2572 }, 2573 { 2574 "datasource": { 2575 "type": "prometheus", 2576 "uid": "$datasource" 2577 }, 2578 "description": "", 2579 "fieldConfig": { 2580 "defaults": { 2581 "color": { 2582 "mode": "palette-classic" 2583 }, 2584 "custom": { 2585 "axisCenteredZero": false, 2586 "axisColorMode": "text", 2587 "axisLabel": "", 2588 "axisPlacement": "auto", 2589 "barAlignment": 0, 2590 "drawStyle": "line", 2591 "fillOpacity": 60, 2592 "gradientMode": "none", 2593 "hideFrom": { 2594 "legend": false, 2595 "tooltip": false, 2596 "viz": false 2597 }, 2598 "lineInterpolation": "linear", 2599 "lineWidth": 2, 2600 "pointSize": 5, 2601 "scaleDistribution": { 2602 "type": "linear" 2603 }, 2604 "showPoints": "never", 2605 "spanNulls": false, 2606 "stacking": { 2607 "group": "A", 2608 "mode": "normal" 2609 }, 2610 "thresholdsStyle": { 2611 "mode": "off" 2612 } 2613 }, 2614 "links": [], 2615 "mappings": [], 2616 "min": 0, 2617 "thresholds": { 2618 "mode": "absolute", 2619 "steps": [ 2620 { 2621 "color": "green", 2622 "value": null 2623 }, 2624 { 2625 "color": "red", 2626 "value": 80 2627 } 2628 ] 2629 }, 2630 "unit": "short" 2631 }, 2632 "overrides": [ 2633 { 2634 "matcher": { 2635 "id": "byName", 2636 "options": "System Memory" 2637 }, 2638 "properties": [ 2639 { 2640 "id": "custom.fillOpacity", 2641 "value": 0 2642 }, 2643 { 2644 "id": "custom.stacking", 2645 "value": { 2646 "group": false, 2647 "mode": "normal" 2648 } 2649 } 2650 ] 2651 } 2652 ] 2653 }, 2654 "gridPos": { 2655 "h": 8, 2656 "w": 8, 2657 "x": 8, 2658 "y": 39 2659 }, 2660 "id": 408, 2661 "links": [ 2662 { 2663 "title": "Detailed descriptions about metrics", 2664 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 2665 } 2666 ], 2667 "options": { 2668 "legend": { 2669 "calcs": [ 2670 "mean", 2671 "lastNotNull", 2672 "max", 2673 "min" 2674 ], 2675 "displayMode": "table", 2676 "placement": "bottom", 2677 "showLegend": true 2678 }, 2679 "tooltip": { 2680 "mode": "multi", 2681 "sort": "none" 2682 } 2683 }, 2684 "pluginVersion": "9.2.4", 2685 "targets": [ 2686 { 2687 "datasource": { 2688 "uid": "$datasource" 2689 }, 2690 "editorMode": "code", 2691 "expr": "sum(rate(mysql_global_status_innodb_buffer_pool_reads{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 2692 "format": "time_series", 2693 "interval": "", 2694 "intervalFactor": 1, 2695 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2696 "range": true, 2697 "refId": "D", 2698 "step": 20 2699 } 2700 ], 2701 "title": "Disk Read", 2702 "type": "timeseries" 2703 }, 2704 { 2705 "datasource": { 2706 "type": "prometheus", 2707 "uid": "$datasource" 2708 }, 2709 "description": "", 2710 "fieldConfig": { 2711 "defaults": { 2712 "color": { 2713 "mode": "palette-classic" 2714 }, 2715 "custom": { 2716 "axisCenteredZero": false, 2717 "axisColorMode": "text", 2718 "axisLabel": "", 2719 "axisPlacement": "auto", 2720 "barAlignment": 0, 2721 "drawStyle": "line", 2722 "fillOpacity": 60, 2723 "gradientMode": "none", 2724 "hideFrom": { 2725 "legend": false, 2726 "tooltip": false, 2727 "viz": false 2728 }, 2729 "lineInterpolation": "linear", 2730 "lineWidth": 2, 2731 "pointSize": 5, 2732 "scaleDistribution": { 2733 "type": "linear" 2734 }, 2735 "showPoints": "never", 2736 "spanNulls": false, 2737 "stacking": { 2738 "group": "A", 2739 "mode": "normal" 2740 }, 2741 "thresholdsStyle": { 2742 "mode": "off" 2743 } 2744 }, 2745 "links": [], 2746 "mappings": [], 2747 "min": 0, 2748 "thresholds": { 2749 "mode": "absolute", 2750 "steps": [ 2751 { 2752 "color": "green", 2753 "value": null 2754 }, 2755 { 2756 "color": "red", 2757 "value": 80 2758 } 2759 ] 2760 }, 2761 "unit": "short" 2762 }, 2763 "overrides": [ 2764 { 2765 "matcher": { 2766 "id": "byName", 2767 "options": "System Memory" 2768 }, 2769 "properties": [ 2770 { 2771 "id": "custom.fillOpacity", 2772 "value": 0 2773 }, 2774 { 2775 "id": "custom.stacking", 2776 "value": { 2777 "group": false, 2778 "mode": "normal" 2779 } 2780 } 2781 ] 2782 } 2783 ] 2784 }, 2785 "gridPos": { 2786 "h": 8, 2787 "w": 8, 2788 "x": 16, 2789 "y": 39 2790 }, 2791 "id": 409, 2792 "links": [ 2793 { 2794 "title": "Detailed descriptions about metrics", 2795 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 2796 } 2797 ], 2798 "options": { 2799 "legend": { 2800 "calcs": [ 2801 "mean", 2802 "lastNotNull", 2803 "max", 2804 "min" 2805 ], 2806 "displayMode": "table", 2807 "placement": "bottom", 2808 "showLegend": true 2809 }, 2810 "tooltip": { 2811 "mode": "multi", 2812 "sort": "none" 2813 } 2814 }, 2815 "pluginVersion": "9.2.4", 2816 "targets": [ 2817 { 2818 "datasource": { 2819 "uid": "$datasource" 2820 }, 2821 "editorMode": "code", 2822 "expr": "sum(rate(mysql_global_status_innodb_buffer_pool_write_requests{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 2823 "format": "time_series", 2824 "interval": "", 2825 "intervalFactor": 1, 2826 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2827 "range": true, 2828 "refId": "D", 2829 "step": 20 2830 } 2831 ], 2832 "title": "Buffers Pool Write", 2833 "type": "timeseries" 2834 }, 2835 { 2836 "datasource": { 2837 "type": "prometheus", 2838 "uid": "$datasource" 2839 }, 2840 "description": "", 2841 "fieldConfig": { 2842 "defaults": { 2843 "color": { 2844 "mode": "palette-classic" 2845 }, 2846 "custom": { 2847 "axisCenteredZero": false, 2848 "axisColorMode": "text", 2849 "axisLabel": "", 2850 "axisPlacement": "auto", 2851 "barAlignment": 0, 2852 "drawStyle": "line", 2853 "fillOpacity": 60, 2854 "gradientMode": "none", 2855 "hideFrom": { 2856 "legend": false, 2857 "tooltip": false, 2858 "viz": false 2859 }, 2860 "lineInterpolation": "linear", 2861 "lineWidth": 2, 2862 "pointSize": 5, 2863 "scaleDistribution": { 2864 "type": "linear" 2865 }, 2866 "showPoints": "never", 2867 "spanNulls": false, 2868 "stacking": { 2869 "group": "A", 2870 "mode": "normal" 2871 }, 2872 "thresholdsStyle": { 2873 "mode": "off" 2874 } 2875 }, 2876 "links": [], 2877 "mappings": [], 2878 "min": 0, 2879 "thresholds": { 2880 "mode": "absolute", 2881 "steps": [ 2882 { 2883 "color": "green", 2884 "value": null 2885 }, 2886 { 2887 "color": "red", 2888 "value": 80 2889 } 2890 ] 2891 }, 2892 "unit": "bytes" 2893 }, 2894 "overrides": [ 2895 { 2896 "matcher": { 2897 "id": "byName", 2898 "options": "System Memory" 2899 }, 2900 "properties": [ 2901 { 2902 "id": "custom.fillOpacity", 2903 "value": 0 2904 }, 2905 { 2906 "id": "custom.stacking", 2907 "value": { 2908 "group": false, 2909 "mode": "normal" 2910 } 2911 } 2912 ] 2913 } 2914 ] 2915 }, 2916 "gridPos": { 2917 "h": 8, 2918 "w": 8, 2919 "x": 0, 2920 "y": 47 2921 }, 2922 "id": 50, 2923 "links": [ 2924 { 2925 "title": "Detailed descriptions about metrics", 2926 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 2927 } 2928 ], 2929 "options": { 2930 "legend": { 2931 "calcs": [ 2932 "mean", 2933 "lastNotNull", 2934 "max", 2935 "min" 2936 ], 2937 "displayMode": "table", 2938 "placement": "bottom", 2939 "showLegend": true 2940 }, 2941 "tooltip": { 2942 "mode": "multi", 2943 "sort": "none" 2944 } 2945 }, 2946 "pluginVersion": "9.2.4", 2947 "targets": [ 2948 { 2949 "datasource": { 2950 "uid": "$datasource" 2951 }, 2952 "editorMode": "code", 2953 "expr": "mysql_global_status_innodb_page_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} * on (namespace,app_kubernetes_io_instance,pod) mysql_global_status_buffer_pool_pages{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\", state=\"data\",job=\"$job\"}", 2954 "format": "time_series", 2955 "hide": false, 2956 "interval": "", 2957 "intervalFactor": 1, 2958 "legendFormat": "Data | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2959 "range": true, 2960 "refId": "A", 2961 "step": 20 2962 }, 2963 { 2964 "datasource": { 2965 "uid": "$datasource" 2966 }, 2967 "editorMode": "code", 2968 "expr": "mysql_global_status_innodb_page_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} * on (namespace,app_kubernetes_io_instance,pod) mysql_global_status_buffer_pool_pages{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\", state=\"free\",job=\"$job\"}", 2969 "format": "time_series", 2970 "hide": false, 2971 "interval": "", 2972 "intervalFactor": 1, 2973 "legendFormat": "Free | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2974 "range": true, 2975 "refId": "B", 2976 "step": 20 2977 }, 2978 { 2979 "datasource": { 2980 "uid": "$datasource" 2981 }, 2982 "editorMode": "code", 2983 "expr": "mysql_global_status_innodb_page_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} * on (namespace,app_kubernetes_io_instance,pod) mysql_global_status_buffer_pool_pages{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\", state=\"dirty\",job=\"$job\"}", 2984 "format": "time_series", 2985 "hide": false, 2986 "interval": "", 2987 "intervalFactor": 1, 2988 "legendFormat": "Dirty | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2989 "range": true, 2990 "refId": "C", 2991 "step": 20 2992 }, 2993 { 2994 "datasource": { 2995 "uid": "$datasource" 2996 }, 2997 "editorMode": "code", 2998 "expr": "mysql_global_status_innodb_page_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} * on (namespace,app_kubernetes_io_instance,pod) mysql_global_status_buffer_pool_pages{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\", state=\"misc\",job=\"$job\"}", 2999 "format": "time_series", 3000 "hide": false, 3001 "interval": "", 3002 "intervalFactor": 1, 3003 "legendFormat": "Misc | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3004 "range": true, 3005 "refId": "D", 3006 "step": 20 3007 }, 3008 { 3009 "datasource": { 3010 "uid": "$datasource" 3011 }, 3012 "editorMode": "code", 3013 "expr": "mysql_global_status_innodb_page_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} * on (namespace,app_kubernetes_io_instance,pod) mysql_global_status_buffer_pool_dirty_pages{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 3014 "format": "time_series", 3015 "hide": false, 3016 "interval": "", 3017 "intervalFactor": 1, 3018 "legendFormat": "Dirty | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3019 "range": true, 3020 "refId": "E", 3021 "step": 20 3022 } 3023 ], 3024 "title": "Buffer Pool Size", 3025 "type": "timeseries" 3026 }, 3027 { 3028 "datasource": { 3029 "type": "prometheus", 3030 "uid": "$datasource" 3031 }, 3032 "description": "", 3033 "fieldConfig": { 3034 "defaults": { 3035 "color": { 3036 "mode": "palette-classic" 3037 }, 3038 "custom": { 3039 "axisCenteredZero": false, 3040 "axisColorMode": "text", 3041 "axisLabel": "", 3042 "axisPlacement": "auto", 3043 "barAlignment": 0, 3044 "drawStyle": "line", 3045 "fillOpacity": 60, 3046 "gradientMode": "none", 3047 "hideFrom": { 3048 "legend": false, 3049 "tooltip": false, 3050 "viz": false 3051 }, 3052 "lineInterpolation": "linear", 3053 "lineWidth": 2, 3054 "pointSize": 5, 3055 "scaleDistribution": { 3056 "type": "linear" 3057 }, 3058 "showPoints": "never", 3059 "spanNulls": false, 3060 "stacking": { 3061 "group": "A", 3062 "mode": "normal" 3063 }, 3064 "thresholdsStyle": { 3065 "mode": "off" 3066 } 3067 }, 3068 "links": [], 3069 "mappings": [], 3070 "min": 0, 3071 "thresholds": { 3072 "mode": "absolute", 3073 "steps": [ 3074 { 3075 "color": "green", 3076 "value": null 3077 }, 3078 { 3079 "color": "red", 3080 "value": 80 3081 } 3082 ] 3083 }, 3084 "unit": "bytes" 3085 }, 3086 "overrides": [ 3087 { 3088 "matcher": { 3089 "id": "byName", 3090 "options": "System Memory" 3091 }, 3092 "properties": [ 3093 { 3094 "id": "custom.fillOpacity", 3095 "value": 0 3096 }, 3097 { 3098 "id": "custom.stacking", 3099 "value": { 3100 "group": false, 3101 "mode": "normal" 3102 } 3103 } 3104 ] 3105 } 3106 ] 3107 }, 3108 "gridPos": { 3109 "h": 8, 3110 "w": 8, 3111 "x": 8, 3112 "y": 47 3113 }, 3114 "id": 406, 3115 "links": [ 3116 { 3117 "title": "Detailed descriptions about metrics", 3118 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 3119 } 3120 ], 3121 "options": { 3122 "legend": { 3123 "calcs": [ 3124 "mean", 3125 "lastNotNull", 3126 "max", 3127 "min" 3128 ], 3129 "displayMode": "table", 3130 "placement": "bottom", 3131 "showLegend": true 3132 }, 3133 "tooltip": { 3134 "mode": "multi", 3135 "sort": "none" 3136 } 3137 }, 3138 "pluginVersion": "9.2.4", 3139 "targets": [ 3140 { 3141 "datasource": { 3142 "uid": "$datasource" 3143 }, 3144 "editorMode": "code", 3145 "expr": "sum(mysql_global_variables_innodb_log_buffer_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3146 "format": "time_series", 3147 "interval": "", 3148 "intervalFactor": 1, 3149 "legendFormat": "InnoDB Log Buffer Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3150 "range": true, 3151 "refId": "D", 3152 "step": 20 3153 }, 3154 { 3155 "datasource": { 3156 "uid": "$datasource" 3157 }, 3158 "expr": "sum(mysql_global_variables_innodb_additional_mem_pool_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3159 "format": "time_series", 3160 "interval": "", 3161 "intervalFactor": 2, 3162 "legendFormat": "InnoDB Additional Memory Pool Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3163 "refId": "H", 3164 "step": 40 3165 }, 3166 { 3167 "datasource": { 3168 "uid": "$datasource" 3169 }, 3170 "editorMode": "code", 3171 "expr": "sum(mysql_global_status_innodb_mem_dictionary{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3172 "format": "time_series", 3173 "interval": "", 3174 "intervalFactor": 1, 3175 "legendFormat": "InnoDB Dictionary Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3176 "range": true, 3177 "refId": "F", 3178 "step": 20 3179 }, 3180 { 3181 "datasource": { 3182 "uid": "$datasource" 3183 }, 3184 "expr": "sum(mysql_global_variables_key_buffer_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3185 "format": "time_series", 3186 "interval": "", 3187 "intervalFactor": 1, 3188 "legendFormat": "Key Buffer Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3189 "refId": "B", 3190 "step": 20 3191 }, 3192 { 3193 "datasource": { 3194 "uid": "$datasource" 3195 }, 3196 "expr": "sum(mysql_global_variables_query_cache_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3197 "format": "time_series", 3198 "interval": "", 3199 "intervalFactor": 1, 3200 "legendFormat": "Query Cache Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3201 "refId": "C", 3202 "step": 20 3203 }, 3204 { 3205 "datasource": { 3206 "uid": "$datasource" 3207 }, 3208 "expr": "sum(mysql_global_status_innodb_mem_adaptive_hash{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3209 "format": "time_series", 3210 "interval": "", 3211 "intervalFactor": 1, 3212 "legendFormat": "Adaptive Hash Index Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3213 "refId": "E", 3214 "step": 20 3215 }, 3216 { 3217 "datasource": { 3218 "uid": "$datasource" 3219 }, 3220 "expr": "sum(mysql_global_variables_tokudb_cache_size{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3221 "format": "time_series", 3222 "interval": "", 3223 "intervalFactor": 1, 3224 "legendFormat": "TokuDB Cache Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3225 "refId": "I", 3226 "step": 20 3227 } 3228 ], 3229 "title": "Other Buffers Size", 3230 "type": "timeseries" 3231 } 3232 ], 3233 "targets": [ 3234 { 3235 "datasource": { 3236 "uid": "$datasource" 3237 }, 3238 "refId": "A" 3239 } 3240 ], 3241 "title": "Buffers", 3242 "type": "row" 3243 }, 3244 { 3245 "collapsed": true, 3246 "gridPos": { 3247 "h": 1, 3248 "w": 24, 3249 "x": 0, 3250 "y": 39 3251 }, 3252 "id": 413, 3253 "panels": [ 3254 { 3255 "datasource": { 3256 "uid": "$datasource" 3257 }, 3258 "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.", 3259 "fieldConfig": { 3260 "defaults": { 3261 "color": { 3262 "mode": "palette-classic" 3263 }, 3264 "custom": { 3265 "axisCenteredZero": false, 3266 "axisColorMode": "text", 3267 "axisLabel": "", 3268 "axisPlacement": "auto", 3269 "barAlignment": 0, 3270 "drawStyle": "line", 3271 "fillOpacity": 20, 3272 "gradientMode": "none", 3273 "hideFrom": { 3274 "legend": false, 3275 "tooltip": false, 3276 "viz": false 3277 }, 3278 "lineInterpolation": "linear", 3279 "lineWidth": 2, 3280 "pointSize": 5, 3281 "scaleDistribution": { 3282 "type": "linear" 3283 }, 3284 "showPoints": "never", 3285 "spanNulls": false, 3286 "stacking": { 3287 "group": "A", 3288 "mode": "none" 3289 }, 3290 "thresholdsStyle": { 3291 "mode": "off" 3292 } 3293 }, 3294 "links": [], 3295 "mappings": [], 3296 "min": 0, 3297 "thresholds": { 3298 "mode": "absolute", 3299 "steps": [ 3300 { 3301 "color": "green", 3302 "value": null 3303 }, 3304 { 3305 "color": "red", 3306 "value": 80 3307 } 3308 ] 3309 }, 3310 "unit": "short" 3311 }, 3312 "overrides": [] 3313 }, 3314 "gridPos": { 3315 "h": 7, 3316 "w": 8, 3317 "x": 0, 3318 "y": 40 3319 }, 3320 "id": 32, 3321 "links": [], 3322 "options": { 3323 "legend": { 3324 "calcs": [ 3325 "mean", 3326 "lastNotNull", 3327 "max", 3328 "min" 3329 ], 3330 "displayMode": "table", 3331 "placement": "bottom", 3332 "showLegend": true 3333 }, 3334 "tooltip": { 3335 "mode": "multi", 3336 "sort": "none" 3337 } 3338 }, 3339 "pluginVersion": "9.2.4", 3340 "targets": [ 3341 { 3342 "calculatedInterval": "2m", 3343 "datasource": { 3344 "uid": "$datasource" 3345 }, 3346 "datasourceErrors": {}, 3347 "errors": {}, 3348 "expr": "sum(rate(mysql_global_status_table_locks_immediate{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 3349 "format": "time_series", 3350 "interval": "", 3351 "intervalFactor": 1, 3352 "legendFormat": "Table Locks Immediate | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3353 "metric": "", 3354 "refId": "A", 3355 "step": 20 3356 }, 3357 { 3358 "calculatedInterval": "2m", 3359 "datasource": { 3360 "uid": "$datasource" 3361 }, 3362 "datasourceErrors": {}, 3363 "errors": {}, 3364 "expr": "sum(rate(mysql_global_status_table_locks_waited{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 3365 "format": "time_series", 3366 "interval": "", 3367 "intervalFactor": 1, 3368 "legendFormat": "Table Locks Waited | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3369 "metric": "", 3370 "refId": "B", 3371 "step": 20 3372 } 3373 ], 3374 "title": "MySQL Table Locks", 3375 "type": "timeseries" 3376 }, 3377 { 3378 "datasource": { 3379 "type": "prometheus", 3380 "uid": "$datasource" 3381 }, 3382 "description": "", 3383 "fieldConfig": { 3384 "defaults": { 3385 "color": { 3386 "mode": "palette-classic" 3387 }, 3388 "custom": { 3389 "axisCenteredZero": false, 3390 "axisColorMode": "text", 3391 "axisLabel": "", 3392 "axisPlacement": "auto", 3393 "barAlignment": 0, 3394 "drawStyle": "line", 3395 "fillOpacity": 60, 3396 "gradientMode": "none", 3397 "hideFrom": { 3398 "legend": false, 3399 "tooltip": false, 3400 "viz": false 3401 }, 3402 "lineInterpolation": "linear", 3403 "lineWidth": 2, 3404 "pointSize": 5, 3405 "scaleDistribution": { 3406 "type": "linear" 3407 }, 3408 "showPoints": "never", 3409 "spanNulls": false, 3410 "stacking": { 3411 "group": "A", 3412 "mode": "normal" 3413 }, 3414 "thresholdsStyle": { 3415 "mode": "off" 3416 } 3417 }, 3418 "links": [], 3419 "mappings": [], 3420 "min": 0, 3421 "thresholds": { 3422 "mode": "absolute", 3423 "steps": [ 3424 { 3425 "color": "green", 3426 "value": null 3427 }, 3428 { 3429 "color": "red", 3430 "value": 80 3431 } 3432 ] 3433 }, 3434 "unit": "short" 3435 }, 3436 "overrides": [ 3437 { 3438 "matcher": { 3439 "id": "byName", 3440 "options": "System Memory" 3441 }, 3442 "properties": [ 3443 { 3444 "id": "custom.fillOpacity", 3445 "value": 0 3446 }, 3447 { 3448 "id": "custom.stacking", 3449 "value": { 3450 "group": false, 3451 "mode": "normal" 3452 } 3453 } 3454 ] 3455 } 3456 ] 3457 }, 3458 "gridPos": { 3459 "h": 8, 3460 "w": 8, 3461 "x": 8, 3462 "y": 40 3463 }, 3464 "id": 410, 3465 "links": [ 3466 { 3467 "title": "Detailed descriptions about metrics", 3468 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 3469 } 3470 ], 3471 "options": { 3472 "legend": { 3473 "calcs": [ 3474 "mean", 3475 "lastNotNull", 3476 "max", 3477 "min" 3478 ], 3479 "displayMode": "table", 3480 "placement": "bottom", 3481 "showLegend": true 3482 }, 3483 "tooltip": { 3484 "mode": "multi", 3485 "sort": "none" 3486 } 3487 }, 3488 "pluginVersion": "9.2.4", 3489 "targets": [ 3490 { 3491 "datasource": { 3492 "uid": "$datasource" 3493 }, 3494 "editorMode": "code", 3495 "expr": "sum(rate(mysql_global_status_innodb_row_lock_waits{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 3496 "format": "time_series", 3497 "interval": "", 3498 "intervalFactor": 1, 3499 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3500 "range": true, 3501 "refId": "D", 3502 "step": 20 3503 } 3504 ], 3505 "title": "Innodb Row Lock Waits", 3506 "type": "timeseries" 3507 }, 3508 { 3509 "datasource": { 3510 "type": "prometheus", 3511 "uid": "$datasource" 3512 }, 3513 "description": "", 3514 "fieldConfig": { 3515 "defaults": { 3516 "color": { 3517 "mode": "palette-classic" 3518 }, 3519 "custom": { 3520 "axisCenteredZero": false, 3521 "axisColorMode": "text", 3522 "axisLabel": "", 3523 "axisPlacement": "auto", 3524 "barAlignment": 0, 3525 "drawStyle": "line", 3526 "fillOpacity": 60, 3527 "gradientMode": "none", 3528 "hideFrom": { 3529 "legend": false, 3530 "tooltip": false, 3531 "viz": false 3532 }, 3533 "lineInterpolation": "linear", 3534 "lineWidth": 2, 3535 "pointSize": 5, 3536 "scaleDistribution": { 3537 "type": "linear" 3538 }, 3539 "showPoints": "never", 3540 "spanNulls": false, 3541 "stacking": { 3542 "group": "A", 3543 "mode": "normal" 3544 }, 3545 "thresholdsStyle": { 3546 "mode": "off" 3547 } 3548 }, 3549 "links": [], 3550 "mappings": [], 3551 "min": 0, 3552 "thresholds": { 3553 "mode": "absolute", 3554 "steps": [ 3555 { 3556 "color": "green", 3557 "value": null 3558 }, 3559 { 3560 "color": "red", 3561 "value": 80 3562 } 3563 ] 3564 }, 3565 "unit": "ms" 3566 }, 3567 "overrides": [ 3568 { 3569 "matcher": { 3570 "id": "byName", 3571 "options": "System Memory" 3572 }, 3573 "properties": [ 3574 { 3575 "id": "custom.fillOpacity", 3576 "value": 0 3577 }, 3578 { 3579 "id": "custom.stacking", 3580 "value": { 3581 "group": false, 3582 "mode": "normal" 3583 } 3584 } 3585 ] 3586 } 3587 ] 3588 }, 3589 "gridPos": { 3590 "h": 8, 3591 "w": 8, 3592 "x": 16, 3593 "y": 40 3594 }, 3595 "id": 411, 3596 "links": [ 3597 { 3598 "title": "Detailed descriptions about metrics", 3599 "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" 3600 } 3601 ], 3602 "options": { 3603 "legend": { 3604 "calcs": [ 3605 "mean", 3606 "lastNotNull", 3607 "max", 3608 "min" 3609 ], 3610 "displayMode": "table", 3611 "placement": "bottom", 3612 "showLegend": true 3613 }, 3614 "tooltip": { 3615 "mode": "multi", 3616 "sort": "none" 3617 } 3618 }, 3619 "pluginVersion": "9.2.4", 3620 "targets": [ 3621 { 3622 "datasource": { 3623 "uid": "$datasource" 3624 }, 3625 "editorMode": "code", 3626 "expr": "sum(rate(mysql_global_status_innodb_row_lock_time{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod) / sum(rate(mysql_global_status_innodb_row_lock_waits{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 3627 "format": "time_series", 3628 "interval": "", 3629 "intervalFactor": 1, 3630 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3631 "range": true, 3632 "refId": "D", 3633 "step": 20 3634 } 3635 ], 3636 "title": "Innodb Row Lock Avg Time", 3637 "type": "timeseries" 3638 } 3639 ], 3640 "title": "Locks", 3641 "type": "row" 3642 }, 3643 { 3644 "collapsed": true, 3645 "datasource": { 3646 "uid": "$datasource" 3647 }, 3648 "gridPos": { 3649 "h": 1, 3650 "w": 24, 3651 "x": 0, 3652 "y": 40 3653 }, 3654 "id": 392, 3655 "panels": [ 3656 { 3657 "datasource": { 3658 "type": "prometheus", 3659 "uid": "$datasource" 3660 }, 3661 "fieldConfig": { 3662 "defaults": { 3663 "color": { 3664 "mode": "palette-classic" 3665 }, 3666 "custom": { 3667 "axisCenteredZero": false, 3668 "axisColorMode": "text", 3669 "axisLabel": "", 3670 "axisPlacement": "auto", 3671 "barAlignment": 0, 3672 "drawStyle": "line", 3673 "fillOpacity": 20, 3674 "gradientMode": "none", 3675 "hideFrom": { 3676 "legend": false, 3677 "tooltip": false, 3678 "viz": false 3679 }, 3680 "lineInterpolation": "linear", 3681 "lineWidth": 2, 3682 "pointSize": 5, 3683 "scaleDistribution": { 3684 "type": "linear" 3685 }, 3686 "showPoints": "never", 3687 "spanNulls": false, 3688 "stacking": { 3689 "group": "A", 3690 "mode": "none" 3691 }, 3692 "thresholdsStyle": { 3693 "mode": "off" 3694 } 3695 }, 3696 "links": [], 3697 "mappings": [], 3698 "min": 0, 3699 "thresholds": { 3700 "mode": "absolute", 3701 "steps": [ 3702 { 3703 "color": "green", 3704 "value": null 3705 }, 3706 { 3707 "color": "red", 3708 "value": 80 3709 } 3710 ] 3711 }, 3712 "unit": "short" 3713 }, 3714 "overrides": [] 3715 }, 3716 "gridPos": { 3717 "h": 7, 3718 "w": 8, 3719 "x": 0, 3720 "y": 41 3721 }, 3722 "id": 41, 3723 "links": [], 3724 "options": { 3725 "legend": { 3726 "calcs": [ 3727 "mean", 3728 "lastNotNull", 3729 "max", 3730 "min" 3731 ], 3732 "displayMode": "table", 3733 "placement": "bottom", 3734 "showLegend": true 3735 }, 3736 "tooltip": { 3737 "mode": "multi", 3738 "sort": "none" 3739 } 3740 }, 3741 "pluginVersion": "9.2.4", 3742 "targets": [ 3743 { 3744 "calculatedInterval": "2m", 3745 "datasource": { 3746 "uid": "$datasource" 3747 }, 3748 "datasourceErrors": {}, 3749 "editorMode": "code", 3750 "errors": {}, 3751 "expr": "sum(mysql_global_status_open_files{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3752 "interval": "", 3753 "intervalFactor": 1, 3754 "legendFormat": "Open Files | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3755 "metric": "", 3756 "range": true, 3757 "refId": "A", 3758 "step": 20 3759 }, 3760 { 3761 "calculatedInterval": "2m", 3762 "datasource": { 3763 "uid": "$datasource" 3764 }, 3765 "datasourceErrors": {}, 3766 "errors": {}, 3767 "expr": "sum(mysql_global_variables_open_files_limit{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3768 "interval": "", 3769 "intervalFactor": 1, 3770 "legendFormat": "Open Files Limit | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3771 "metric": "", 3772 "refId": "D", 3773 "step": 20 3774 }, 3775 { 3776 "datasource": { 3777 "uid": "$datasource" 3778 }, 3779 "expr": "sum(mysql_global_status_innodb_num_open_files{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3780 "interval": "", 3781 "intervalFactor": 1, 3782 "legendFormat": "InnoDB Open Files | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3783 "refId": "B", 3784 "step": 20 3785 } 3786 ], 3787 "title": "MySQL Open Files", 3788 "type": "timeseries" 3789 }, 3790 { 3791 "datasource": { 3792 "type": "prometheus", 3793 "uid": "$datasource" 3794 }, 3795 "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).", 3796 "fieldConfig": { 3797 "defaults": { 3798 "color": { 3799 "mode": "palette-classic" 3800 }, 3801 "custom": { 3802 "axisCenteredZero": false, 3803 "axisColorMode": "text", 3804 "axisLabel": "", 3805 "axisPlacement": "auto", 3806 "barAlignment": 0, 3807 "drawStyle": "line", 3808 "fillOpacity": 20, 3809 "gradientMode": "none", 3810 "hideFrom": { 3811 "legend": false, 3812 "tooltip": false, 3813 "viz": false 3814 }, 3815 "lineInterpolation": "linear", 3816 "lineWidth": 2, 3817 "pointSize": 5, 3818 "scaleDistribution": { 3819 "type": "linear" 3820 }, 3821 "showPoints": "never", 3822 "spanNulls": false, 3823 "stacking": { 3824 "group": "A", 3825 "mode": "none" 3826 }, 3827 "thresholdsStyle": { 3828 "mode": "off" 3829 } 3830 }, 3831 "links": [], 3832 "mappings": [], 3833 "min": 0, 3834 "thresholds": { 3835 "mode": "absolute", 3836 "steps": [ 3837 { 3838 "color": "green", 3839 "value": null 3840 }, 3841 { 3842 "color": "red", 3843 "value": 80 3844 } 3845 ] 3846 }, 3847 "unit": "short" 3848 }, 3849 "overrides": [] 3850 }, 3851 "gridPos": { 3852 "h": 7, 3853 "w": 8, 3854 "x": 8, 3855 "y": 41 3856 }, 3857 "id": 42, 3858 "links": [ 3859 { 3860 "title": "Server Status Variables (table_open_cache)", 3861 "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache" 3862 } 3863 ], 3864 "options": { 3865 "legend": { 3866 "calcs": [ 3867 "mean", 3868 "lastNotNull", 3869 "max", 3870 "min" 3871 ], 3872 "displayMode": "table", 3873 "placement": "bottom", 3874 "showLegend": true 3875 }, 3876 "tooltip": { 3877 "mode": "multi", 3878 "sort": "none" 3879 } 3880 }, 3881 "pluginVersion": "9.2.4", 3882 "targets": [ 3883 { 3884 "calculatedInterval": "2m", 3885 "datasource": { 3886 "uid": "$datasource" 3887 }, 3888 "datasourceErrors": {}, 3889 "editorMode": "code", 3890 "errors": {}, 3891 "expr": "sum(mysql_global_status_open_tables{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3892 "format": "time_series", 3893 "interval": "", 3894 "intervalFactor": 1, 3895 "legendFormat": "Open Tables | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3896 "metric": "", 3897 "range": true, 3898 "refId": "B", 3899 "step": 20 3900 }, 3901 { 3902 "calculatedInterval": "2m", 3903 "datasource": { 3904 "uid": "$datasource" 3905 }, 3906 "datasourceErrors": {}, 3907 "errors": {}, 3908 "expr": "sum(mysql_global_variables_table_open_cache{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 3909 "format": "time_series", 3910 "interval": "", 3911 "intervalFactor": 1, 3912 "legendFormat": "Table Open Cache | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3913 "metric": "", 3914 "refId": "C", 3915 "step": 20 3916 } 3917 ], 3918 "title": "MySQL Open Tables", 3919 "type": "timeseries" 3920 }, 3921 { 3922 "datasource": { 3923 "uid": "$datasource" 3924 }, 3925 "description": "**MySQL Table Definition Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).", 3926 "fieldConfig": { 3927 "defaults": { 3928 "color": { 3929 "mode": "palette-classic" 3930 }, 3931 "custom": { 3932 "axisCenteredZero": false, 3933 "axisColorMode": "text", 3934 "axisLabel": "", 3935 "axisPlacement": "auto", 3936 "barAlignment": 0, 3937 "drawStyle": "line", 3938 "fillOpacity": 20, 3939 "gradientMode": "none", 3940 "hideFrom": { 3941 "legend": false, 3942 "tooltip": false, 3943 "viz": false 3944 }, 3945 "lineInterpolation": "linear", 3946 "lineWidth": 2, 3947 "pointSize": 5, 3948 "scaleDistribution": { 3949 "type": "linear" 3950 }, 3951 "showPoints": "never", 3952 "spanNulls": false, 3953 "stacking": { 3954 "group": "A", 3955 "mode": "none" 3956 }, 3957 "thresholdsStyle": { 3958 "mode": "off" 3959 } 3960 }, 3961 "links": [], 3962 "mappings": [], 3963 "min": 0, 3964 "thresholds": { 3965 "mode": "absolute", 3966 "steps": [ 3967 { 3968 "color": "green", 3969 "value": null 3970 }, 3971 { 3972 "color": "red", 3973 "value": 80 3974 } 3975 ] 3976 }, 3977 "unit": "short" 3978 }, 3979 "overrides": [] 3980 }, 3981 "gridPos": { 3982 "h": 7, 3983 "w": 8, 3984 "x": 16, 3985 "y": 41 3986 }, 3987 "id": 54, 3988 "links": [ 3989 { 3990 "title": "Server Status Variables (table_open_cache)", 3991 "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache" 3992 } 3993 ], 3994 "options": { 3995 "legend": { 3996 "calcs": [ 3997 "mean", 3998 "lastNotNull", 3999 "max", 4000 "min" 4001 ], 4002 "displayMode": "table", 4003 "placement": "bottom", 4004 "showLegend": true 4005 }, 4006 "tooltip": { 4007 "mode": "multi", 4008 "sort": "none" 4009 } 4010 }, 4011 "pluginVersion": "9.2.4", 4012 "targets": [ 4013 { 4014 "calculatedInterval": "2m", 4015 "datasource": { 4016 "uid": "$datasource" 4017 }, 4018 "datasourceErrors": {}, 4019 "errors": {}, 4020 "expr": "sum(mysql_global_status_open_table_definitions{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 4021 "format": "time_series", 4022 "interval": "", 4023 "intervalFactor": 1, 4024 "legendFormat": "Open Table Definitions | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 4025 "metric": "", 4026 "refId": "B", 4027 "step": 20 4028 }, 4029 { 4030 "calculatedInterval": "2m", 4031 "datasource": { 4032 "uid": "$datasource" 4033 }, 4034 "datasourceErrors": {}, 4035 "errors": {}, 4036 "expr": "sum(mysql_global_variables_table_definition_cache{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod)", 4037 "format": "time_series", 4038 "interval": "", 4039 "intervalFactor": 1, 4040 "legendFormat": "Table Definitions Cache Size | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 4041 "metric": "", 4042 "refId": "C", 4043 "step": 20 4044 }, 4045 { 4046 "datasource": { 4047 "uid": "$datasource" 4048 }, 4049 "expr": "sum(rate(mysql_global_status_opened_table_definitions{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 4050 "format": "time_series", 4051 "interval": "", 4052 "intervalFactor": 1, 4053 "legendFormat": "Opened Table Definitions | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 4054 "refId": "A", 4055 "step": 20 4056 } 4057 ], 4058 "title": "MySQL Table Definition Cache", 4059 "type": "timeseries" 4060 }, 4061 { 4062 "datasource": { 4063 "type": "prometheus", 4064 "uid": "$datasource" 4065 }, 4066 "description": "**MySQL Table Open Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).", 4067 "fieldConfig": { 4068 "defaults": { 4069 "color": { 4070 "mode": "palette-classic" 4071 }, 4072 "custom": { 4073 "axisCenteredZero": false, 4074 "axisColorMode": "text", 4075 "axisLabel": "", 4076 "axisPlacement": "auto", 4077 "barAlignment": 0, 4078 "drawStyle": "line", 4079 "fillOpacity": 20, 4080 "gradientMode": "none", 4081 "hideFrom": { 4082 "legend": false, 4083 "tooltip": false, 4084 "viz": false 4085 }, 4086 "lineInterpolation": "linear", 4087 "lineWidth": 2, 4088 "pointSize": 5, 4089 "scaleDistribution": { 4090 "type": "linear" 4091 }, 4092 "showPoints": "never", 4093 "spanNulls": false, 4094 "stacking": { 4095 "group": "A", 4096 "mode": "none" 4097 }, 4098 "thresholdsStyle": { 4099 "mode": "off" 4100 } 4101 }, 4102 "links": [], 4103 "mappings": [], 4104 "min": 0, 4105 "thresholds": { 4106 "mode": "absolute", 4107 "steps": [ 4108 { 4109 "color": "green", 4110 "value": null 4111 }, 4112 { 4113 "color": "red", 4114 "value": 80 4115 } 4116 ] 4117 }, 4118 "unit": "short" 4119 }, 4120 "overrides": [] 4121 }, 4122 "gridPos": { 4123 "h": 7, 4124 "w": 8, 4125 "x": 0, 4126 "y": 48 4127 }, 4128 "id": 44, 4129 "links": [ 4130 { 4131 "title": "Server Status Variables (table_open_cache)", 4132 "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache" 4133 } 4134 ], 4135 "options": { 4136 "legend": { 4137 "calcs": [ 4138 "mean", 4139 "lastNotNull", 4140 "max", 4141 "min" 4142 ], 4143 "displayMode": "table", 4144 "placement": "bottom", 4145 "showLegend": true 4146 }, 4147 "tooltip": { 4148 "mode": "multi", 4149 "sort": "none" 4150 } 4151 }, 4152 "pluginVersion": "9.2.4", 4153 "targets": [ 4154 { 4155 "datasource": { 4156 "uid": "$datasource" 4157 }, 4158 "editorMode": "code", 4159 "expr": "sum(rate(mysql_global_status_table_open_cache_hits{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 4160 "format": "time_series", 4161 "interval": "", 4162 "intervalFactor": 1, 4163 "legendFormat": "Hits | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 4164 "range": true, 4165 "refId": "B", 4166 "step": 20 4167 }, 4168 { 4169 "datasource": { 4170 "uid": "$datasource" 4171 }, 4172 "editorMode": "code", 4173 "expr": "sum(rate(mysql_global_status_table_open_cache_misses{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 4174 "format": "time_series", 4175 "interval": "", 4176 "intervalFactor": 1, 4177 "legendFormat": "Misses | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 4178 "range": true, 4179 "refId": "C", 4180 "step": 20 4181 }, 4182 { 4183 "datasource": { 4184 "uid": "$datasource" 4185 }, 4186 "editorMode": "code", 4187 "expr": "sum(rate(mysql_global_status_table_open_cache_overflows{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod)", 4188 "format": "time_series", 4189 "interval": "", 4190 "intervalFactor": 1, 4191 "legendFormat": "Misses due to Overflows | {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 4192 "range": true, 4193 "refId": "D", 4194 "step": 20 4195 } 4196 ], 4197 "title": "MySQL Table Open Cache", 4198 "type": "timeseries" 4199 } 4200 ], 4201 "targets": [ 4202 { 4203 "datasource": { 4204 "uid": "$datasource" 4205 }, 4206 "refId": "A" 4207 } 4208 ], 4209 "title": "Files and Tables", 4210 "type": "row" 4211 }, 4212 { 4213 "collapsed": true, 4214 "gridPos": { 4215 "h": 1, 4216 "w": 24, 4217 "x": 0, 4218 "y": 41 4219 }, 4220 "id": 396, 4221 "panels": [ 4222 { 4223 "datasource": { 4224 "type": "prometheus", 4225 "uid": "$datasource" 4226 }, 4227 "description": "", 4228 "fieldConfig": { 4229 "defaults": { 4230 "color": { 4231 "mode": "palette-classic" 4232 }, 4233 "custom": { 4234 "axisCenteredZero": false, 4235 "axisColorMode": "text", 4236 "axisLabel": "", 4237 "axisPlacement": "auto", 4238 "barAlignment": 0, 4239 "drawStyle": "line", 4240 "fillOpacity": 20, 4241 "gradientMode": "none", 4242 "hideFrom": { 4243 "legend": false, 4244 "tooltip": false, 4245 "viz": false 4246 }, 4247 "lineInterpolation": "linear", 4248 "lineWidth": 2, 4249 "pointSize": 5, 4250 "scaleDistribution": { 4251 "type": "linear" 4252 }, 4253 "showPoints": "never", 4254 "spanNulls": false, 4255 "stacking": { 4256 "group": "A", 4257 "mode": "none" 4258 }, 4259 "thresholdsStyle": { 4260 "mode": "off" 4261 } 4262 }, 4263 "links": [], 4264 "mappings": [], 4265 "min": 0, 4266 "thresholds": { 4267 "mode": "absolute", 4268 "steps": [ 4269 { 4270 "color": "green", 4271 "value": null 4272 }, 4273 { 4274 "color": "red", 4275 "value": 80 4276 } 4277 ] 4278 }, 4279 "unit": "short" 4280 }, 4281 "overrides": [] 4282 }, 4283 "gridPos": { 4284 "h": 7, 4285 "w": 8, 4286 "x": 0, 4287 "y": 42 4288 }, 4289 "id": 401, 4290 "links": [], 4291 "options": { 4292 "legend": { 4293 "calcs": [ 4294 "mean", 4295 "lastNotNull", 4296 "max", 4297 "min" 4298 ], 4299 "displayMode": "table", 4300 "placement": "bottom", 4301 "showLegend": true 4302 }, 4303 "tooltip": { 4304 "mode": "multi", 4305 "sort": "none" 4306 } 4307 }, 4308 "pluginVersion": "9.2.4", 4309 "targets": [ 4310 { 4311 "calculatedInterval": "2m", 4312 "datasource": { 4313 "uid": "$datasource" 4314 }, 4315 "datasourceErrors": {}, 4316 "editorMode": "code", 4317 "errors": {}, 4318 "expr": "sum(mysql_info_schema_wesql_consensus_commit_index{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod,instance_role)", 4319 "format": "time_series", 4320 "interval": "", 4321 "intervalFactor": 1, 4322 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{instance_role}}", 4323 "metric": "", 4324 "range": true, 4325 "refId": "A", 4326 "step": 20 4327 } 4328 ], 4329 "title": "Commit Index", 4330 "type": "timeseries" 4331 }, 4332 { 4333 "datasource": { 4334 "type": "prometheus", 4335 "uid": "$datasource" 4336 }, 4337 "description": "", 4338 "fieldConfig": { 4339 "defaults": { 4340 "color": { 4341 "mode": "palette-classic" 4342 }, 4343 "custom": { 4344 "axisCenteredZero": false, 4345 "axisColorMode": "text", 4346 "axisLabel": "", 4347 "axisPlacement": "auto", 4348 "barAlignment": 0, 4349 "drawStyle": "line", 4350 "fillOpacity": 20, 4351 "gradientMode": "none", 4352 "hideFrom": { 4353 "legend": false, 4354 "tooltip": false, 4355 "viz": false 4356 }, 4357 "lineInterpolation": "linear", 4358 "lineWidth": 2, 4359 "pointSize": 5, 4360 "scaleDistribution": { 4361 "type": "linear" 4362 }, 4363 "showPoints": "never", 4364 "spanNulls": false, 4365 "stacking": { 4366 "group": "A", 4367 "mode": "none" 4368 }, 4369 "thresholdsStyle": { 4370 "mode": "off" 4371 } 4372 }, 4373 "links": [], 4374 "mappings": [], 4375 "min": 0, 4376 "thresholds": { 4377 "mode": "absolute", 4378 "steps": [ 4379 { 4380 "color": "green", 4381 "value": null 4382 }, 4383 { 4384 "color": "red", 4385 "value": 80 4386 } 4387 ] 4388 }, 4389 "unit": "short" 4390 }, 4391 "overrides": [] 4392 }, 4393 "gridPos": { 4394 "h": 7, 4395 "w": 8, 4396 "x": 8, 4397 "y": 42 4398 }, 4399 "id": 402, 4400 "links": [], 4401 "options": { 4402 "legend": { 4403 "calcs": [ 4404 "mean", 4405 "lastNotNull", 4406 "max", 4407 "min" 4408 ], 4409 "displayMode": "table", 4410 "placement": "bottom", 4411 "showLegend": true 4412 }, 4413 "tooltip": { 4414 "mode": "multi", 4415 "sort": "none" 4416 } 4417 }, 4418 "pluginVersion": "9.2.4", 4419 "targets": [ 4420 { 4421 "calculatedInterval": "2m", 4422 "datasource": { 4423 "uid": "$datasource" 4424 }, 4425 "datasourceErrors": {}, 4426 "editorMode": "code", 4427 "errors": {}, 4428 "expr": "sum(mysql_info_schema_wesql_consensus_last_log_index{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod,instance_role)", 4429 "format": "time_series", 4430 "interval": "", 4431 "intervalFactor": 1, 4432 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{instance_role}}", 4433 "metric": "", 4434 "range": true, 4435 "refId": "A", 4436 "step": 20 4437 } 4438 ], 4439 "title": "Last Log Index", 4440 "type": "timeseries" 4441 }, 4442 { 4443 "datasource": { 4444 "type": "prometheus", 4445 "uid": "$datasource" 4446 }, 4447 "description": "", 4448 "fieldConfig": { 4449 "defaults": { 4450 "color": { 4451 "mode": "palette-classic" 4452 }, 4453 "custom": { 4454 "axisCenteredZero": false, 4455 "axisColorMode": "text", 4456 "axisLabel": "", 4457 "axisPlacement": "auto", 4458 "barAlignment": 0, 4459 "drawStyle": "line", 4460 "fillOpacity": 20, 4461 "gradientMode": "none", 4462 "hideFrom": { 4463 "legend": false, 4464 "tooltip": false, 4465 "viz": false 4466 }, 4467 "lineInterpolation": "linear", 4468 "lineWidth": 2, 4469 "pointSize": 5, 4470 "scaleDistribution": { 4471 "type": "linear" 4472 }, 4473 "showPoints": "never", 4474 "spanNulls": false, 4475 "stacking": { 4476 "group": "A", 4477 "mode": "none" 4478 }, 4479 "thresholdsStyle": { 4480 "mode": "off" 4481 } 4482 }, 4483 "links": [], 4484 "mappings": [], 4485 "min": 0, 4486 "thresholds": { 4487 "mode": "absolute", 4488 "steps": [ 4489 { 4490 "color": "green", 4491 "value": null 4492 }, 4493 { 4494 "color": "red", 4495 "value": 80 4496 } 4497 ] 4498 }, 4499 "unit": "short" 4500 }, 4501 "overrides": [] 4502 }, 4503 "gridPos": { 4504 "h": 7, 4505 "w": 8, 4506 "x": 16, 4507 "y": 42 4508 }, 4509 "id": 400, 4510 "links": [], 4511 "options": { 4512 "legend": { 4513 "calcs": [ 4514 "mean", 4515 "lastNotNull", 4516 "max", 4517 "min" 4518 ], 4519 "displayMode": "table", 4520 "placement": "bottom", 4521 "showLegend": true 4522 }, 4523 "tooltip": { 4524 "mode": "multi", 4525 "sort": "none" 4526 } 4527 }, 4528 "pluginVersion": "9.2.4", 4529 "targets": [ 4530 { 4531 "calculatedInterval": "2m", 4532 "datasource": { 4533 "uid": "$datasource" 4534 }, 4535 "datasourceErrors": {}, 4536 "editorMode": "code", 4537 "errors": {}, 4538 "expr": "sum(mysql_info_schema_wesql_consensus_last_apply_index{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod,instance_role)", 4539 "format": "time_series", 4540 "interval": "", 4541 "intervalFactor": 1, 4542 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{instance_role}}", 4543 "metric": "", 4544 "range": true, 4545 "refId": "A", 4546 "step": 20 4547 } 4548 ], 4549 "title": "Last Apply Index", 4550 "type": "timeseries" 4551 }, 4552 { 4553 "datasource": { 4554 "type": "prometheus", 4555 "uid": "$datasource" 4556 }, 4557 "description": "", 4558 "fieldConfig": { 4559 "defaults": { 4560 "color": { 4561 "mode": "palette-classic" 4562 }, 4563 "custom": { 4564 "axisCenteredZero": false, 4565 "axisColorMode": "text", 4566 "axisLabel": "", 4567 "axisPlacement": "auto", 4568 "barAlignment": 0, 4569 "drawStyle": "line", 4570 "fillOpacity": 20, 4571 "gradientMode": "none", 4572 "hideFrom": { 4573 "legend": false, 4574 "tooltip": false, 4575 "viz": false 4576 }, 4577 "lineInterpolation": "linear", 4578 "lineWidth": 2, 4579 "pointSize": 5, 4580 "scaleDistribution": { 4581 "type": "linear" 4582 }, 4583 "showPoints": "never", 4584 "spanNulls": false, 4585 "stacking": { 4586 "group": "A", 4587 "mode": "none" 4588 }, 4589 "thresholdsStyle": { 4590 "mode": "off" 4591 } 4592 }, 4593 "links": [], 4594 "mappings": [], 4595 "min": 0, 4596 "thresholds": { 4597 "mode": "absolute", 4598 "steps": [ 4599 { 4600 "color": "green", 4601 "value": null 4602 }, 4603 { 4604 "color": "red", 4605 "value": 80 4606 } 4607 ] 4608 }, 4609 "unit": "short" 4610 }, 4611 "overrides": [] 4612 }, 4613 "gridPos": { 4614 "h": 7, 4615 "w": 12, 4616 "x": 0, 4617 "y": 49 4618 }, 4619 "id": 399, 4620 "links": [], 4621 "options": { 4622 "legend": { 4623 "calcs": [ 4624 "mean", 4625 "lastNotNull", 4626 "max", 4627 "min" 4628 ], 4629 "displayMode": "table", 4630 "placement": "bottom", 4631 "showLegend": true 4632 }, 4633 "tooltip": { 4634 "mode": "multi", 4635 "sort": "none" 4636 } 4637 }, 4638 "pluginVersion": "9.2.4", 4639 "targets": [ 4640 { 4641 "calculatedInterval": "2m", 4642 "datasource": { 4643 "uid": "$datasource" 4644 }, 4645 "datasourceErrors": {}, 4646 "editorMode": "code", 4647 "errors": {}, 4648 "expr": "sum(mysql_info_schema_wesql_consensus_current_term{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod,instance_role)", 4649 "format": "time_series", 4650 "interval": "", 4651 "intervalFactor": 1, 4652 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{instance_role}}", 4653 "metric": "", 4654 "range": true, 4655 "refId": "A", 4656 "step": 20 4657 } 4658 ], 4659 "title": "Current Term", 4660 "type": "timeseries" 4661 }, 4662 { 4663 "datasource": { 4664 "type": "prometheus", 4665 "uid": "$datasource" 4666 }, 4667 "description": "", 4668 "fieldConfig": { 4669 "defaults": { 4670 "color": { 4671 "mode": "palette-classic" 4672 }, 4673 "custom": { 4674 "axisCenteredZero": false, 4675 "axisColorMode": "text", 4676 "axisLabel": "", 4677 "axisPlacement": "auto", 4678 "barAlignment": 0, 4679 "drawStyle": "line", 4680 "fillOpacity": 20, 4681 "gradientMode": "none", 4682 "hideFrom": { 4683 "legend": false, 4684 "tooltip": false, 4685 "viz": false 4686 }, 4687 "lineInterpolation": "linear", 4688 "lineWidth": 2, 4689 "pointSize": 5, 4690 "scaleDistribution": { 4691 "type": "linear" 4692 }, 4693 "showPoints": "never", 4694 "spanNulls": false, 4695 "stacking": { 4696 "group": "A", 4697 "mode": "none" 4698 }, 4699 "thresholdsStyle": { 4700 "mode": "off" 4701 } 4702 }, 4703 "links": [], 4704 "mappings": [], 4705 "min": 0, 4706 "thresholds": { 4707 "mode": "absolute", 4708 "steps": [ 4709 { 4710 "color": "green", 4711 "value": null 4712 }, 4713 { 4714 "color": "red", 4715 "value": 80 4716 } 4717 ] 4718 }, 4719 "unit": "short" 4720 }, 4721 "overrides": [] 4722 }, 4723 "gridPos": { 4724 "h": 7, 4725 "w": 12, 4726 "x": 12, 4727 "y": 49 4728 }, 4729 "id": 398, 4730 "links": [], 4731 "options": { 4732 "legend": { 4733 "calcs": [ 4734 "mean", 4735 "lastNotNull", 4736 "max", 4737 "min" 4738 ], 4739 "displayMode": "table", 4740 "placement": "bottom", 4741 "showLegend": true 4742 }, 4743 "tooltip": { 4744 "mode": "multi", 4745 "sort": "none" 4746 } 4747 }, 4748 "pluginVersion": "9.2.4", 4749 "targets": [ 4750 { 4751 "calculatedInterval": "2m", 4752 "datasource": { 4753 "uid": "$datasource" 4754 }, 4755 "datasourceErrors": {}, 4756 "editorMode": "code", 4757 "errors": {}, 4758 "expr": "sum(mysql_info_schema_wesql_consensus_last_log_term{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod,instance_role)", 4759 "format": "time_series", 4760 "interval": "", 4761 "intervalFactor": 1, 4762 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{instance_role}}", 4763 "metric": "", 4764 "range": true, 4765 "refId": "A", 4766 "step": 20 4767 } 4768 ], 4769 "title": "Last Log Term", 4770 "type": "timeseries" 4771 } 4772 ], 4773 "title": "ApeCloud MySQL Consensus", 4774 "type": "row" 4775 } 4776 ], 4777 "refresh": "", 4778 "schemaVersion": 37, 4779 "style": "dark", 4780 "tags": [ 4781 "mysql", 4782 "db" 4783 ], 4784 "templating": { 4785 "list": [ 4786 { 4787 "current": { 4788 "selected": false, 4789 "text": "default", 4790 "value": "default" 4791 }, 4792 "hide": 0, 4793 "includeAll": false, 4794 "label": "data source", 4795 "multi": false, 4796 "name": "datasource", 4797 "options": [], 4798 "query": "prometheus", 4799 "queryValue": "", 4800 "refresh": 1, 4801 "regex": "", 4802 "skipUrlSync": false, 4803 "type": "datasource" 4804 }, 4805 { 4806 "allValue": ".+", 4807 "current": { 4808 "selected": true, 4809 "text": [ 4810 "All" 4811 ], 4812 "value": [ 4813 "$__all" 4814 ] 4815 }, 4816 "datasource": { 4817 "type": "prometheus", 4818 "uid": "$datasource" 4819 }, 4820 "definition": "label_values(mysql_up{job=\"$job\"}, namespace)", 4821 "hide": 0, 4822 "includeAll": true, 4823 "label": "namespace", 4824 "multi": true, 4825 "name": "namespace", 4826 "options": [], 4827 "query": { 4828 "query": "label_values(mysql_up{job=\"$job\"}, namespace)", 4829 "refId": "StandardVariableQuery" 4830 }, 4831 "refresh": 1, 4832 "regex": "", 4833 "skipUrlSync": false, 4834 "sort": 5, 4835 "tagValuesQuery": "", 4836 "tagsQuery": "", 4837 "type": "query", 4838 "useTags": false 4839 }, 4840 { 4841 "allValue": ".+", 4842 "current": { 4843 "selected": true, 4844 "text": [ 4845 "All" 4846 ], 4847 "value": [ 4848 "$__all" 4849 ] 4850 }, 4851 "datasource": { 4852 "type": "prometheus", 4853 "uid": "$datasource" 4854 }, 4855 "definition": "label_values(mysql_up{job=\"$job\"}, app_kubernetes_io_instance)", 4856 "hide": 0, 4857 "includeAll": true, 4858 "label": "cluster", 4859 "multi": true, 4860 "name": "cluster", 4861 "options": [], 4862 "query": { 4863 "query": "label_values(mysql_up{job=\"$job\"}, app_kubernetes_io_instance)", 4864 "refId": "StandardVariableQuery" 4865 }, 4866 "refresh": 1, 4867 "regex": "", 4868 "skipUrlSync": false, 4869 "sort": 5, 4870 "tagValuesQuery": "", 4871 "tagsQuery": "", 4872 "type": "query", 4873 "useTags": false 4874 }, 4875 { 4876 "allValue": ".+", 4877 "current": { 4878 "selected": true, 4879 "text": [ 4880 "All" 4881 ], 4882 "value": [ 4883 "$__all" 4884 ] 4885 }, 4886 "datasource": { 4887 "type": "prometheus", 4888 "uid": "$datasource" 4889 }, 4890 "definition": "label_values(mysql_up{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)", 4891 "hide": 0, 4892 "includeAll": true, 4893 "label": "instance", 4894 "multi": true, 4895 "name": "instance", 4896 "options": [], 4897 "query": { 4898 "query": "label_values(mysql_up{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)", 4899 "refId": "StandardVariableQuery" 4900 }, 4901 "refresh": 2, 4902 "regex": "", 4903 "skipUrlSync": false, 4904 "sort": 5, 4905 "tagValuesQuery": "", 4906 "tagsQuery": "", 4907 "type": "query", 4908 "useTags": false 4909 }, 4910 { 4911 "current": { 4912 "selected": true, 4913 "text": "kubeblocks-service", 4914 "value": "kubeblocks-service" 4915 }, 4916 "hide": 0, 4917 "includeAll": false, 4918 "label": "job", 4919 "multi": false, 4920 "name": "job", 4921 "options": [ 4922 { 4923 "selected": true, 4924 "text": "kubeblocks-service", 4925 "value": "kubeblocks-service" 4926 }, 4927 { 4928 "selected": false, 4929 "text": "agamotto", 4930 "value": "agamotto" 4931 } 4932 ], 4933 "query": "kubeblocks-service,agamotto", 4934 "queryValue": "", 4935 "skipUrlSync": false, 4936 "type": "custom" 4937 } 4938 ] 4939 }, 4940 "time": { 4941 "from": "now-30m", 4942 "to": "now" 4943 }, 4944 "timepicker": { 4945 "collapse": false, 4946 "enable": true, 4947 "hidden": false, 4948 "notice": false, 4949 "now": true, 4950 "refresh_intervals": [ 4951 "10s", 4952 "30s", 4953 "1m", 4954 "5m", 4955 "15m", 4956 "30m", 4957 "1h", 4958 "2h", 4959 "1d" 4960 ], 4961 "status": "Stable", 4962 "time_options": [ 4963 "5m", 4964 "15m", 4965 "1h", 4966 "6h", 4967 "12h", 4968 "24h", 4969 "2d", 4970 "7d", 4971 "30d" 4972 ], 4973 "type": "timepicker" 4974 }, 4975 "timezone": "", 4976 "title": "MySQL", 4977 "uid": "mysql", 4978 "version": 1, 4979 "weekStart": "" 4980 }