github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/build/docker/grafana/dashboards/mattermost/mattermost-performance-monitoring_rev2.json (about) 1 { 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": "-- Grafana --", 7 "enable": true, 8 "hide": true, 9 "iconColor": "rgba(0, 211, 255, 1)", 10 "name": "Annotations & Alerts", 11 "type": "dashboard" 12 }, 13 { 14 "datasource": "Prometheus", 15 "enable": false, 16 "expr": "mattermost_system_server_start_time{instance=~\"$server\"}*1000", 17 "hide": false, 18 "iconColor": "#C8F2C2", 19 "limit": 100, 20 "name": "Server Start", 21 "showIn": 0, 22 "step": "5s", 23 "tagKeys": "instance", 24 "tags": [], 25 "titleFormat": "Server Started", 26 "type": "tags", 27 "useValueForTime": true 28 }, 29 { 30 "datasource": "Prometheus", 31 "enable": false, 32 "expr": "mattermost_jobs_active{instance=~\"$server\"}", 33 "hide": false, 34 "iconColor": "#FFF899", 35 "limit": 100, 36 "name": "Active Jobs", 37 "showIn": 0, 38 "step": "5s", 39 "tagKeys": "type", 40 "tags": [], 41 "titleFormat": "Active Job", 42 "type": "tags", 43 "useValueForTime": false 44 } 45 ] 46 }, 47 "editable": true, 48 "gnetId": 2542, 49 "graphTooltip": 0, 50 "iteration": 1610119520865, 51 "links": [], 52 "panels": [ 53 { 54 "aliasColors": {}, 55 "bars": false, 56 "dashLength": 10, 57 "dashes": false, 58 "datasource": "Prometheus", 59 "editable": true, 60 "error": false, 61 "fieldConfig": { 62 "defaults": { 63 "custom": {} 64 }, 65 "overrides": [] 66 }, 67 "fill": 1, 68 "fillGradient": 0, 69 "gridPos": { 70 "h": 9, 71 "w": 24, 72 "x": 0, 73 "y": 0 74 }, 75 "hiddenSeries": false, 76 "id": 7, 77 "legend": { 78 "avg": false, 79 "current": false, 80 "max": false, 81 "min": false, 82 "show": true, 83 "total": false, 84 "values": false 85 }, 86 "lines": true, 87 "linewidth": 2, 88 "links": [], 89 "nullPointMode": "connected", 90 "options": { 91 "alertThreshold": true 92 }, 93 "percentage": false, 94 "pluginVersion": "7.3.6", 95 "pointradius": 5, 96 "points": false, 97 "renderer": "flot", 98 "seriesOverrides": [], 99 "spaceLength": 10, 100 "stack": false, 101 "steppedLine": false, 102 "targets": [ 103 { 104 "expr": "irate(mattermost_post_total{instance=~\"$server\"}[1m])", 105 "format": "time_series", 106 "interval": "5s", 107 "intervalFactor": 1, 108 "legendFormat": "{{instance}}", 109 "metric": "mattermost_post_total", 110 "refId": "A", 111 "step": 5 112 }, 113 { 114 "expr": "sum(irate(mattermost_post_total{instance=~\"$server\"}[1m]))", 115 "format": "time_series", 116 "interval": "5s", 117 "intervalFactor": 1, 118 "legendFormat": "Total", 119 "metric": "mattermost_post_total", 120 "refId": "B", 121 "step": 5 122 } 123 ], 124 "thresholds": [], 125 "timeFrom": null, 126 "timeRegions": [], 127 "timeShift": null, 128 "title": "Number of Messages per Second", 129 "tooltip": { 130 "msResolution": false, 131 "shared": true, 132 "sort": 0, 133 "value_type": "individual" 134 }, 135 "type": "graph", 136 "xaxis": { 137 "buckets": null, 138 "mode": "time", 139 "name": null, 140 "show": true, 141 "values": [] 142 }, 143 "yaxes": [ 144 { 145 "format": "short", 146 "label": "Count", 147 "logBase": 1, 148 "max": null, 149 "min": null, 150 "show": true 151 }, 152 { 153 "format": "short", 154 "label": null, 155 "logBase": 1, 156 "max": null, 157 "min": null, 158 "show": true 159 } 160 ], 161 "yaxis": { 162 "align": false, 163 "alignLevel": null 164 } 165 }, 166 { 167 "aliasColors": {}, 168 "bars": false, 169 "dashLength": 10, 170 "dashes": false, 171 "datasource": "Prometheus", 172 "editable": true, 173 "error": false, 174 "fieldConfig": { 175 "defaults": { 176 "custom": {} 177 }, 178 "overrides": [] 179 }, 180 "fill": 1, 181 "fillGradient": 0, 182 "gridPos": { 183 "h": 9, 184 "w": 24, 185 "x": 0, 186 "y": 9 187 }, 188 "hiddenSeries": false, 189 "id": 10, 190 "legend": { 191 "avg": false, 192 "current": false, 193 "max": false, 194 "min": false, 195 "show": true, 196 "total": false, 197 "values": false 198 }, 199 "lines": true, 200 "linewidth": 2, 201 "links": [], 202 "nullPointMode": "connected", 203 "options": { 204 "alertThreshold": true 205 }, 206 "percentage": false, 207 "pluginVersion": "7.3.6", 208 "pointradius": 5, 209 "points": false, 210 "renderer": "flot", 211 "seriesOverrides": [], 212 "spaceLength": 10, 213 "stack": false, 214 "steppedLine": false, 215 "targets": [ 216 { 217 "expr": "irate(mattermost_http_errors_total{instance=~\"$server\"}[1m])", 218 "format": "time_series", 219 "interval": "5s", 220 "intervalFactor": 1, 221 "legendFormat": "{{instance}}", 222 "metric": "mattermost_http_errors_total", 223 "refId": "A", 224 "step": 5 225 }, 226 { 227 "expr": "sum(irate(mattermost_http_errors_total{instance=~\"$server\"}[1m]))", 228 "format": "time_series", 229 "interval": "5s", 230 "intervalFactor": 1, 231 "legendFormat": "Total", 232 "metric": "mattermost_http_errors_total", 233 "refId": "B", 234 "step": 5 235 } 236 ], 237 "thresholds": [], 238 "timeFrom": null, 239 "timeRegions": [], 240 "timeShift": null, 241 "title": "Number of API Errors per Second", 242 "tooltip": { 243 "msResolution": false, 244 "shared": true, 245 "sort": 0, 246 "value_type": "individual" 247 }, 248 "type": "graph", 249 "xaxis": { 250 "buckets": null, 251 "mode": "time", 252 "name": null, 253 "show": true, 254 "values": [] 255 }, 256 "yaxes": [ 257 { 258 "format": "short", 259 "label": "Count", 260 "logBase": 1, 261 "max": null, 262 "min": null, 263 "show": true 264 }, 265 { 266 "format": "short", 267 "label": null, 268 "logBase": 1, 269 "max": null, 270 "min": null, 271 "show": true 272 } 273 ], 274 "yaxis": { 275 "align": false, 276 "alignLevel": null 277 } 278 }, 279 { 280 "alert": { 281 "conditions": [ 282 { 283 "evaluator": { 284 "params": [ 285 36000 286 ], 287 "type": "gt" 288 }, 289 "operator": { 290 "type": "and" 291 }, 292 "query": { 293 "params": [ 294 "A", 295 "10s", 296 "now" 297 ] 298 }, 299 "reducer": { 300 "params": [], 301 "type": "last" 302 }, 303 "type": "query" 304 } 305 ], 306 "executionErrorState": "alerting", 307 "frequency": "60s", 308 "handler": 1, 309 "message": "#grafana-alert", 310 "name": "Number of Connected Devices (WebSocket Connections) alert", 311 "noDataState": "no_data", 312 "notifications": [] 313 }, 314 "aliasColors": {}, 315 "bars": false, 316 "dashLength": 10, 317 "dashes": false, 318 "datasource": "Prometheus", 319 "editable": true, 320 "error": false, 321 "fieldConfig": { 322 "defaults": { 323 "custom": {} 324 }, 325 "overrides": [] 326 }, 327 "fill": 1, 328 "fillGradient": 0, 329 "gridPos": { 330 "h": 9, 331 "w": 24, 332 "x": 0, 333 "y": 18 334 }, 335 "hiddenSeries": false, 336 "id": 6, 337 "legend": { 338 "avg": false, 339 "current": false, 340 "max": false, 341 "min": false, 342 "show": true, 343 "total": false, 344 "values": false 345 }, 346 "lines": true, 347 "linewidth": 2, 348 "links": [], 349 "nullPointMode": "connected", 350 "options": { 351 "alertThreshold": true 352 }, 353 "percentage": false, 354 "pluginVersion": "7.3.6", 355 "pointradius": 5, 356 "points": false, 357 "renderer": "flot", 358 "seriesOverrides": [], 359 "spaceLength": 10, 360 "stack": false, 361 "steppedLine": false, 362 "targets": [ 363 { 364 "expr": "mattermost_http_websockets_total{instance=~\"$server\"}", 365 "format": "time_series", 366 "interval": "5s", 367 "intervalFactor": 1, 368 "legendFormat": "{{instance}}", 369 "metric": "mattermost_http_websockets_total", 370 "refId": "A", 371 "step": 5 372 }, 373 { 374 "expr": "sum(mattermost_http_websockets_total{instance=~\"$server\"})", 375 "format": "time_series", 376 "interval": "5s", 377 "intervalFactor": 1, 378 "legendFormat": "Total", 379 "refId": "B", 380 "step": 5 381 } 382 ], 383 "thresholds": [ 384 { 385 "colorMode": "critical", 386 "fill": true, 387 "line": true, 388 "op": "gt", 389 "value": 36000 390 } 391 ], 392 "timeFrom": null, 393 "timeRegions": [], 394 "timeShift": null, 395 "title": "Number of Connected Devices (WebSocket Connections)", 396 "tooltip": { 397 "msResolution": false, 398 "shared": true, 399 "sort": 0, 400 "value_type": "individual" 401 }, 402 "type": "graph", 403 "xaxis": { 404 "buckets": null, 405 "mode": "time", 406 "name": null, 407 "show": true, 408 "values": [] 409 }, 410 "yaxes": [ 411 { 412 "format": "short", 413 "label": "Count", 414 "logBase": 1, 415 "max": null, 416 "min": null, 417 "show": true 418 }, 419 { 420 "format": "short", 421 "label": null, 422 "logBase": 1, 423 "max": null, 424 "min": null, 425 "show": true 426 } 427 ], 428 "yaxis": { 429 "align": false, 430 "alignLevel": null 431 } 432 }, 433 { 434 "aliasColors": {}, 435 "bars": false, 436 "dashLength": 10, 437 "dashes": false, 438 "datasource": "Prometheus", 439 "editable": true, 440 "error": false, 441 "fieldConfig": { 442 "defaults": { 443 "custom": {} 444 }, 445 "overrides": [] 446 }, 447 "fill": 1, 448 "fillGradient": 0, 449 "gridPos": { 450 "h": 9, 451 "w": 24, 452 "x": 0, 453 "y": 27 454 }, 455 "hiddenSeries": false, 456 "id": 1, 457 "legend": { 458 "avg": false, 459 "current": false, 460 "max": false, 461 "min": false, 462 "show": true, 463 "total": false, 464 "values": false 465 }, 466 "lines": true, 467 "linewidth": 2, 468 "links": [], 469 "nullPointMode": "connected", 470 "options": { 471 "alertThreshold": true 472 }, 473 "percentage": false, 474 "pluginVersion": "7.3.6", 475 "pointradius": 5, 476 "points": false, 477 "renderer": "flot", 478 "seriesOverrides": [], 479 "spaceLength": 10, 480 "stack": false, 481 "steppedLine": false, 482 "targets": [ 483 { 484 "expr": "mattermost_db_master_connections_total{instance=~\"$server\"}", 485 "format": "time_series", 486 "interval": "5s", 487 "intervalFactor": 1, 488 "legendFormat": "{{instance}}", 489 "metric": "mattermost_db_master_connections_total", 490 "refId": "A", 491 "step": 5 492 }, 493 { 494 "expr": "sum(mattermost_db_master_connections_total{instance=~\"$server\"})", 495 "format": "time_series", 496 "interval": "5s", 497 "intervalFactor": 1, 498 "legendFormat": "Total", 499 "metric": "mattermost_db_master_connections_total", 500 "refId": "B", 501 "step": 5 502 } 503 ], 504 "thresholds": [], 505 "timeFrom": null, 506 "timeRegions": [], 507 "timeShift": null, 508 "title": "Number of Connections to Master Database", 509 "tooltip": { 510 "msResolution": false, 511 "shared": true, 512 "sort": 0, 513 "value_type": "individual" 514 }, 515 "type": "graph", 516 "xaxis": { 517 "buckets": null, 518 "mode": "time", 519 "name": null, 520 "show": true, 521 "values": [] 522 }, 523 "yaxes": [ 524 { 525 "format": "short", 526 "label": "Count", 527 "logBase": 1, 528 "max": null, 529 "min": null, 530 "show": true 531 }, 532 { 533 "format": "short", 534 "label": null, 535 "logBase": 1, 536 "max": null, 537 "min": null, 538 "show": true 539 } 540 ], 541 "yaxis": { 542 "align": false, 543 "alignLevel": null 544 } 545 }, 546 { 547 "aliasColors": {}, 548 "bars": false, 549 "dashLength": 10, 550 "dashes": false, 551 "datasource": "Prometheus", 552 "editable": true, 553 "error": false, 554 "fieldConfig": { 555 "defaults": { 556 "custom": {} 557 }, 558 "overrides": [] 559 }, 560 "fill": 1, 561 "fillGradient": 0, 562 "gridPos": { 563 "h": 9, 564 "w": 24, 565 "x": 0, 566 "y": 36 567 }, 568 "hiddenSeries": false, 569 "id": 2, 570 "legend": { 571 "avg": false, 572 "current": false, 573 "max": false, 574 "min": false, 575 "show": true, 576 "total": false, 577 "values": false 578 }, 579 "lines": true, 580 "linewidth": 2, 581 "links": [], 582 "nullPointMode": "connected", 583 "options": { 584 "alertThreshold": true 585 }, 586 "percentage": false, 587 "pluginVersion": "7.3.6", 588 "pointradius": 5, 589 "points": false, 590 "renderer": "flot", 591 "seriesOverrides": [], 592 "spaceLength": 10, 593 "stack": false, 594 "steppedLine": false, 595 "targets": [ 596 { 597 "expr": "mattermost_db_read_replica_connections_total{instance=~\"$server\"}", 598 "format": "time_series", 599 "interval": "5s", 600 "intervalFactor": 1, 601 "legendFormat": "{{instance}}", 602 "metric": "mattermost_db_read_replica_connections_total", 603 "refId": "A", 604 "step": 5 605 }, 606 { 607 "expr": "sum(mattermost_db_read_replica_connections_total{instance=~\"$server\"})", 608 "format": "time_series", 609 "interval": "5s", 610 "intervalFactor": 1, 611 "legendFormat": "Total", 612 "metric": "mattermost_db_read_replica_connections_total", 613 "refId": "B", 614 "step": 5 615 } 616 ], 617 "thresholds": [], 618 "timeFrom": null, 619 "timeRegions": [], 620 "timeShift": null, 621 "title": "Number of Connections to Read Replica Databases", 622 "tooltip": { 623 "msResolution": false, 624 "shared": true, 625 "sort": 0, 626 "value_type": "individual" 627 }, 628 "type": "graph", 629 "xaxis": { 630 "buckets": null, 631 "mode": "time", 632 "name": null, 633 "show": true, 634 "values": [] 635 }, 636 "yaxes": [ 637 { 638 "format": "short", 639 "label": "Count", 640 "logBase": 1, 641 "max": null, 642 "min": null, 643 "show": true 644 }, 645 { 646 "format": "short", 647 "label": null, 648 "logBase": 1, 649 "max": null, 650 "min": null, 651 "show": true 652 } 653 ], 654 "yaxis": { 655 "align": false, 656 "alignLevel": null 657 } 658 }, 659 { 660 "aliasColors": {}, 661 "bars": false, 662 "dashLength": 10, 663 "dashes": false, 664 "datasource": "Prometheus", 665 "editable": true, 666 "error": false, 667 "fieldConfig": { 668 "defaults": { 669 "custom": {} 670 }, 671 "overrides": [] 672 }, 673 "fill": 1, 674 "fillGradient": 0, 675 "gridPos": { 676 "h": 9, 677 "w": 24, 678 "x": 0, 679 "y": 45 680 }, 681 "hiddenSeries": false, 682 "id": 3, 683 "legend": { 684 "avg": false, 685 "current": false, 686 "max": false, 687 "min": false, 688 "show": true, 689 "total": false, 690 "values": false 691 }, 692 "lines": true, 693 "linewidth": 2, 694 "links": [], 695 "nullPointMode": "connected", 696 "options": { 697 "alertThreshold": true 698 }, 699 "percentage": false, 700 "pluginVersion": "7.3.6", 701 "pointradius": 5, 702 "points": false, 703 "renderer": "flot", 704 "seriesOverrides": [], 705 "spaceLength": 10, 706 "stack": false, 707 "steppedLine": false, 708 "targets": [ 709 { 710 "expr": "mattermost_db_search_replica_connections_total{instance=~\"$server\"}", 711 "format": "time_series", 712 "interval": "5s", 713 "intervalFactor": 1, 714 "legendFormat": "{{instance}}", 715 "metric": "mattermost_db_search_replica_connections_total", 716 "refId": "A", 717 "step": 5 718 }, 719 { 720 "expr": "sum(mattermost_db_search_replica_connections_total{instance=~\"$server\"})", 721 "format": "time_series", 722 "interval": "5s", 723 "intervalFactor": 1, 724 "legendFormat": "Total", 725 "metric": "mattermost_db_search_replica_connections_total", 726 "refId": "B", 727 "step": 5 728 } 729 ], 730 "thresholds": [], 731 "timeFrom": null, 732 "timeRegions": [], 733 "timeShift": null, 734 "title": "Number of Connections to Search Replica Databases", 735 "tooltip": { 736 "msResolution": false, 737 "shared": true, 738 "sort": 0, 739 "value_type": "individual" 740 }, 741 "type": "graph", 742 "xaxis": { 743 "buckets": null, 744 "mode": "time", 745 "name": null, 746 "show": true, 747 "values": [] 748 }, 749 "yaxes": [ 750 { 751 "format": "short", 752 "label": "Count", 753 "logBase": 1, 754 "max": null, 755 "min": null, 756 "show": true 757 }, 758 { 759 "format": "short", 760 "label": null, 761 "logBase": 1, 762 "max": null, 763 "min": null, 764 "show": true 765 } 766 ], 767 "yaxis": { 768 "align": false, 769 "alignLevel": null 770 } 771 }, 772 { 773 "aliasColors": {}, 774 "bars": false, 775 "dashLength": 10, 776 "dashes": false, 777 "datasource": "Prometheus", 778 "editable": true, 779 "error": false, 780 "fieldConfig": { 781 "defaults": { 782 "custom": {} 783 }, 784 "overrides": [] 785 }, 786 "fill": 1, 787 "fillGradient": 0, 788 "gridPos": { 789 "h": 9, 790 "w": 24, 791 "x": 0, 792 "y": 54 793 }, 794 "hiddenSeries": false, 795 "id": 9, 796 "legend": { 797 "avg": false, 798 "current": false, 799 "max": false, 800 "min": false, 801 "show": true, 802 "total": false, 803 "values": false 804 }, 805 "lines": true, 806 "linewidth": 2, 807 "links": [], 808 "nullPointMode": "connected", 809 "options": { 810 "alertThreshold": true 811 }, 812 "percentage": false, 813 "pluginVersion": "7.3.6", 814 "pointradius": 5, 815 "points": false, 816 "renderer": "flot", 817 "seriesOverrides": [], 818 "spaceLength": 10, 819 "stack": false, 820 "steppedLine": false, 821 "targets": [ 822 { 823 "expr": "sum(irate(mattermost_post_webhooks_total[1m]))", 824 "format": "time_series", 825 "interval": "5s", 826 "intervalFactor": 1, 827 "legendFormat": "Webhooks", 828 "metric": "mattermost_post_webhooks_total", 829 "refId": "A", 830 "step": 5 831 }, 832 { 833 "expr": "sum(irate(mattermost_post_total[1m])*10)-sum(irate(mattermost_post_webhooks_total[1m]))", 834 "format": "time_series", 835 "interval": "5s", 836 "intervalFactor": 1, 837 "legendFormat": "Users", 838 "metric": "mattermost_post_total", 839 "refId": "B", 840 "step": 5 841 } 842 ], 843 "thresholds": [], 844 "timeFrom": null, 845 "timeRegions": [], 846 "timeShift": null, 847 "title": "Number of Messages Per Second by Type", 848 "tooltip": { 849 "msResolution": false, 850 "shared": true, 851 "sort": 0, 852 "value_type": "individual" 853 }, 854 "type": "graph", 855 "xaxis": { 856 "buckets": null, 857 "mode": "time", 858 "name": null, 859 "show": true, 860 "values": [] 861 }, 862 "yaxes": [ 863 { 864 "format": "short", 865 "label": "Count", 866 "logBase": 1, 867 "max": null, 868 "min": null, 869 "show": true 870 }, 871 { 872 "format": "short", 873 "label": null, 874 "logBase": 1, 875 "max": null, 876 "min": null, 877 "show": true 878 } 879 ], 880 "yaxis": { 881 "align": false, 882 "alignLevel": null 883 } 884 }, 885 { 886 "aliasColors": {}, 887 "bars": false, 888 "dashLength": 10, 889 "dashes": false, 890 "datasource": "Prometheus", 891 "editable": true, 892 "error": false, 893 "fieldConfig": { 894 "defaults": { 895 "custom": {} 896 }, 897 "overrides": [] 898 }, 899 "fill": 1, 900 "fillGradient": 0, 901 "gridPos": { 902 "h": 9, 903 "w": 24, 904 "x": 0, 905 "y": 63 906 }, 907 "hiddenSeries": false, 908 "id": 8, 909 "legend": { 910 "avg": false, 911 "current": false, 912 "max": false, 913 "min": false, 914 "show": true, 915 "total": false, 916 "values": false 917 }, 918 "lines": true, 919 "linewidth": 2, 920 "links": [], 921 "nullPointMode": "connected", 922 "options": { 923 "alertThreshold": true 924 }, 925 "percentage": false, 926 "pluginVersion": "7.3.6", 927 "pointradius": 5, 928 "points": false, 929 "renderer": "flot", 930 "seriesOverrides": [], 931 "spaceLength": 10, 932 "stack": false, 933 "steppedLine": false, 934 "targets": [ 935 { 936 "expr": "irate(mattermost_post_broadcasts_total{instance=~\"$server\"}[1m])", 937 "format": "time_series", 938 "interval": "5s", 939 "intervalFactor": 1, 940 "legendFormat": "{{instance}}", 941 "metric": "mattermost_post_broadcasts_total", 942 "refId": "A", 943 "step": 5 944 }, 945 { 946 "expr": "sum(irate(mattermost_post_broadcasts_total{instance=~\"$server\"}[1m]))", 947 "format": "time_series", 948 "interval": "5s", 949 "intervalFactor": 1, 950 "legendFormat": "Total", 951 "metric": "mattermost_post_broadcasts_total", 952 "refId": "B", 953 "step": 5 954 } 955 ], 956 "thresholds": [], 957 "timeFrom": null, 958 "timeRegions": [], 959 "timeShift": null, 960 "title": "Number of Broadcasts per Second", 961 "tooltip": { 962 "msResolution": false, 963 "shared": true, 964 "sort": 0, 965 "value_type": "individual" 966 }, 967 "type": "graph", 968 "xaxis": { 969 "buckets": null, 970 "mode": "time", 971 "name": null, 972 "show": true, 973 "values": [] 974 }, 975 "yaxes": [ 976 { 977 "format": "short", 978 "label": "Count", 979 "logBase": 1, 980 "max": null, 981 "min": null, 982 "show": true 983 }, 984 { 985 "format": "short", 986 "label": null, 987 "logBase": 1, 988 "max": null, 989 "min": null, 990 "show": true 991 } 992 ], 993 "yaxis": { 994 "align": false, 995 "alignLevel": null 996 } 997 }, 998 { 999 "aliasColors": {}, 1000 "bars": false, 1001 "dashLength": 10, 1002 "dashes": false, 1003 "datasource": "Prometheus", 1004 "editable": true, 1005 "error": false, 1006 "fieldConfig": { 1007 "defaults": { 1008 "custom": {} 1009 }, 1010 "overrides": [] 1011 }, 1012 "fill": 1, 1013 "fillGradient": 0, 1014 "gridPos": { 1015 "h": 9, 1016 "w": 24, 1017 "x": 0, 1018 "y": 72 1019 }, 1020 "hiddenSeries": false, 1021 "id": 13, 1022 "legend": { 1023 "avg": false, 1024 "current": false, 1025 "max": false, 1026 "min": false, 1027 "show": true, 1028 "total": false, 1029 "values": false 1030 }, 1031 "lines": true, 1032 "linewidth": 2, 1033 "links": [], 1034 "nullPointMode": "connected", 1035 "options": { 1036 "alertThreshold": true 1037 }, 1038 "percentage": false, 1039 "pluginVersion": "7.3.6", 1040 "pointradius": 5, 1041 "points": false, 1042 "renderer": "flot", 1043 "seriesOverrides": [], 1044 "spaceLength": 10, 1045 "stack": false, 1046 "steppedLine": false, 1047 "targets": [ 1048 { 1049 "expr": "irate(mattermost_process_cpu_seconds_total{instance=~\"$server\"}[1m])* 100", 1050 "format": "time_series", 1051 "interval": "5s", 1052 "intervalFactor": 1, 1053 "legendFormat": "{{instance}}", 1054 "refId": "A", 1055 "step": 5 1056 } 1057 ], 1058 "thresholds": [], 1059 "timeFrom": null, 1060 "timeRegions": [], 1061 "timeShift": null, 1062 "title": "CPU Utilization Rate (%)", 1063 "tooltip": { 1064 "msResolution": false, 1065 "shared": true, 1066 "sort": 0, 1067 "value_type": "individual" 1068 }, 1069 "type": "graph", 1070 "xaxis": { 1071 "buckets": null, 1072 "mode": "time", 1073 "name": null, 1074 "show": true, 1075 "values": [] 1076 }, 1077 "yaxes": [ 1078 { 1079 "format": "short", 1080 "label": "Utilization Rate (%)", 1081 "logBase": 1, 1082 "max": null, 1083 "min": null, 1084 "show": true 1085 }, 1086 { 1087 "format": "short", 1088 "label": null, 1089 "logBase": 1, 1090 "max": null, 1091 "min": null, 1092 "show": true 1093 } 1094 ], 1095 "yaxis": { 1096 "align": false, 1097 "alignLevel": null 1098 } 1099 }, 1100 { 1101 "aliasColors": {}, 1102 "bars": false, 1103 "dashLength": 10, 1104 "dashes": false, 1105 "datasource": "Prometheus", 1106 "editable": true, 1107 "error": false, 1108 "fieldConfig": { 1109 "defaults": { 1110 "custom": {} 1111 }, 1112 "overrides": [] 1113 }, 1114 "fill": 1, 1115 "fillGradient": 0, 1116 "gridPos": { 1117 "h": 9, 1118 "w": 24, 1119 "x": 0, 1120 "y": 81 1121 }, 1122 "hiddenSeries": false, 1123 "id": 11, 1124 "legend": { 1125 "avg": false, 1126 "current": false, 1127 "max": false, 1128 "min": false, 1129 "show": true, 1130 "total": false, 1131 "values": false 1132 }, 1133 "lines": true, 1134 "linewidth": 2, 1135 "links": [], 1136 "nullPointMode": "connected", 1137 "options": { 1138 "alertThreshold": true 1139 }, 1140 "percentage": false, 1141 "pluginVersion": "7.3.6", 1142 "pointradius": 5, 1143 "points": false, 1144 "renderer": "flot", 1145 "seriesOverrides": [], 1146 "spaceLength": 10, 1147 "stack": false, 1148 "steppedLine": false, 1149 "targets": [ 1150 { 1151 "expr": "1000.0 * rate(mattermost_http_request_duration_seconds_sum{instance=~\"$server\"}[1m]) / rate(mattermost_http_request_duration_seconds_count{instance=~\"$server\"}[1m])", 1152 "format": "time_series", 1153 "interval": "5s", 1154 "intervalFactor": 1, 1155 "legendFormat": "{{instance}}", 1156 "metric": "mattermost_http_request_duration_seconds_sum", 1157 "refId": "A", 1158 "step": 5 1159 } 1160 ], 1161 "thresholds": [], 1162 "timeFrom": null, 1163 "timeRegions": [], 1164 "timeShift": null, 1165 "title": "Mean API Request Time (in milliseconds)", 1166 "tooltip": { 1167 "msResolution": false, 1168 "shared": true, 1169 "sort": 0, 1170 "value_type": "individual" 1171 }, 1172 "type": "graph", 1173 "xaxis": { 1174 "buckets": null, 1175 "mode": "time", 1176 "name": null, 1177 "show": true, 1178 "values": [] 1179 }, 1180 "yaxes": [ 1181 { 1182 "format": "short", 1183 "label": "Milliseconds (ms)", 1184 "logBase": 1, 1185 "max": null, 1186 "min": null, 1187 "show": true 1188 }, 1189 { 1190 "format": "short", 1191 "label": null, 1192 "logBase": 1, 1193 "max": null, 1194 "min": null, 1195 "show": true 1196 } 1197 ], 1198 "yaxis": { 1199 "align": false, 1200 "alignLevel": null 1201 } 1202 }, 1203 { 1204 "aliasColors": {}, 1205 "bars": false, 1206 "dashLength": 10, 1207 "dashes": false, 1208 "datasource": "Prometheus", 1209 "editable": true, 1210 "error": false, 1211 "fieldConfig": { 1212 "defaults": { 1213 "custom": {} 1214 }, 1215 "overrides": [] 1216 }, 1217 "fill": 1, 1218 "fillGradient": 0, 1219 "gridPos": { 1220 "h": 9, 1221 "w": 24, 1222 "x": 0, 1223 "y": 90 1224 }, 1225 "hiddenSeries": false, 1226 "id": 12, 1227 "legend": { 1228 "avg": false, 1229 "current": false, 1230 "max": false, 1231 "min": false, 1232 "show": true, 1233 "total": false, 1234 "values": false 1235 }, 1236 "lines": true, 1237 "linewidth": 2, 1238 "links": [], 1239 "nullPointMode": "connected", 1240 "options": { 1241 "alertThreshold": true 1242 }, 1243 "percentage": false, 1244 "pluginVersion": "7.3.6", 1245 "pointradius": 5, 1246 "points": false, 1247 "renderer": "flot", 1248 "seriesOverrides": [], 1249 "spaceLength": 10, 1250 "stack": false, 1251 "steppedLine": false, 1252 "targets": [ 1253 { 1254 "expr": "1000.0 * rate(mattermost_cluster_cluster_request_duration_seconds_sum{instance=~\"$server\"}[1m]) / rate(mattermost_cluster_cluster_request_duration_seconds_count{instance=~\"$server\"}[1m])", 1255 "format": "time_series", 1256 "interval": "5s", 1257 "intervalFactor": 1, 1258 "legendFormat": "{{instance}}", 1259 "refId": "A", 1260 "step": 5 1261 } 1262 ], 1263 "thresholds": [], 1264 "timeFrom": null, 1265 "timeRegions": [], 1266 "timeShift": null, 1267 "title": "Mean Cluster Request Time (in milliseconds)", 1268 "tooltip": { 1269 "msResolution": false, 1270 "shared": true, 1271 "sort": 0, 1272 "value_type": "individual" 1273 }, 1274 "type": "graph", 1275 "xaxis": { 1276 "buckets": null, 1277 "mode": "time", 1278 "name": null, 1279 "show": true, 1280 "values": [] 1281 }, 1282 "yaxes": [ 1283 { 1284 "format": "short", 1285 "label": "Milliseconds (ms)", 1286 "logBase": 1, 1287 "max": null, 1288 "min": null, 1289 "show": true 1290 }, 1291 { 1292 "format": "short", 1293 "label": null, 1294 "logBase": 1, 1295 "max": null, 1296 "min": null, 1297 "show": true 1298 } 1299 ], 1300 "yaxis": { 1301 "align": false, 1302 "alignLevel": null 1303 } 1304 }, 1305 { 1306 "aliasColors": {}, 1307 "bars": false, 1308 "dashLength": 10, 1309 "dashes": false, 1310 "datasource": "Prometheus", 1311 "editable": true, 1312 "error": false, 1313 "fieldConfig": { 1314 "defaults": { 1315 "custom": {} 1316 }, 1317 "overrides": [] 1318 }, 1319 "fill": 1, 1320 "fillGradient": 0, 1321 "gridPos": { 1322 "h": 9, 1323 "w": 24, 1324 "x": 0, 1325 "y": 99 1326 }, 1327 "hiddenSeries": false, 1328 "id": 4, 1329 "legend": { 1330 "avg": false, 1331 "current": false, 1332 "max": false, 1333 "min": false, 1334 "show": true, 1335 "total": false, 1336 "values": false 1337 }, 1338 "lines": true, 1339 "linewidth": 2, 1340 "links": [], 1341 "nullPointMode": "connected", 1342 "options": { 1343 "alertThreshold": true 1344 }, 1345 "percentage": false, 1346 "pluginVersion": "7.3.6", 1347 "pointradius": 5, 1348 "points": false, 1349 "renderer": "flot", 1350 "seriesOverrides": [], 1351 "spaceLength": 10, 1352 "stack": false, 1353 "steppedLine": false, 1354 "targets": [ 1355 { 1356 "expr": "go_goroutines{instance=~\"$server\"}", 1357 "format": "time_series", 1358 "interval": "5s", 1359 "intervalFactor": 1, 1360 "legendFormat": "{{instance}}", 1361 "metric": "go_goroutines", 1362 "refId": "A", 1363 "step": 5 1364 }, 1365 { 1366 "expr": "sum(go_goroutines{instance=~\"$server\"})", 1367 "format": "time_series", 1368 "interval": "5s", 1369 "intervalFactor": 1, 1370 "legendFormat": "Total", 1371 "metric": "go_goroutines", 1372 "refId": "B", 1373 "step": 5 1374 } 1375 ], 1376 "thresholds": [], 1377 "timeFrom": null, 1378 "timeRegions": [], 1379 "timeShift": null, 1380 "title": "Number of Go Routines", 1381 "tooltip": { 1382 "msResolution": false, 1383 "shared": true, 1384 "sort": 0, 1385 "value_type": "individual" 1386 }, 1387 "type": "graph", 1388 "xaxis": { 1389 "buckets": null, 1390 "mode": "time", 1391 "name": null, 1392 "show": true, 1393 "values": [] 1394 }, 1395 "yaxes": [ 1396 { 1397 "format": "short", 1398 "label": "Count", 1399 "logBase": 1, 1400 "max": null, 1401 "min": null, 1402 "show": true 1403 }, 1404 { 1405 "format": "short", 1406 "label": null, 1407 "logBase": 1, 1408 "max": null, 1409 "min": null, 1410 "show": true 1411 } 1412 ], 1413 "yaxis": { 1414 "align": false, 1415 "alignLevel": null 1416 } 1417 }, 1418 { 1419 "aliasColors": {}, 1420 "bars": false, 1421 "dashLength": 10, 1422 "dashes": false, 1423 "datasource": "Prometheus", 1424 "editable": true, 1425 "error": false, 1426 "fieldConfig": { 1427 "defaults": { 1428 "custom": {} 1429 }, 1430 "overrides": [] 1431 }, 1432 "fill": 1, 1433 "fillGradient": 0, 1434 "gridPos": { 1435 "h": 9, 1436 "w": 24, 1437 "x": 0, 1438 "y": 108 1439 }, 1440 "hiddenSeries": false, 1441 "id": 5, 1442 "legend": { 1443 "avg": false, 1444 "current": false, 1445 "max": false, 1446 "min": false, 1447 "show": true, 1448 "total": false, 1449 "values": false 1450 }, 1451 "lines": true, 1452 "linewidth": 2, 1453 "links": [], 1454 "nullPointMode": "connected", 1455 "options": { 1456 "alertThreshold": true 1457 }, 1458 "percentage": false, 1459 "pluginVersion": "7.3.6", 1460 "pointradius": 5, 1461 "points": false, 1462 "renderer": "flot", 1463 "seriesOverrides": [], 1464 "spaceLength": 10, 1465 "stack": false, 1466 "steppedLine": false, 1467 "targets": [ 1468 { 1469 "expr": "go_memstats_alloc_bytes{instance=~\"$server\"}/1024/1024", 1470 "format": "time_series", 1471 "interval": "5s", 1472 "intervalFactor": 1, 1473 "legendFormat": "{{instance}}", 1474 "metric": "go_memstats_alloc_bytes_total", 1475 "refId": "A", 1476 "step": 5 1477 }, 1478 { 1479 "expr": "sum(go_memstats_alloc_bytes{instance=~\"$server\"})/1024/1024", 1480 "format": "time_series", 1481 "interval": "5s", 1482 "intervalFactor": 1, 1483 "legendFormat": "Total", 1484 "metric": "go_memstats_alloc_bytes_total", 1485 "refId": "B", 1486 "step": 5 1487 } 1488 ], 1489 "thresholds": [], 1490 "timeFrom": null, 1491 "timeRegions": [], 1492 "timeShift": null, 1493 "title": "Memory Usage (in MB)", 1494 "tooltip": { 1495 "msResolution": false, 1496 "shared": true, 1497 "sort": 0, 1498 "value_type": "individual" 1499 }, 1500 "type": "graph", 1501 "xaxis": { 1502 "buckets": null, 1503 "mode": "time", 1504 "name": null, 1505 "show": true, 1506 "values": [] 1507 }, 1508 "yaxes": [ 1509 { 1510 "format": "short", 1511 "label": "MB", 1512 "logBase": 1, 1513 "max": null, 1514 "min": null, 1515 "show": true 1516 }, 1517 { 1518 "format": "short", 1519 "label": null, 1520 "logBase": 1, 1521 "max": null, 1522 "min": null, 1523 "show": true 1524 } 1525 ], 1526 "yaxis": { 1527 "align": false, 1528 "alignLevel": null 1529 } 1530 }, 1531 { 1532 "aliasColors": {}, 1533 "bars": false, 1534 "dashLength": 10, 1535 "dashes": false, 1536 "datasource": null, 1537 "description": "A record of any job detected as being active within the configured Prometheus polling interval.", 1538 "fieldConfig": { 1539 "defaults": { 1540 "custom": {} 1541 }, 1542 "overrides": [] 1543 }, 1544 "fill": 1, 1545 "fillGradient": 0, 1546 "gridPos": { 1547 "h": 9, 1548 "w": 24, 1549 "x": 0, 1550 "y": 117 1551 }, 1552 "hiddenSeries": false, 1553 "id": 15, 1554 "legend": { 1555 "alignAsTable": false, 1556 "avg": false, 1557 "current": false, 1558 "hideEmpty": true, 1559 "hideZero": true, 1560 "max": false, 1561 "min": false, 1562 "rightSide": false, 1563 "show": true, 1564 "total": false, 1565 "values": false 1566 }, 1567 "lines": true, 1568 "linewidth": 1, 1569 "nullPointMode": "null", 1570 "options": { 1571 "alertThreshold": true 1572 }, 1573 "percentage": false, 1574 "pluginVersion": "7.3.6", 1575 "pointradius": 2, 1576 "points": false, 1577 "renderer": "flot", 1578 "seriesOverrides": [], 1579 "spaceLength": 10, 1580 "stack": false, 1581 "steppedLine": true, 1582 "targets": [ 1583 { 1584 "expr": "mattermost_jobs_active{instance=~\"$server\"}", 1585 "instant": false, 1586 "interval": "", 1587 "legendFormat": "", 1588 "refId": "A" 1589 } 1590 ], 1591 "thresholds": [], 1592 "timeFrom": null, 1593 "timeRegions": [], 1594 "timeShift": null, 1595 "title": "Active Jobs", 1596 "tooltip": { 1597 "shared": true, 1598 "sort": 0, 1599 "value_type": "individual" 1600 }, 1601 "type": "graph", 1602 "xaxis": { 1603 "buckets": null, 1604 "mode": "time", 1605 "name": null, 1606 "show": true, 1607 "values": [] 1608 }, 1609 "yaxes": [ 1610 { 1611 "format": "short", 1612 "label": "Active", 1613 "logBase": 1, 1614 "max": null, 1615 "min": null, 1616 "show": true 1617 }, 1618 { 1619 "format": "short", 1620 "label": null, 1621 "logBase": 1, 1622 "max": null, 1623 "min": null, 1624 "show": true 1625 } 1626 ], 1627 "yaxis": { 1628 "align": false, 1629 "alignLevel": null 1630 } 1631 } 1632 ], 1633 "refresh": "5s", 1634 "schemaVersion": 26, 1635 "style": "dark", 1636 "tags": [ 1637 "mattermost", 1638 "mattermost-perf" 1639 ], 1640 "templating": { 1641 "list": [ 1642 { 1643 "allValue": null, 1644 "current": { 1645 "selected": false, 1646 "text": "host.docker.internal:8067", 1647 "value": "host.docker.internal:8067" 1648 }, 1649 "datasource": "Prometheus", 1650 "definition": "", 1651 "error": null, 1652 "hide": 0, 1653 "includeAll": false, 1654 "label": "server", 1655 "multi": true, 1656 "name": "server", 1657 "options": [], 1658 "query": "label_values(instance)", 1659 "refresh": 1, 1660 "regex": "", 1661 "skipUrlSync": false, 1662 "sort": 0, 1663 "tagValuesQuery": null, 1664 "tags": [], 1665 "tagsQuery": null, 1666 "type": "query", 1667 "useTags": false 1668 } 1669 ] 1670 }, 1671 "time": { 1672 "from": "now-6h", 1673 "to": "now" 1674 }, 1675 "timepicker": { 1676 "refresh_intervals": [ 1677 "5s", 1678 "10s", 1679 "30s", 1680 "1m", 1681 "5m", 1682 "15m", 1683 "30m", 1684 "1h", 1685 "2h", 1686 "1d" 1687 ], 1688 "time_options": [ 1689 "5m", 1690 "15m", 1691 "1h", 1692 "6h", 1693 "12h", 1694 "24h", 1695 "2d", 1696 "7d", 1697 "30d" 1698 ] 1699 }, 1700 "timezone": "browser", 1701 "title": "Mattermost Performance Monitoring", 1702 "uid": "000000011", 1703 "version": 1 1704 }