github.com/amazechain/amc@v0.1.3/deployments/prometheus/dashboards/amc.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 "editable": true, 25 "fiscalYearStartMonth": 0, 26 "graphTooltip": 0, 27 "id": 1, 28 "links": [], 29 "liveNow": false, 30 "panels": [ 31 { 32 "collapsed": false, 33 "datasource": { 34 "type": "prometheus" 35 }, 36 "gridPos": { 37 "h": 1, 38 "w": 24, 39 "x": 0, 40 "y": 0 41 }, 42 "id": 4, 43 "panels": [], 44 "targets": [ 45 { 46 "datasource": { 47 "type": "prometheus" 48 }, 49 "refId": "A" 50 } 51 ], 52 "title": "Blockchain", 53 "type": "row" 54 }, 55 { 56 "datasource": { 57 "type": "prometheus" 58 }, 59 "fieldConfig": { 60 "defaults": { 61 "color": { 62 "mode": "palette-classic" 63 }, 64 "custom": { 65 "axisCenteredZero": false, 66 "axisColorMode": "text", 67 "axisLabel": "", 68 "axisPlacement": "auto", 69 "barAlignment": 0, 70 "drawStyle": "line", 71 "fillOpacity": 0, 72 "gradientMode": "none", 73 "hideFrom": { 74 "legend": false, 75 "tooltip": false, 76 "viz": false 77 }, 78 "insertNulls": false, 79 "lineInterpolation": "linear", 80 "lineWidth": 1, 81 "pointSize": 5, 82 "scaleDistribution": { 83 "type": "linear" 84 }, 85 "showPoints": "never", 86 "spanNulls": true, 87 "stacking": { 88 "group": "A", 89 "mode": "none" 90 }, 91 "thresholdsStyle": { 92 "mode": "off" 93 } 94 }, 95 "mappings": [], 96 "thresholds": { 97 "mode": "absolute", 98 "steps": [ 99 { 100 "color": "green", 101 "value": null 102 }, 103 { 104 "color": "red", 105 "value": 80 106 } 107 ] 108 }, 109 "unit": "short" 110 }, 111 "overrides": [] 112 }, 113 "gridPos": { 114 "h": 11, 115 "w": 5, 116 "x": 0, 117 "y": 1 118 }, 119 "id": 110, 120 "links": [], 121 "options": { 122 "legend": { 123 "calcs": [ 124 "lastNotNull" 125 ], 126 "displayMode": "table", 127 "placement": "bottom", 128 "showLegend": true 129 }, 130 "tooltip": { 131 "mode": "single", 132 "sort": "none" 133 } 134 }, 135 "pluginVersion": "8.0.6", 136 "targets": [ 137 { 138 "datasource": { 139 "type": "prometheus" 140 }, 141 "editorMode": "code", 142 "expr": "sync{instance=~\"$instance\",stage=\"headers\"}", 143 "format": "time_series", 144 "interval": "", 145 "intervalFactor": 1, 146 "legendFormat": "header: {{instance}}", 147 "range": true, 148 "refId": "A" 149 }, 150 { 151 "datasource": { 152 "type": "prometheus" 153 }, 154 "expr": "chain_head_block{instance=~\"$instance\"}", 155 "format": "time_series", 156 "interval": "", 157 "intervalFactor": 1, 158 "legendFormat": "block: {{instance}}", 159 "refId": "C" 160 } 161 ], 162 "title": "Chain head", 163 "type": "timeseries" 164 }, 165 { 166 "datasource": { 167 "type": "prometheus", 168 "uid": "PBFA97CFB590B2093" 169 }, 170 "fieldConfig": { 171 "defaults": { 172 "color": { 173 "mode": "palette-classic" 174 }, 175 "custom": { 176 "axisCenteredZero": false, 177 "axisColorMode": "text", 178 "axisLabel": "", 179 "axisPlacement": "auto", 180 "barAlignment": 0, 181 "drawStyle": "line", 182 "fillOpacity": 0, 183 "gradientMode": "none", 184 "hideFrom": { 185 "legend": false, 186 "tooltip": false, 187 "viz": false 188 }, 189 "insertNulls": false, 190 "lineInterpolation": "linear", 191 "lineWidth": 1, 192 "pointSize": 5, 193 "scaleDistribution": { 194 "type": "linear" 195 }, 196 "showPoints": "never", 197 "spanNulls": true, 198 "stacking": { 199 "group": "A", 200 "mode": "none" 201 }, 202 "thresholdsStyle": { 203 "mode": "off" 204 } 205 }, 206 "mappings": [], 207 "thresholds": { 208 "mode": "absolute", 209 "steps": [ 210 { 211 "color": "green", 212 "value": null 213 }, 214 { 215 "color": "red", 216 "value": 80 217 } 218 ] 219 }, 220 "unit": "short" 221 }, 222 "overrides": [] 223 }, 224 "gridPos": { 225 "h": 11, 226 "w": 5, 227 "x": 5, 228 "y": 1 229 }, 230 "id": 116, 231 "links": [], 232 "options": { 233 "legend": { 234 "calcs": [ 235 "mean" 236 ], 237 "displayMode": "table", 238 "placement": "bottom", 239 "showLegend": true 240 }, 241 "tooltip": { 242 "mode": "multi", 243 "sort": "none" 244 } 245 }, 246 "pluginVersion": "8.0.6", 247 "targets": [ 248 { 249 "datasource": { 250 "type": "prometheus" 251 }, 252 "editorMode": "code", 253 "expr": "txpool_pending{instance=~\"$instance\"}", 254 "format": "time_series", 255 "interval": "", 256 "intervalFactor": 1, 257 "legendFormat": "pending: {{instance}}", 258 "range": true, 259 "refId": "A" 260 }, 261 { 262 "datasource": { 263 "type": "prometheus" 264 }, 265 "editorMode": "code", 266 "expr": "txpool_local{instance=~\"$instance\"}", 267 "format": "time_series", 268 "hide": false, 269 "interval": "", 270 "intervalFactor": 1, 271 "legendFormat": "local: {{instance}}", 272 "range": true, 273 "refId": "D" 274 }, 275 { 276 "datasource": { 277 "type": "prometheus" 278 }, 279 "editorMode": "code", 280 "expr": "txpool_queued{instance=~\"$instance\"}", 281 "format": "time_series", 282 "interval": "", 283 "intervalFactor": 1, 284 "legendFormat": "queued: {{instance}}", 285 "range": true, 286 "refId": "B" 287 } 288 ], 289 "title": "Transaction pool", 290 "type": "timeseries" 291 }, 292 { 293 "datasource": { 294 "type": "prometheus" 295 }, 296 "fieldConfig": { 297 "defaults": { 298 "color": { 299 "mode": "palette-classic" 300 }, 301 "custom": { 302 "axisCenteredZero": false, 303 "axisColorMode": "text", 304 "axisLabel": "", 305 "axisPlacement": "auto", 306 "barAlignment": 0, 307 "drawStyle": "line", 308 "fillOpacity": 0, 309 "gradientMode": "none", 310 "hideFrom": { 311 "legend": false, 312 "tooltip": false, 313 "viz": false 314 }, 315 "insertNulls": false, 316 "lineInterpolation": "linear", 317 "lineWidth": 1, 318 "pointSize": 5, 319 "scaleDistribution": { 320 "type": "linear" 321 }, 322 "showPoints": "never", 323 "spanNulls": true, 324 "stacking": { 325 "group": "A", 326 "mode": "none" 327 }, 328 "thresholdsStyle": { 329 "mode": "off" 330 } 331 }, 332 "mappings": [], 333 "thresholds": { 334 "mode": "absolute", 335 "steps": [ 336 { 337 "color": "green", 338 "value": null 339 }, 340 { 341 "color": "red", 342 "value": 80 343 } 344 ] 345 }, 346 "unit": "percent" 347 }, 348 "overrides": [] 349 }, 350 "gridPos": { 351 "h": 11, 352 "w": 7, 353 "x": 10, 354 "y": 1 355 }, 356 "id": 106, 357 "links": [], 358 "options": { 359 "legend": { 360 "calcs": [ 361 "mean", 362 "lastNotNull" 363 ], 364 "displayMode": "table", 365 "placement": "bottom", 366 "showLegend": true 367 }, 368 "tooltip": { 369 "mode": "multi", 370 "sort": "none" 371 } 372 }, 373 "pluginVersion": "8.0.6", 374 "targets": [ 375 { 376 "datasource": { 377 "type": "prometheus" 378 }, 379 "exemplar": true, 380 "expr": "increase(process_cpu_seconds_system_total{instance=~\"$instance\"}[1m])", 381 "format": "time_series", 382 "interval": "", 383 "intervalFactor": 1, 384 "legendFormat": "system: {{instance}}", 385 "refId": "A" 386 }, 387 { 388 "datasource": { 389 "type": "prometheus" 390 }, 391 "exemplar": true, 392 "expr": "increase(process_cpu_seconds_user_total{instance=~\"$instance\"}[1m])", 393 "format": "time_series", 394 "interval": "", 395 "intervalFactor": 1, 396 "legendFormat": "iowait: {{instance}}", 397 "refId": "B" 398 } 399 ], 400 "title": "CPU", 401 "type": "timeseries" 402 }, 403 { 404 "datasource": { 405 "type": "prometheus" 406 }, 407 "description": "", 408 "fieldConfig": { 409 "defaults": { 410 "color": { 411 "mode": "palette-classic" 412 }, 413 "custom": { 414 "axisCenteredZero": false, 415 "axisColorMode": "text", 416 "axisLabel": "", 417 "axisPlacement": "auto", 418 "barAlignment": 0, 419 "drawStyle": "line", 420 "fillOpacity": 0, 421 "gradientMode": "none", 422 "hideFrom": { 423 "legend": false, 424 "tooltip": false, 425 "viz": false 426 }, 427 "insertNulls": false, 428 "lineInterpolation": "linear", 429 "lineWidth": 1, 430 "pointSize": 5, 431 "scaleDistribution": { 432 "type": "linear" 433 }, 434 "showPoints": "never", 435 "spanNulls": true, 436 "stacking": { 437 "group": "A", 438 "mode": "none" 439 }, 440 "thresholdsStyle": { 441 "mode": "off" 442 } 443 }, 444 "mappings": [], 445 "thresholds": { 446 "mode": "absolute", 447 "steps": [ 448 { 449 "color": "green", 450 "value": null 451 }, 452 { 453 "color": "red", 454 "value": 80 455 } 456 ] 457 }, 458 "unit": "decbytes" 459 }, 460 "overrides": [] 461 }, 462 "gridPos": { 463 "h": 11, 464 "w": 7, 465 "x": 17, 466 "y": 1 467 }, 468 "id": 154, 469 "links": [], 470 "options": { 471 "legend": { 472 "calcs": [ 473 "mean", 474 "lastNotNull" 475 ], 476 "displayMode": "table", 477 "placement": "bottom", 478 "showLegend": true 479 }, 480 "tooltip": { 481 "mode": "multi", 482 "sort": "none" 483 } 484 }, 485 "pluginVersion": "8.0.6", 486 "targets": [ 487 { 488 "datasource": { 489 "type": "prometheus" 490 }, 491 "editorMode": "code", 492 "exemplar": true, 493 "expr": "go_memstats_stack_sys_bytes{instance=~\"$instance\"}", 494 "format": "time_series", 495 "hide": true, 496 "interval": "", 497 "intervalFactor": 1, 498 "legendFormat": "stack_sys: {{ instance }}", 499 "range": true, 500 "refId": "A" 501 }, 502 { 503 "datasource": { 504 "type": "prometheus" 505 }, 506 "editorMode": "code", 507 "exemplar": true, 508 "expr": "go_memstats_sys_bytes{instance=~\"$instance\"}", 509 "format": "time_series", 510 "hide": true, 511 "interval": "", 512 "intervalFactor": 1, 513 "legendFormat": "max: {{ instance }}", 514 "range": true, 515 "refId": "B" 516 }, 517 { 518 "datasource": { 519 "type": "prometheus" 520 }, 521 "editorMode": "code", 522 "exemplar": true, 523 "expr": "go_memstats_stack_inuse_bytes{instance=~\"$instance\"}", 524 "format": "time_series", 525 "hide": true, 526 "interval": "", 527 "intervalFactor": 1, 528 "legendFormat": "stack_inuse: {{ instance }}", 529 "range": true, 530 "refId": "C" 531 }, 532 { 533 "datasource": { 534 "type": "prometheus" 535 }, 536 "editorMode": "code", 537 "exemplar": true, 538 "expr": "go_memstats_mspan_sys_bytes{instance=~\"$instance\"}", 539 "format": "time_series", 540 "hide": true, 541 "interval": "", 542 "intervalFactor": 1, 543 "legendFormat": "mspan_sys: {{ instance }}", 544 "range": true, 545 "refId": "D" 546 }, 547 { 548 "datasource": { 549 "type": "prometheus" 550 }, 551 "editorMode": "code", 552 "exemplar": true, 553 "expr": "go_memstats_mcache_sys_bytes{instance=~\"$instance\"}", 554 "format": "time_series", 555 "hide": true, 556 "interval": "", 557 "intervalFactor": 1, 558 "legendFormat": "mcache_sys: {{ instance }}", 559 "range": true, 560 "refId": "E" 561 }, 562 { 563 "datasource": { 564 "type": "prometheus" 565 }, 566 "editorMode": "code", 567 "exemplar": true, 568 "expr": "go_memstats_heap_alloc_bytes{instance=~\"$instance\"}", 569 "format": "time_series", 570 "hide": false, 571 "interval": "", 572 "intervalFactor": 1, 573 "legendFormat": "current: {{ instance }}", 574 "range": true, 575 "refId": "F" 576 } 577 ], 578 "title": "Memory Use", 579 "type": "timeseries" 580 }, 581 { 582 "datasource": { 583 "type": "prometheus" 584 }, 585 "description": "", 586 "fieldConfig": { 587 "defaults": { 588 "color": { 589 "mode": "palette-classic" 590 }, 591 "custom": { 592 "axisCenteredZero": false, 593 "axisColorMode": "text", 594 "axisLabel": "sign number", 595 "axisPlacement": "auto", 596 "barAlignment": 0, 597 "drawStyle": "line", 598 "fillOpacity": 0, 599 "gradientMode": "none", 600 "hideFrom": { 601 "legend": false, 602 "tooltip": false, 603 "viz": false 604 }, 605 "insertNulls": false, 606 "lineInterpolation": "linear", 607 "lineWidth": 1, 608 "pointSize": 5, 609 "scaleDistribution": { 610 "type": "linear" 611 }, 612 "showPoints": "auto", 613 "spanNulls": false, 614 "stacking": { 615 "group": "A", 616 "mode": "none" 617 }, 618 "thresholdsStyle": { 619 "mode": "off" 620 } 621 }, 622 "mappings": [], 623 "thresholds": { 624 "mode": "absolute", 625 "steps": [ 626 { 627 "color": "green", 628 "value": null 629 }, 630 { 631 "color": "red", 632 "value": 80 633 } 634 ] 635 } 636 }, 637 "overrides": [] 638 }, 639 "gridPos": { 640 "h": 8, 641 "w": 9, 642 "x": 0, 643 "y": 12 644 }, 645 "id": 197, 646 "options": { 647 "legend": { 648 "calcs": [ 649 "lastNotNull" 650 ], 651 "displayMode": "table", 652 "placement": "bottom", 653 "showLegend": true 654 }, 655 "tooltip": { 656 "mode": "single", 657 "sort": "none" 658 } 659 }, 660 "targets": [ 661 { 662 "datasource": { 663 "type": "prometheus" 664 }, 665 "disableTextWrap": false, 666 "editorMode": "builder", 667 "expr": "block_sign_counter{instance=~\"$instance\"}", 668 "fullMetaSearch": false, 669 "includeNullMetadata": true, 670 "instant": false, 671 "legendFormat": "sign:{{instance}}", 672 "range": true, 673 "refId": "A", 674 "useBackend": false 675 } 676 ], 677 "title": "Block signatures", 678 "type": "timeseries" 679 }, 680 { 681 "datasource": { 682 "type": "prometheus" 683 }, 684 "fieldConfig": { 685 "defaults": { 686 "color": { 687 "mode": "palette-classic" 688 }, 689 "custom": { 690 "axisCenteredZero": false, 691 "axisColorMode": "text", 692 "axisLabel": "", 693 "axisPlacement": "auto", 694 "barAlignment": 0, 695 "drawStyle": "line", 696 "fillOpacity": 0, 697 "gradientMode": "none", 698 "hideFrom": { 699 "legend": false, 700 "tooltip": false, 701 "viz": false 702 }, 703 "insertNulls": false, 704 "lineInterpolation": "linear", 705 "lineWidth": 1, 706 "pointSize": 5, 707 "scaleDistribution": { 708 "type": "linear" 709 }, 710 "showPoints": "never", 711 "spanNulls": true, 712 "stacking": { 713 "group": "A", 714 "mode": "none" 715 }, 716 "thresholdsStyle": { 717 "mode": "off" 718 } 719 }, 720 "mappings": [], 721 "thresholds": { 722 "mode": "absolute", 723 "steps": [ 724 { 725 "color": "green", 726 "value": null 727 }, 728 { 729 "color": "red", 730 "value": 80 731 } 732 ] 733 }, 734 "unit": "none" 735 }, 736 "overrides": [] 737 }, 738 "gridPos": { 739 "h": 11, 740 "w": 7, 741 "x": 10, 742 "y": 12 743 }, 744 "id": 77, 745 "links": [], 746 "options": { 747 "legend": { 748 "calcs": [ 749 "mean", 750 "lastNotNull", 751 "max", 752 "min" 753 ], 754 "displayMode": "table", 755 "placement": "bottom", 756 "showLegend": true 757 }, 758 "tooltip": { 759 "mode": "multi", 760 "sort": "none" 761 } 762 }, 763 "pluginVersion": "8.0.6", 764 "targets": [ 765 { 766 "datasource": { 767 "type": "prometheus" 768 }, 769 "expr": "p2p_peer_count{instance=~\"$instance\"}", 770 "format": "time_series", 771 "interval": "", 772 "intervalFactor": 1, 773 "legendFormat": "peers: {{instance}}-{{state}}", 774 "refId": "A" 775 }, 776 { 777 "datasource": { 778 "type": "prometheus" 779 }, 780 "expr": "rate(p2p_dials{instance=~\"$instance\"}[1m])", 781 "format": "time_series", 782 "interval": "", 783 "intervalFactor": 1, 784 "legendFormat": "dials: {{instance}}", 785 "refId": "B" 786 }, 787 { 788 "datasource": { 789 "type": "prometheus" 790 }, 791 "expr": "rate(p2p_serves{instance=~\"$instance\"}[1m])", 792 "format": "time_series", 793 "interval": "", 794 "intervalFactor": 1, 795 "legendFormat": "serves: {{instance}}", 796 "refId": "C" 797 } 798 ], 799 "title": "Peers", 800 "type": "timeseries" 801 }, 802 { 803 "datasource": { 804 "type": "prometheus" 805 }, 806 "fieldConfig": { 807 "defaults": { 808 "color": { 809 "mode": "palette-classic" 810 }, 811 "custom": { 812 "axisCenteredZero": false, 813 "axisColorMode": "text", 814 "axisLabel": "", 815 "axisPlacement": "auto", 816 "barAlignment": 0, 817 "drawStyle": "line", 818 "fillOpacity": 0, 819 "gradientMode": "none", 820 "hideFrom": { 821 "legend": false, 822 "tooltip": false, 823 "viz": false 824 }, 825 "insertNulls": false, 826 "lineInterpolation": "linear", 827 "lineWidth": 1, 828 "pointSize": 5, 829 "scaleDistribution": { 830 "type": "linear" 831 }, 832 "showPoints": "never", 833 "spanNulls": true, 834 "stacking": { 835 "group": "A", 836 "mode": "none" 837 }, 838 "thresholdsStyle": { 839 "mode": "off" 840 } 841 }, 842 "mappings": [], 843 "thresholds": { 844 "mode": "absolute", 845 "steps": [ 846 { 847 "color": "green", 848 "value": null 849 }, 850 { 851 "color": "red", 852 "value": 80 853 } 854 ] 855 }, 856 "unit": "Bps" 857 }, 858 "overrides": [] 859 }, 860 "gridPos": { 861 "h": 11, 862 "w": 7, 863 "x": 17, 864 "y": 12 865 }, 866 "id": 96, 867 "links": [], 868 "options": { 869 "legend": { 870 "calcs": [ 871 "mean", 872 "lastNotNull" 873 ], 874 "displayMode": "table", 875 "placement": "bottom", 876 "showLegend": true 877 }, 878 "tooltip": { 879 "mode": "multi", 880 "sort": "none" 881 } 882 }, 883 "pluginVersion": "8.0.6", 884 "targets": [ 885 { 886 "datasource": { 887 "type": "prometheus" 888 }, 889 "exemplar": true, 890 "expr": "rate(p2p_ingress{instance=~\"$instance\"}[$rate_interval])", 891 "format": "time_series", 892 "interval": "", 893 "intervalFactor": 1, 894 "legendFormat": "ingress: {{instance}}", 895 "refId": "B" 896 }, 897 { 898 "datasource": { 899 "type": "prometheus" 900 }, 901 "exemplar": true, 902 "expr": "rate(p2p_egress{instance=~\"$instance\"}[$rate_interval])", 903 "format": "time_series", 904 "hide": true, 905 "interval": "", 906 "intervalFactor": 1, 907 "legendFormat": "egress: {{instance}}", 908 "refId": "C" 909 } 910 ], 911 "title": "Network Traffic", 912 "type": "timeseries" 913 }, 914 { 915 "datasource": { 916 "type": "prometheus" 917 }, 918 "fieldConfig": { 919 "defaults": { 920 "color": { 921 "mode": "palette-classic" 922 }, 923 "custom": { 924 "axisCenteredZero": false, 925 "axisColorMode": "text", 926 "axisLabel": "", 927 "axisPlacement": "auto", 928 "barAlignment": 0, 929 "drawStyle": "line", 930 "fillOpacity": 0, 931 "gradientMode": "none", 932 "hideFrom": { 933 "legend": false, 934 "tooltip": false, 935 "viz": false 936 }, 937 "insertNulls": false, 938 "lineInterpolation": "linear", 939 "lineWidth": 1, 940 "pointSize": 5, 941 "scaleDistribution": { 942 "type": "linear" 943 }, 944 "showPoints": "never", 945 "spanNulls": false, 946 "stacking": { 947 "group": "A", 948 "mode": "normal" 949 }, 950 "thresholdsStyle": { 951 "mode": "off" 952 } 953 }, 954 "mappings": [], 955 "thresholds": { 956 "mode": "absolute", 957 "steps": [ 958 { 959 "color": "green", 960 "value": null 961 }, 962 { 963 "color": "red", 964 "value": 80 965 } 966 ] 967 }, 968 "unit": "short" 969 }, 970 "overrides": [] 971 }, 972 "gridPos": { 973 "h": 8, 974 "w": 7, 975 "x": 10, 976 "y": 23 977 }, 978 "id": 85, 979 "links": [], 980 "options": { 981 "legend": { 982 "calcs": [ 983 "mean", 984 "lastNotNull" 985 ], 986 "displayMode": "table", 987 "placement": "bottom", 988 "showLegend": true 989 }, 990 "tooltip": { 991 "mode": "multi", 992 "sort": "none" 993 } 994 }, 995 "pluginVersion": "8.0.6", 996 "targets": [ 997 { 998 "datasource": { 999 "type": "prometheus" 1000 }, 1001 "exemplar": true, 1002 "expr": "rate(process_io_storage_read_bytes_total{instance=~\"$instance\"}[$rate_interval])", 1003 "format": "time_series", 1004 "interval": "", 1005 "intervalFactor": 1, 1006 "legendFormat": "read: {{instance}}", 1007 "refId": "A" 1008 }, 1009 { 1010 "datasource": { 1011 "type": "prometheus" 1012 }, 1013 "exemplar": true, 1014 "expr": "rate(process_io_storage_written_bytes_total{instance=~\"$instance\"}[$rate_interval])", 1015 "format": "time_series", 1016 "interval": "", 1017 "intervalFactor": 1, 1018 "legendFormat": "write: {{instance}}", 1019 "refId": "B" 1020 } 1021 ], 1022 "title": "Disk bytes/sec", 1023 "type": "timeseries" 1024 }, 1025 { 1026 "datasource": { 1027 "type": "prometheus" 1028 }, 1029 "fieldConfig": { 1030 "defaults": { 1031 "color": { 1032 "mode": "palette-classic" 1033 }, 1034 "custom": { 1035 "axisCenteredZero": false, 1036 "axisColorMode": "text", 1037 "axisLabel": "", 1038 "axisPlacement": "auto", 1039 "barAlignment": 0, 1040 "drawStyle": "line", 1041 "fillOpacity": 0, 1042 "gradientMode": "none", 1043 "hideFrom": { 1044 "legend": false, 1045 "tooltip": false, 1046 "viz": false 1047 }, 1048 "insertNulls": false, 1049 "lineInterpolation": "linear", 1050 "lineWidth": 1, 1051 "pointSize": 5, 1052 "scaleDistribution": { 1053 "type": "linear" 1054 }, 1055 "showPoints": "never", 1056 "spanNulls": true, 1057 "stacking": { 1058 "group": "A", 1059 "mode": "none" 1060 }, 1061 "thresholdsStyle": { 1062 "mode": "off" 1063 } 1064 }, 1065 "mappings": [], 1066 "thresholds": { 1067 "mode": "absolute", 1068 "steps": [ 1069 { 1070 "color": "green", 1071 "value": null 1072 }, 1073 { 1074 "color": "red", 1075 "value": 80 1076 } 1077 ] 1078 }, 1079 "unit": "decbytes" 1080 }, 1081 "overrides": [] 1082 }, 1083 "gridPos": { 1084 "h": 8, 1085 "w": 7, 1086 "x": 17, 1087 "y": 23 1088 }, 1089 "id": 159, 1090 "options": { 1091 "legend": { 1092 "calcs": [ 1093 "lastNotNull" 1094 ], 1095 "displayMode": "table", 1096 "placement": "bottom", 1097 "showLegend": true 1098 }, 1099 "tooltip": { 1100 "mode": "multi", 1101 "sort": "none" 1102 } 1103 }, 1104 "pluginVersion": "8.4.7", 1105 "targets": [ 1106 { 1107 "datasource": { 1108 "type": "prometheus" 1109 }, 1110 "expr": "db_size{instance=~\"$instance\"}", 1111 "interval": "", 1112 "legendFormat": "size: {{instance}}", 1113 "refId": "A" 1114 }, 1115 { 1116 "datasource": { 1117 "type": "prometheus" 1118 }, 1119 "editorMode": "code", 1120 "expr": "db_mi_last_pgno{instance=~\"$instance\"}", 1121 "hide": false, 1122 "interval": "", 1123 "legendFormat": "db_mi_last_pgno: {{instance}}", 1124 "range": true, 1125 "refId": "B" 1126 } 1127 ], 1128 "title": "DB Size", 1129 "type": "timeseries" 1130 }, 1131 { 1132 "collapsed": false, 1133 "datasource": { 1134 "type": "prometheus" 1135 }, 1136 "gridPos": { 1137 "h": 1, 1138 "w": 24, 1139 "x": 0, 1140 "y": 31 1141 }, 1142 "id": 183, 1143 "panels": [], 1144 "targets": [ 1145 { 1146 "datasource": { 1147 "type": "prometheus" 1148 }, 1149 "refId": "A" 1150 } 1151 ], 1152 "title": "RPC", 1153 "type": "row" 1154 }, 1155 { 1156 "datasource": { 1157 "type": "prometheus" 1158 }, 1159 "fieldConfig": { 1160 "defaults": { 1161 "color": { 1162 "mode": "palette-classic" 1163 }, 1164 "custom": { 1165 "axisCenteredZero": false, 1166 "axisColorMode": "text", 1167 "axisLabel": "", 1168 "axisPlacement": "auto", 1169 "barAlignment": 0, 1170 "drawStyle": "line", 1171 "fillOpacity": 0, 1172 "gradientMode": "none", 1173 "hideFrom": { 1174 "legend": false, 1175 "tooltip": false, 1176 "viz": false 1177 }, 1178 "insertNulls": false, 1179 "lineInterpolation": "linear", 1180 "lineWidth": 1, 1181 "pointSize": 5, 1182 "scaleDistribution": { 1183 "type": "linear" 1184 }, 1185 "showPoints": "auto", 1186 "spanNulls": false, 1187 "stacking": { 1188 "group": "A", 1189 "mode": "none" 1190 }, 1191 "thresholdsStyle": { 1192 "mode": "off" 1193 } 1194 }, 1195 "mappings": [], 1196 "thresholds": { 1197 "mode": "absolute", 1198 "steps": [ 1199 { 1200 "color": "green", 1201 "value": null 1202 }, 1203 { 1204 "color": "red", 1205 "value": 80 1206 } 1207 ] 1208 }, 1209 "unit": "reqps" 1210 }, 1211 "overrides": [] 1212 }, 1213 "gridPos": { 1214 "h": 8, 1215 "w": 12, 1216 "x": 0, 1217 "y": 32 1218 }, 1219 "id": 185, 1220 "options": { 1221 "legend": { 1222 "calcs": [ 1223 "mean", 1224 "last" 1225 ], 1226 "displayMode": "list", 1227 "placement": "bottom", 1228 "showLegend": true 1229 }, 1230 "tooltip": { 1231 "mode": "single", 1232 "sort": "none" 1233 } 1234 }, 1235 "targets": [ 1236 { 1237 "datasource": { 1238 "type": "prometheus" 1239 }, 1240 "exemplar": true, 1241 "expr": "rate(rpc_duration_seconds_count{instance=~\"$instance\",success=\"success\"}[1m])", 1242 "interval": "", 1243 "legendFormat": "success {{ method }} {{ instance }} ", 1244 "refId": "A" 1245 }, 1246 { 1247 "datasource": { 1248 "type": "prometheus" 1249 }, 1250 "exemplar": true, 1251 "expr": "rate(rpc_duration_seconds_count{instance=~\"$instance\",success=\"failure\"}[1m])", 1252 "hide": false, 1253 "interval": "", 1254 "legendFormat": "failure {{ method }} {{ instance }} ", 1255 "refId": "B" 1256 } 1257 ], 1258 "title": "RPS", 1259 "transformations": [], 1260 "type": "timeseries" 1261 }, 1262 { 1263 "datasource": { 1264 "type": "prometheus" 1265 }, 1266 "fieldConfig": { 1267 "defaults": { 1268 "color": { 1269 "mode": "palette-classic" 1270 }, 1271 "custom": { 1272 "axisCenteredZero": false, 1273 "axisColorMode": "text", 1274 "axisLabel": "", 1275 "axisPlacement": "auto", 1276 "barAlignment": 0, 1277 "drawStyle": "line", 1278 "fillOpacity": 0, 1279 "gradientMode": "none", 1280 "hideFrom": { 1281 "legend": false, 1282 "tooltip": false, 1283 "viz": false 1284 }, 1285 "insertNulls": false, 1286 "lineInterpolation": "linear", 1287 "lineWidth": 1, 1288 "pointSize": 5, 1289 "scaleDistribution": { 1290 "type": "linear" 1291 }, 1292 "showPoints": "auto", 1293 "spanNulls": false, 1294 "stacking": { 1295 "group": "A", 1296 "mode": "none" 1297 }, 1298 "thresholdsStyle": { 1299 "mode": "off" 1300 } 1301 }, 1302 "mappings": [], 1303 "thresholds": { 1304 "mode": "absolute", 1305 "steps": [ 1306 { 1307 "color": "green", 1308 "value": null 1309 }, 1310 { 1311 "color": "red", 1312 "value": 80 1313 } 1314 ] 1315 }, 1316 "unit": "s" 1317 }, 1318 "overrides": [] 1319 }, 1320 "gridPos": { 1321 "h": 8, 1322 "w": 12, 1323 "x": 12, 1324 "y": 32 1325 }, 1326 "id": 187, 1327 "options": { 1328 "legend": { 1329 "calcs": [ 1330 "mean", 1331 "last" 1332 ], 1333 "displayMode": "list", 1334 "placement": "bottom", 1335 "showLegend": true 1336 }, 1337 "tooltip": { 1338 "mode": "single", 1339 "sort": "none" 1340 } 1341 }, 1342 "targets": [ 1343 { 1344 "datasource": { 1345 "type": "prometheus" 1346 }, 1347 "exemplar": true, 1348 "expr": "rpc_duration_seconds{quantile=\"$quantile\",instance=~\"$instance\"}", 1349 "interval": "", 1350 "legendFormat": " {{ method }} {{ instance }} {{ success }}", 1351 "refId": "A" 1352 } 1353 ], 1354 "title": "Timings", 1355 "transformations": [], 1356 "type": "timeseries" 1357 }, 1358 { 1359 "datasource": { 1360 "type": "prometheus" 1361 }, 1362 "fieldConfig": { 1363 "defaults": { 1364 "color": { 1365 "mode": "palette-classic" 1366 }, 1367 "custom": { 1368 "axisCenteredZero": false, 1369 "axisColorMode": "text", 1370 "axisLabel": "", 1371 "axisPlacement": "auto", 1372 "barAlignment": 0, 1373 "drawStyle": "line", 1374 "fillOpacity": 0, 1375 "gradientMode": "none", 1376 "hideFrom": { 1377 "legend": false, 1378 "tooltip": false, 1379 "viz": false 1380 }, 1381 "insertNulls": false, 1382 "lineInterpolation": "linear", 1383 "lineWidth": 1, 1384 "pointSize": 5, 1385 "scaleDistribution": { 1386 "type": "linear" 1387 }, 1388 "showPoints": "auto", 1389 "spanNulls": false, 1390 "stacking": { 1391 "group": "A", 1392 "mode": "none" 1393 }, 1394 "thresholdsStyle": { 1395 "mode": "off" 1396 } 1397 }, 1398 "mappings": [], 1399 "thresholds": { 1400 "mode": "absolute", 1401 "steps": [ 1402 { 1403 "color": "green", 1404 "value": null 1405 }, 1406 { 1407 "color": "red", 1408 "value": 80 1409 } 1410 ] 1411 }, 1412 "unit": "short" 1413 }, 1414 "overrides": [] 1415 }, 1416 "gridPos": { 1417 "h": 8, 1418 "w": 7, 1419 "x": 12, 1420 "y": 40 1421 }, 1422 "id": 189, 1423 "options": { 1424 "legend": { 1425 "calcs": [ 1426 "mean", 1427 "last" 1428 ], 1429 "displayMode": "list", 1430 "placement": "bottom", 1431 "showLegend": true 1432 }, 1433 "tooltip": { 1434 "mode": "single", 1435 "sort": "none" 1436 } 1437 }, 1438 "targets": [ 1439 { 1440 "datasource": { 1441 "type": "prometheus" 1442 }, 1443 "exemplar": true, 1444 "expr": "cache_keys_total{name=\"rpc\",instance=~\"$instance\"}", 1445 "hide": false, 1446 "interval": "", 1447 "legendFormat": "keys: {{ instance }} ", 1448 "refId": "A" 1449 }, 1450 { 1451 "datasource": { 1452 "type": "prometheus" 1453 }, 1454 "exemplar": true, 1455 "expr": "cache_list_total{name=\"rpc\",instance=~\"$instance\"}", 1456 "hide": false, 1457 "interval": "", 1458 "legendFormat": "list: {{ instance }} ", 1459 "refId": "B" 1460 }, 1461 { 1462 "datasource": { 1463 "type": "prometheus" 1464 }, 1465 "exemplar": true, 1466 "expr": "cache_code_keys_total{name=\"rpc\",instance=~\"$instance\"}", 1467 "hide": false, 1468 "interval": "", 1469 "legendFormat": "code_keys: {{ instance }} ", 1470 "refId": "C" 1471 }, 1472 { 1473 "datasource": { 1474 "type": "prometheus" 1475 }, 1476 "exemplar": true, 1477 "expr": "cache_code_list_total{name=\"rpc\",instance=~\"$instance\"}", 1478 "hide": false, 1479 "interval": "", 1480 "legendFormat": "code_list: {{ instance }} ", 1481 "refId": "D" 1482 } 1483 ], 1484 "title": "Cache keys", 1485 "type": "timeseries" 1486 }, 1487 { 1488 "datasource": { 1489 "type": "prometheus" 1490 }, 1491 "fieldConfig": { 1492 "defaults": { 1493 "color": { 1494 "mode": "palette-classic" 1495 }, 1496 "custom": { 1497 "axisCenteredZero": false, 1498 "axisColorMode": "text", 1499 "axisLabel": "", 1500 "axisPlacement": "auto", 1501 "barAlignment": 0, 1502 "drawStyle": "line", 1503 "fillOpacity": 0, 1504 "gradientMode": "none", 1505 "hideFrom": { 1506 "legend": false, 1507 "tooltip": false, 1508 "viz": false 1509 }, 1510 "insertNulls": false, 1511 "lineInterpolation": "linear", 1512 "lineWidth": 1, 1513 "pointSize": 5, 1514 "scaleDistribution": { 1515 "type": "linear" 1516 }, 1517 "showPoints": "auto", 1518 "spanNulls": false, 1519 "stacking": { 1520 "group": "A", 1521 "mode": "none" 1522 }, 1523 "thresholdsStyle": { 1524 "mode": "off" 1525 } 1526 }, 1527 "mappings": [], 1528 "thresholds": { 1529 "mode": "absolute", 1530 "steps": [ 1531 { 1532 "color": "green", 1533 "value": null 1534 }, 1535 { 1536 "color": "red", 1537 "value": 80 1538 } 1539 ] 1540 } 1541 }, 1542 "overrides": [] 1543 }, 1544 "gridPos": { 1545 "h": 8, 1546 "w": 5, 1547 "x": 19, 1548 "y": 40 1549 }, 1550 "id": 184, 1551 "options": { 1552 "legend": { 1553 "calcs": [ 1554 "mean", 1555 "last" 1556 ], 1557 "displayMode": "list", 1558 "placement": "bottom", 1559 "showLegend": true 1560 }, 1561 "tooltip": { 1562 "mode": "single", 1563 "sort": "none" 1564 } 1565 }, 1566 "targets": [ 1567 { 1568 "datasource": { 1569 "type": "prometheus" 1570 }, 1571 "editorMode": "code", 1572 "exemplar": true, 1573 "expr": "sum(delta(cache_total{result=\"hit\",name=\"rpc\",instance=~\"$instance\"}[1m]))/sum(delta(cache_total{name=\"rpc\",instance=~\"$instance\"}[1m])) ", 1574 "hide": false, 1575 "interval": "", 1576 "legendFormat": "hit rate: {{ instance }} ", 1577 "range": true, 1578 "refId": "A" 1579 }, 1580 { 1581 "datasource": { 1582 "type": "prometheus" 1583 }, 1584 "exemplar": true, 1585 "expr": "sum(delta(cache_code_total{result=\"hit\",name=\"rpc\",instance=~\"$instance\"}[1m]))/sum(delta(cache_code_total{name=\"rpc\",instance=~\"$instance\"}[1m])) ", 1586 "hide": false, 1587 "interval": "", 1588 "legendFormat": "code hit rate: {{ instance }} ", 1589 "refId": "B" 1590 } 1591 ], 1592 "title": "Cache hit-rate", 1593 "type": "timeseries" 1594 }, 1595 { 1596 "collapsed": false, 1597 "datasource": { 1598 "type": "prometheus" 1599 }, 1600 "gridPos": { 1601 "h": 1, 1602 "w": 24, 1603 "x": 0, 1604 "y": 48 1605 }, 1606 "id": 138, 1607 "panels": [], 1608 "targets": [ 1609 { 1610 "datasource": { 1611 "type": "prometheus" 1612 }, 1613 "refId": "A" 1614 } 1615 ], 1616 "title": "Private api", 1617 "type": "row" 1618 }, 1619 { 1620 "aliasColors": {}, 1621 "bars": false, 1622 "dashLength": 10, 1623 "dashes": false, 1624 "datasource": { 1625 "type": "prometheus" 1626 }, 1627 "fill": 1, 1628 "fillGradient": 0, 1629 "gridPos": { 1630 "h": 8, 1631 "w": 12, 1632 "x": 0, 1633 "y": 49 1634 }, 1635 "hiddenSeries": false, 1636 "id": 136, 1637 "legend": { 1638 "avg": false, 1639 "current": false, 1640 "max": false, 1641 "min": false, 1642 "show": true, 1643 "total": false, 1644 "values": false 1645 }, 1646 "lines": true, 1647 "linewidth": 1, 1648 "nullPointMode": "null", 1649 "options": { 1650 "alertThreshold": true 1651 }, 1652 "percentage": false, 1653 "pluginVersion": "10.1.2", 1654 "pointradius": 2, 1655 "points": false, 1656 "renderer": "flot", 1657 "seriesOverrides": [], 1658 "spaceLength": 10, 1659 "stack": false, 1660 "steppedLine": false, 1661 "targets": [ 1662 { 1663 "datasource": { 1664 "type": "prometheus" 1665 }, 1666 "expr": "sum by (grpc_service, grpc_method, instance) (rate(grpc_server_started_total{instance=~\"$instance\"}[1m]))", 1667 "interval": "", 1668 "legendFormat": "Calls: {{grpc_service}}.{{grpc_method}}, {{instance}}", 1669 "refId": "A" 1670 }, 1671 { 1672 "datasource": { 1673 "type": "prometheus" 1674 }, 1675 "expr": "sum by (grpc_service, grpc_method, instance) (rate(grpc_server_handled_total{instance=~\"$instance\",grpc_code!=\"OK\"}[1m])) ", 1676 "interval": "", 1677 "legendFormat": "Errors: {{grpc_service}}.{{grpc_method}}, {{instance}}", 1678 "refId": "B" 1679 } 1680 ], 1681 "thresholds": [], 1682 "timeRegions": [], 1683 "title": "gRPC call, error rates ", 1684 "tooltip": { 1685 "shared": true, 1686 "sort": 0, 1687 "value_type": "individual" 1688 }, 1689 "type": "graph", 1690 "xaxis": { 1691 "mode": "time", 1692 "show": true, 1693 "values": [] 1694 }, 1695 "yaxes": [ 1696 { 1697 "format": "short", 1698 "logBase": 1, 1699 "show": true 1700 }, 1701 { 1702 "format": "short", 1703 "logBase": 1, 1704 "show": true 1705 } 1706 ], 1707 "yaxis": { 1708 "align": false 1709 } 1710 } 1711 ], 1712 "refresh": "30s", 1713 "revision": 1, 1714 "schemaVersion": 38, 1715 "style": "dark", 1716 "tags": [], 1717 "templating": { 1718 "list": [ 1719 { 1720 "current": { 1721 "selected": false, 1722 "text": "0.97", 1723 "value": "0.97" 1724 }, 1725 "hide": 0, 1726 "includeAll": false, 1727 "multi": false, 1728 "name": "quantile", 1729 "options": [ 1730 { 1731 "selected": false, 1732 "text": "0.0", 1733 "value": "0.0" 1734 }, 1735 { 1736 "selected": false, 1737 "text": "0.25", 1738 "value": "0.25" 1739 }, 1740 { 1741 "selected": false, 1742 "text": "0.5", 1743 "value": "0.5" 1744 }, 1745 { 1746 "selected": false, 1747 "text": "0.9", 1748 "value": "0.9" 1749 }, 1750 { 1751 "selected": true, 1752 "text": "0.97", 1753 "value": "0.97" 1754 }, 1755 { 1756 "selected": false, 1757 "text": "0.99", 1758 "value": "0.99" 1759 }, 1760 { 1761 "selected": false, 1762 "text": "1", 1763 "value": "1" 1764 } 1765 ], 1766 "query": "0.0,0.25,0.5, 0.9, 0.97, 0.99, 1", 1767 "queryValue": "", 1768 "skipUrlSync": false, 1769 "type": "custom" 1770 }, 1771 { 1772 "current": { 1773 "selected": false, 1774 "text": "All", 1775 "value": "$__all" 1776 }, 1777 "datasource": { 1778 "type": "prometheus", 1779 "uid": "PBFA97CFB590B2093" 1780 }, 1781 "definition": "go_goroutines", 1782 "hide": 0, 1783 "includeAll": true, 1784 "label": "instance", 1785 "multi": true, 1786 "name": "instance", 1787 "options": [], 1788 "query": { 1789 "query": "go_goroutines", 1790 "refId": "StandardVariableQuery" 1791 }, 1792 "refresh": 1, 1793 "regex": "/.*instance=\"([^\"]*).*/", 1794 "skipUrlSync": false, 1795 "sort": 0, 1796 "tagValuesQuery": "", 1797 "tagsQuery": "", 1798 "type": "query", 1799 "useTags": false 1800 }, 1801 { 1802 "auto": false, 1803 "auto_count": 30, 1804 "auto_min": "10s", 1805 "current": { 1806 "selected": false, 1807 "text": "10m", 1808 "value": "10m" 1809 }, 1810 "hide": 0, 1811 "label": "Rate Interval", 1812 "name": "rate_interval", 1813 "options": [ 1814 { 1815 "selected": false, 1816 "text": "1m", 1817 "value": "1m" 1818 }, 1819 { 1820 "selected": true, 1821 "text": "10m", 1822 "value": "10m" 1823 }, 1824 { 1825 "selected": false, 1826 "text": "30m", 1827 "value": "30m" 1828 }, 1829 { 1830 "selected": false, 1831 "text": "1h", 1832 "value": "1h" 1833 }, 1834 { 1835 "selected": false, 1836 "text": "3h", 1837 "value": "3h" 1838 }, 1839 { 1840 "selected": false, 1841 "text": "6h", 1842 "value": "6h" 1843 }, 1844 { 1845 "selected": false, 1846 "text": "12h", 1847 "value": "12h" 1848 }, 1849 { 1850 "selected": false, 1851 "text": "1d", 1852 "value": "1d" 1853 }, 1854 { 1855 "selected": false, 1856 "text": "7d", 1857 "value": "7d" 1858 }, 1859 { 1860 "selected": false, 1861 "text": "14d", 1862 "value": "14d" 1863 }, 1864 { 1865 "selected": false, 1866 "text": "30d", 1867 "value": "30d" 1868 } 1869 ], 1870 "query": "1m,10m,30m,1h,3h,6h,12h,1d,7d,14d,30d", 1871 "queryValue": "", 1872 "refresh": 2, 1873 "skipUrlSync": false, 1874 "type": "interval" 1875 } 1876 ] 1877 }, 1878 "time": { 1879 "from": "now-1h", 1880 "to": "now" 1881 }, 1882 "timepicker": { 1883 "refresh_intervals": [ 1884 "10s", 1885 "30s", 1886 "1m", 1887 "5m", 1888 "15m", 1889 "30m", 1890 "1h", 1891 "2h", 1892 "1d" 1893 ], 1894 "time_options": [ 1895 "5m", 1896 "15m", 1897 "1h", 1898 "6h", 1899 "12h", 1900 "24h", 1901 "2d", 1902 "7d", 1903 "30d" 1904 ] 1905 }, 1906 "timezone": "", 1907 "title": "Amazechain", 1908 "uid": "FPpjH6Hik", 1909 "version": 14, 1910 "weekStart": "" 1911 }