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