github.com/matrixorigin/matrixone@v1.2.0/pkg/util/metric/dashboard/grafana8.4_mo_overview.json (about) 1 { 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": "-- Grafana --", 7 "enable": false, 8 "hide": true, 9 "iconColor": "rgba(0, 211, 255, 1)", 10 "limit": 100, 11 "name": "Annotations & Alerts", 12 "showIn": 0, 13 "type": "dashboard" 14 } 15 ] 16 }, 17 "editable": true, 18 "fiscalYearStartMonth": 0, 19 "graphTooltip": 0, 20 "id": 4, 21 "iteration": 1657527417584, 22 "links": [], 23 "liveNow": false, 24 "panels": [ 25 { 26 "collapsed": false, 27 "gridPos": { 28 "h": 1, 29 "w": 24, 30 "x": 0, 31 "y": 0 32 }, 33 "id": 15, 34 "panels": [], 35 "title": "MO-Server", 36 "type": "row" 37 }, 38 { 39 "datasource": { 40 "type": "mysql", 41 "uid": "${datasource}" 42 }, 43 "description": "processed statement count increasing rate in the past 30 seconds", 44 "fieldConfig": { 45 "defaults": { 46 "color": { 47 "mode": "palette-classic" 48 }, 49 "custom": { 50 "axisLabel": "", 51 "axisPlacement": "auto", 52 "barAlignment": 0, 53 "drawStyle": "line", 54 "fillOpacity": 9, 55 "gradientMode": "none", 56 "hideFrom": { 57 "legend": false, 58 "tooltip": false, 59 "viz": false 60 }, 61 "lineInterpolation": "smooth", 62 "lineStyle": { 63 "fill": "solid" 64 }, 65 "lineWidth": 1, 66 "pointSize": 5, 67 "scaleDistribution": { 68 "type": "linear" 69 }, 70 "showPoints": "never", 71 "spanNulls": true, 72 "stacking": { 73 "group": "A", 74 "mode": "none" 75 }, 76 "thresholdsStyle": { 77 "mode": "off" 78 } 79 }, 80 "mappings": [], 81 "thresholds": { 82 "mode": "absolute", 83 "steps": [ 84 { 85 "color": "green", 86 "value": null 87 }, 88 { 89 "color": "red", 90 "value": 80 91 } 92 ] 93 }, 94 "unit": "short" 95 }, 96 "overrides": [] 97 }, 98 "gridPos": { 99 "h": 8, 100 "w": 24, 101 "x": 0, 102 "y": 1 103 }, 104 "id": 6, 105 "options": { 106 "legend": { 107 "calcs": [ 108 "mean" 109 ], 110 "displayMode": "table", 111 "placement": "right" 112 }, 113 "tooltip": { 114 "mode": "multi", 115 "sort": "none" 116 } 117 }, 118 "pluginVersion": "8.4.5", 119 "targets": [ 120 { 121 "datasource": { 122 "type": "mysql", 123 "uid": "${datasource}" 124 }, 125 "format": "time_series", 126 "group": [], 127 "metricColumn": "none", 128 "queryType": "randomWalk", 129 "rawQuery": true, 130 "rawSql": "SELECT\n $__timeGroup(collecttime, \"30s\", 0) AS time_sec,\n avg(value) as value,\n type as metric\nFROM sql_statement_total\nWHERE\n $__timeFilter(collecttime) AND internal=\"0\"\nGROUP BY $__timeGroup(collecttime, \"30s\", 0), type\nORDER BY 1", 131 "refId": "A", 132 "select": [ 133 [ 134 { 135 "params": [ 136 "value" 137 ], 138 "type": "column" 139 } 140 ] 141 ], 142 "table": "sql_statement_total", 143 "timeColumn": "collecttime", 144 "where": [ 145 { 146 "name": "$__timeFilter", 147 "params": [], 148 "type": "macro" 149 } 150 ] 151 } 152 ], 153 "title": "Statement Total", 154 "type": "timeseries" 155 }, 156 { 157 "datasource": { 158 "type": "mysql", 159 "uid": "${datasource}" 160 }, 161 "description": "SQL processing time in seconds, averaged by the past 30 seconds", 162 "fieldConfig": { 163 "defaults": { 164 "color": { 165 "mode": "palette-classic" 166 }, 167 "custom": { 168 "axisLabel": "", 169 "axisPlacement": "auto", 170 "barAlignment": 0, 171 "drawStyle": "line", 172 "fillOpacity": 9, 173 "gradientMode": "none", 174 "hideFrom": { 175 "legend": false, 176 "tooltip": false, 177 "viz": false 178 }, 179 "lineInterpolation": "smooth", 180 "lineStyle": { 181 "fill": "solid" 182 }, 183 "lineWidth": 1, 184 "pointSize": 5, 185 "scaleDistribution": { 186 "type": "linear" 187 }, 188 "showPoints": "never", 189 "spanNulls": true, 190 "stacking": { 191 "group": "A", 192 "mode": "none" 193 }, 194 "thresholdsStyle": { 195 "mode": "off" 196 } 197 }, 198 "mappings": [], 199 "thresholds": { 200 "mode": "absolute", 201 "steps": [ 202 { 203 "color": "green", 204 "value": null 205 }, 206 { 207 "color": "red", 208 "value": 80 209 } 210 ] 211 }, 212 "unit": "s" 213 }, 214 "overrides": [] 215 }, 216 "gridPos": { 217 "h": 8, 218 "w": 24, 219 "x": 0, 220 "y": 9 221 }, 222 "id": 16, 223 "options": { 224 "legend": { 225 "calcs": [ 226 "mean" 227 ], 228 "displayMode": "table", 229 "placement": "right" 230 }, 231 "tooltip": { 232 "mode": "multi", 233 "sort": "none" 234 } 235 }, 236 "pluginVersion": "8.4.5", 237 "targets": [ 238 { 239 "datasource": { 240 "type": "mysql", 241 "uid": "${datasource}" 242 }, 243 "format": "time_series", 244 "group": [], 245 "metricColumn": "none", 246 "queryType": "randomWalk", 247 "rawQuery": true, 248 "rawSql": "SELECT\n $__timeGroup(collecttime, \"30s\", 0) AS time_sec,\n avg(value) as value,\n type as metric\nFROM sql_latency_seconds\nWHERE\n $__timeFilter(collecttime) AND internal=\"0\"\nGROUP BY $__timeGroup(collecttime, \"30s\", 0), type\nORDER BY 1", 249 "refId": "A", 250 "select": [ 251 [ 252 { 253 "params": [ 254 "value" 255 ], 256 "type": "column" 257 } 258 ] 259 ], 260 "table": "sql_statement_total", 261 "timeColumn": "collecttime", 262 "where": [ 263 { 264 "name": "$__timeFilter", 265 "params": [], 266 "type": "macro" 267 } 268 ] 269 } 270 ], 271 "title": "Statement Latency", 272 "type": "timeseries" 273 }, 274 { 275 "datasource": { 276 "type": "mysql", 277 "uid": "${datasource}" 278 }, 279 "description": "Total CPU time in used by MO server", 280 "fieldConfig": { 281 "defaults": { 282 "color": { 283 "mode": "palette-classic" 284 }, 285 "custom": { 286 "axisLabel": "", 287 "axisPlacement": "auto", 288 "barAlignment": 0, 289 "drawStyle": "line", 290 "fillOpacity": 10, 291 "gradientMode": "opacity", 292 "hideFrom": { 293 "legend": false, 294 "tooltip": false, 295 "viz": false 296 }, 297 "lineInterpolation": "smooth", 298 "lineWidth": 1, 299 "pointSize": 5, 300 "scaleDistribution": { 301 "type": "linear" 302 }, 303 "showPoints": "never", 304 "spanNulls": true, 305 "stacking": { 306 "group": "A", 307 "mode": "none" 308 }, 309 "thresholdsStyle": { 310 "mode": "off" 311 } 312 }, 313 "mappings": [], 314 "max": 100, 315 "min": 0, 316 "thresholds": { 317 "mode": "absolute", 318 "steps": [ 319 { 320 "color": "green", 321 "value": null 322 }, 323 { 324 "color": "red", 325 "value": 80 326 } 327 ] 328 }, 329 "unit": "percent" 330 }, 331 "overrides": [] 332 }, 333 "gridPos": { 334 "h": 8, 335 "w": 8, 336 "x": 0, 337 "y": 17 338 }, 339 "id": 7, 340 "options": { 341 "legend": { 342 "calcs": [], 343 "displayMode": "hidden", 344 "placement": "bottom" 345 }, 346 "tooltip": { 347 "mode": "multi", 348 "sort": "none" 349 } 350 }, 351 "pluginVersion": "8.4.5", 352 "targets": [ 353 { 354 "datasource": { 355 "type": "mysql", 356 "uid": "${datasource}" 357 }, 358 "format": "time_series", 359 "group": [], 360 "metricColumn": "none", 361 "queryType": "randomWalk", 362 "rawQuery": true, 363 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as cpu\nFROM process_cpu_percent\nWHERE $__timeFilter(collecttime)\nORDER BY collecttime", 364 "refId": "A", 365 "select": [ 366 [ 367 { 368 "params": [ 369 "value" 370 ], 371 "type": "column" 372 } 373 ] 374 ], 375 "table": "process_resident_memory_bytes", 376 "timeColumn": "collecttime", 377 "where": [] 378 } 379 ], 380 "title": "Process CPU Time", 381 "type": "timeseries" 382 }, 383 { 384 "datasource": { 385 "type": "mysql", 386 "uid": "${datasource}" 387 }, 388 "description": "Total memory used by MO server, averaged by the past 1 minute", 389 "fieldConfig": { 390 "defaults": { 391 "color": { 392 "mode": "palette-classic" 393 }, 394 "custom": { 395 "axisLabel": "", 396 "axisPlacement": "auto", 397 "barAlignment": 0, 398 "drawStyle": "line", 399 "fillOpacity": 10, 400 "gradientMode": "opacity", 401 "hideFrom": { 402 "legend": false, 403 "tooltip": false, 404 "viz": false 405 }, 406 "lineInterpolation": "smooth", 407 "lineWidth": 1, 408 "pointSize": 5, 409 "scaleDistribution": { 410 "type": "linear" 411 }, 412 "showPoints": "never", 413 "spanNulls": true, 414 "stacking": { 415 "group": "A", 416 "mode": "none" 417 }, 418 "thresholdsStyle": { 419 "mode": "off" 420 } 421 }, 422 "mappings": [], 423 "min": 0, 424 "thresholds": { 425 "mode": "absolute", 426 "steps": [ 427 { 428 "color": "green", 429 "value": null 430 }, 431 { 432 "color": "red", 433 "value": 80 434 } 435 ] 436 }, 437 "unit": "bytes" 438 }, 439 "overrides": [] 440 }, 441 "gridPos": { 442 "h": 8, 443 "w": 8, 444 "x": 8, 445 "y": 17 446 }, 447 "id": 2, 448 "options": { 449 "legend": { 450 "calcs": [ 451 "mean", 452 "max" 453 ], 454 "displayMode": "list", 455 "placement": "bottom" 456 }, 457 "tooltip": { 458 "mode": "multi", 459 "sort": "none" 460 } 461 }, 462 "pluginVersion": "8.4.5", 463 "targets": [ 464 { 465 "datasource": { 466 "type": "mysql", 467 "uid": "${datasource}" 468 }, 469 "format": "time_series", 470 "group": [], 471 "metricColumn": "none", 472 "queryType": "randomWalk", 473 "rawQuery": true, 474 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as memory\nFROM process_resident_memory_bytes\nWHERE $__timeFilter(collecttime)\nORDER BY collecttime", 475 "refId": "A", 476 "select": [ 477 [ 478 { 479 "params": [ 480 "value" 481 ], 482 "type": "column" 483 } 484 ] 485 ], 486 "table": "process_resident_memory_bytes", 487 "timeColumn": "collecttime", 488 "where": [] 489 } 490 ], 491 "title": "Process Memory", 492 "type": "timeseries" 493 }, 494 { 495 "datasource": { 496 "type": "mysql", 497 "uid": "${datasource}" 498 }, 499 "description": "number of open file descriptors and its max limit", 500 "fieldConfig": { 501 "defaults": { 502 "color": { 503 "mode": "palette-classic" 504 }, 505 "custom": { 506 "axisLabel": "", 507 "axisPlacement": "auto", 508 "barAlignment": 0, 509 "drawStyle": "line", 510 "fillOpacity": 0, 511 "gradientMode": "none", 512 "hideFrom": { 513 "legend": false, 514 "tooltip": false, 515 "viz": false 516 }, 517 "lineInterpolation": "smooth", 518 "lineWidth": 1, 519 "pointSize": 5, 520 "scaleDistribution": { 521 "log": 2, 522 "type": "log" 523 }, 524 "showPoints": "never", 525 "spanNulls": true, 526 "stacking": { 527 "group": "A", 528 "mode": "none" 529 }, 530 "thresholdsStyle": { 531 "mode": "off" 532 } 533 }, 534 "mappings": [], 535 "thresholds": { 536 "mode": "absolute", 537 "steps": [ 538 { 539 "color": "green", 540 "value": null 541 }, 542 { 543 "color": "red", 544 "value": 80 545 } 546 ] 547 }, 548 "unit": "short" 549 }, 550 "overrides": [] 551 }, 552 "gridPos": { 553 "h": 8, 554 "w": 8, 555 "x": 16, 556 "y": 17 557 }, 558 "id": 4, 559 "options": { 560 "legend": { 561 "calcs": [], 562 "displayMode": "list", 563 "placement": "bottom" 564 }, 565 "tooltip": { 566 "mode": "multi", 567 "sort": "none" 568 } 569 }, 570 "pluginVersion": "8.4.5", 571 "targets": [ 572 { 573 "datasource": { 574 "type": "mysql", 575 "uid": "${datasource}" 576 }, 577 "format": "time_series", 578 "group": [], 579 "metricColumn": "none", 580 "queryType": "randomWalk", 581 "rawQuery": true, 582 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as open\nFROM process_open_fds\nWHERE\n $__timeFilter(collecttime)\nORDER BY collecttime", 583 "refId": "A", 584 "select": [ 585 [ 586 { 587 "params": [ 588 "value" 589 ], 590 "type": "column" 591 } 592 ] 593 ], 594 "table": "process_open_fds", 595 "timeColumn": "collecttime", 596 "where": [ 597 { 598 "name": "$__timeFilter", 599 "params": [], 600 "type": "macro" 601 } 602 ] 603 }, 604 { 605 "datasource": { 606 "type": "mysql", 607 "uid": "${datasource}" 608 }, 609 "format": "time_series", 610 "group": [], 611 "hide": false, 612 "metricColumn": "none", 613 "rawQuery": true, 614 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as `limitation`\nFROM process_max_fds\nWHERE\n $__timeFilter(collecttime)\nORDER BY collecttime\n", 615 "refId": "B", 616 "select": [ 617 [ 618 { 619 "params": [ 620 "value" 621 ], 622 "type": "column" 623 } 624 ] 625 ], 626 "timeColumn": "time", 627 "where": [ 628 { 629 "name": "$__timeFilter", 630 "params": [], 631 "type": "macro" 632 } 633 ] 634 } 635 ], 636 "title": "File Descriptors", 637 "type": "timeseries" 638 }, 639 { 640 "collapsed": false, 641 "gridPos": { 642 "h": 1, 643 "w": 24, 644 "x": 0, 645 "y": 25 646 }, 647 "id": 13, 648 "panels": [], 649 "title": "Hardware", 650 "type": "row" 651 }, 652 { 653 "datasource": { 654 "type": "mysql", 655 "uid": "${datasource}" 656 }, 657 "description": "CPU Percentage on the current machine, averaged by the number of logical cores", 658 "fieldConfig": { 659 "defaults": { 660 "color": { 661 "mode": "palette-classic" 662 }, 663 "custom": { 664 "axisLabel": "", 665 "axisPlacement": "auto", 666 "barAlignment": 0, 667 "drawStyle": "line", 668 "fillOpacity": 10, 669 "gradientMode": "none", 670 "hideFrom": { 671 "legend": false, 672 "tooltip": false, 673 "viz": false 674 }, 675 "lineInterpolation": "smooth", 676 "lineWidth": 1, 677 "pointSize": 5, 678 "scaleDistribution": { 679 "type": "linear" 680 }, 681 "showPoints": "never", 682 "spanNulls": true, 683 "stacking": { 684 "group": "A", 685 "mode": "none" 686 }, 687 "thresholdsStyle": { 688 "mode": "off" 689 } 690 }, 691 "mappings": [], 692 "max": 100, 693 "min": 0, 694 "thresholds": { 695 "mode": "absolute", 696 "steps": [ 697 { 698 "color": "green", 699 "value": null 700 }, 701 { 702 "color": "red", 703 "value": 80 704 } 705 ] 706 }, 707 "unit": "percent" 708 }, 709 "overrides": [] 710 }, 711 "gridPos": { 712 "h": 8, 713 "w": 12, 714 "x": 0, 715 "y": 26 716 }, 717 "id": 11, 718 "options": { 719 "legend": { 720 "calcs": [], 721 "displayMode": "hidden", 722 "placement": "bottom" 723 }, 724 "tooltip": { 725 "mode": "multi", 726 "sort": "none" 727 } 728 }, 729 "pluginVersion": "8.4.5", 730 "targets": [ 731 { 732 "datasource": { 733 "type": "mysql", 734 "uid": "${datasource}" 735 }, 736 "format": "time_series", 737 "group": [], 738 "metricColumn": "none", 739 "queryType": "randomWalk", 740 "rawQuery": true, 741 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as cpu\nFROM sys_cpu_combined_percent\nWHERE $__timeFilter(collecttime)\nORDER BY collecttime", 742 "refId": "A", 743 "select": [ 744 [ 745 { 746 "params": [ 747 "value" 748 ], 749 "type": "column" 750 } 751 ] 752 ], 753 "timeColumn": "time", 754 "where": [ 755 { 756 "name": "$__timeFilter", 757 "params": [], 758 "type": "macro" 759 } 760 ] 761 } 762 ], 763 "title": "CPU Percentage", 764 "type": "timeseries" 765 }, 766 { 767 "datasource": { 768 "type": "mysql", 769 "uid": "${datasource}" 770 }, 771 "description": "Memory usage on the current machine", 772 "fieldConfig": { 773 "defaults": { 774 "color": { 775 "mode": "palette-classic" 776 }, 777 "custom": { 778 "axisLabel": "", 779 "axisPlacement": "auto", 780 "barAlignment": 0, 781 "drawStyle": "line", 782 "fillOpacity": 10, 783 "gradientMode": "none", 784 "hideFrom": { 785 "legend": false, 786 "tooltip": false, 787 "viz": false 788 }, 789 "lineInterpolation": "smooth", 790 "lineWidth": 1, 791 "pointSize": 5, 792 "scaleDistribution": { 793 "type": "linear" 794 }, 795 "showPoints": "never", 796 "spanNulls": true, 797 "stacking": { 798 "group": "A", 799 "mode": "normal" 800 }, 801 "thresholdsStyle": { 802 "mode": "off" 803 } 804 }, 805 "mappings": [], 806 "thresholds": { 807 "mode": "absolute", 808 "steps": [ 809 { 810 "color": "green", 811 "value": null 812 }, 813 { 814 "color": "red", 815 "value": 80 816 } 817 ] 818 }, 819 "unit": "decbytes" 820 }, 821 "overrides": [] 822 }, 823 "gridPos": { 824 "h": 8, 825 "w": 12, 826 "x": 12, 827 "y": 26 828 }, 829 "id": 9, 830 "options": { 831 "legend": { 832 "calcs": [], 833 "displayMode": "list", 834 "placement": "bottom" 835 }, 836 "tooltip": { 837 "mode": "multi", 838 "sort": "none" 839 } 840 }, 841 "pluginVersion": "8.4.5", 842 "targets": [ 843 { 844 "datasource": { 845 "type": "mysql", 846 "uid": "${datasource}" 847 }, 848 "format": "time_series", 849 "group": [], 850 "metricColumn": "none", 851 "queryType": "randomWalk", 852 "rawQuery": true, 853 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as used\nFROM sys_memory_used\nWHERE $__timeFilter(collecttime)\nORDER BY collecttime", 854 "refId": "A", 855 "select": [ 856 [ 857 { 858 "params": [ 859 "value" 860 ], 861 "type": "column" 862 } 863 ] 864 ], 865 "timeColumn": "time", 866 "where": [ 867 { 868 "name": "$__timeFilter", 869 "params": [], 870 "type": "macro" 871 } 872 ] 873 }, 874 { 875 "datasource": { 876 "type": "mysql", 877 "uid": "${datasource}" 878 }, 879 "format": "time_series", 880 "group": [], 881 "hide": false, 882 "metricColumn": "none", 883 "rawQuery": true, 884 "rawSql": "SELECT\n unix_timestamp(collecttime) as time_sec,\n value as available\nFROM sys_memory_available\nWHERE $__timeFilter(collecttime)\nORDER BY collecttime", 885 "refId": "B", 886 "select": [ 887 [ 888 { 889 "params": [ 890 "value" 891 ], 892 "type": "column" 893 } 894 ] 895 ], 896 "timeColumn": "time", 897 "where": [ 898 { 899 "name": "$__timeFilter", 900 "params": [], 901 "type": "macro" 902 } 903 ] 904 } 905 ], 906 "title": "Memory", 907 "type": "timeseries" 908 } 909 ], 910 "refresh": "30s", 911 "schemaVersion": 35, 912 "style": "dark", 913 "tags": [], 914 "templating": { 915 "list": [ 916 { 917 "current": { 918 "selected": true, 919 "text": "MySQL-MO", 920 "value": "MySQL-MO" 921 }, 922 "hide": 0, 923 "includeAll": false, 924 "multi": false, 925 "name": "datasource", 926 "options": [], 927 "query": "mysql", 928 "queryValue": "", 929 "refresh": 1, 930 "regex": "", 931 "skipUrlSync": false, 932 "type": "datasource" 933 } 934 ] 935 }, 936 "time": { 937 "from": "now-30m", 938 "to": "now" 939 }, 940 "timepicker": { 941 "refresh_intervals": [ 942 "5s", 943 "10s", 944 "15s", 945 "30s", 946 "1m", 947 "5m", 948 "15m", 949 "30m", 950 "1h", 951 "2h", 952 "1d" 953 ] 954 }, 955 "timezone": "", 956 "title": "MO-Overview", 957 "uid": "L4yqe2_7k", 958 "version": 4, 959 "weekStart": "" 960 }