github.com/XiaoMi/Gaea@v1.2.5/docs/template/gaea_proxy.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": null, 17 "graphTooltip": 0, 18 "id": 1193, 19 "links": [], 20 "panels": [ 21 { 22 "aliasColors": {}, 23 "bars": false, 24 "dashLength": 10, 25 "dashes": false, 26 "datasource": "Prometheus", 27 "decimals": null, 28 "fill": 1, 29 "gridPos": { 30 "h": 9, 31 "w": 12, 32 "x": 0, 33 "y": 0 34 }, 35 "id": 1, 36 "legend": { 37 "alignAsTable": true, 38 "avg": false, 39 "current": true, 40 "hideEmpty": false, 41 "hideZero": false, 42 "max": true, 43 "min": false, 44 "rightSide": true, 45 "show": true, 46 "sort": "max", 47 "sortDesc": true, 48 "total": false, 49 "values": true 50 }, 51 "lines": true, 52 "linewidth": 1, 53 "links": [], 54 "nullPointMode": "null", 55 "percentage": false, 56 "pointradius": 5, 57 "points": false, 58 "renderer": "flot", 59 "seriesOverrides": [], 60 "spaceLength": 10, 61 "stack": false, 62 "steppedLine": false, 63 "targets": [ 64 { 65 "expr": "gaea_proxy_sql_timings_count_rate_total", 66 "format": "time_series", 67 "hide": false, 68 "interval": "20s", 69 "intervalFactor": 1, 70 "legendFormat": "total", 71 "metric": "", 72 "refId": "B", 73 "step": 2 74 }, 75 { 76 "expr": "gaea_proxy_sql_timings_count_rate_each_namespace", 77 "format": "time_series", 78 "hide": false, 79 "interval": "20s", 80 "intervalFactor": 1, 81 "legendFormat": "{{namespace}}", 82 "refId": "C", 83 "step": 2 84 } 85 ], 86 "thresholds": [], 87 "timeFrom": null, 88 "timeShift": null, 89 "title": "集群QPS", 90 "tooltip": { 91 "shared": true, 92 "sort": 2, 93 "value_type": "individual" 94 }, 95 "type": "graph", 96 "xaxis": { 97 "buckets": null, 98 "mode": "time", 99 "name": null, 100 "show": true, 101 "values": [] 102 }, 103 "yaxes": [ 104 { 105 "format": "short", 106 "label": null, 107 "logBase": 1, 108 "max": null, 109 "min": null, 110 "show": true 111 }, 112 { 113 "format": "short", 114 "label": null, 115 "logBase": 1, 116 "max": null, 117 "min": null, 118 "show": true 119 } 120 ], 121 "yaxis": { 122 "align": false, 123 "alignLevel": null 124 } 125 }, 126 { 127 "aliasColors": {}, 128 "bars": false, 129 "dashLength": 10, 130 "dashes": false, 131 "datasource": "Prometheus", 132 "fill": 1, 133 "gridPos": { 134 "h": 9, 135 "w": 12, 136 "x": 12, 137 "y": 0 138 }, 139 "id": 13, 140 "legend": { 141 "alignAsTable": true, 142 "avg": false, 143 "current": true, 144 "max": true, 145 "min": false, 146 "rightSide": true, 147 "show": true, 148 "sort": "max", 149 "sortDesc": true, 150 "total": false, 151 "values": true 152 }, 153 "lines": true, 154 "linewidth": 1, 155 "links": [], 156 "nullPointMode": "null", 157 "percentage": false, 158 "pointradius": 5, 159 "points": false, 160 "renderer": "flot", 161 "seriesOverrides": [], 162 "spaceLength": 10, 163 "stack": false, 164 "steppedLine": false, 165 "targets": [ 166 { 167 "expr": "gaea_proxy_flow_counts_rate_namespace_flowdirection", 168 "format": "time_series", 169 "hide": true, 170 "interval": "20s", 171 "intervalFactor": 1, 172 "legendFormat": "{{namespace}}.{{flowdirection}}", 173 "refId": "A", 174 "step": 2 175 }, 176 { 177 "expr": "gaea_proxy_flow_counts_rate_namespace", 178 "format": "time_series", 179 "interval": "20s", 180 "intervalFactor": 1, 181 "legendFormat": "{{namespace}}", 182 "refId": "B", 183 "step": 2 184 }, 185 { 186 "expr": "gaea_proxy_flow_counts_rate_total", 187 "format": "time_series", 188 "interval": "20s", 189 "intervalFactor": 1, 190 "legendFormat": "total", 191 "refId": "C", 192 "step": 2 193 } 194 ], 195 "thresholds": [], 196 "timeFrom": null, 197 "timeShift": null, 198 "title": "业务流量", 199 "tooltip": { 200 "shared": true, 201 "sort": 2, 202 "value_type": "individual" 203 }, 204 "type": "graph", 205 "xaxis": { 206 "buckets": null, 207 "mode": "time", 208 "name": null, 209 "show": true, 210 "values": [] 211 }, 212 "yaxes": [ 213 { 214 "format": "Bps", 215 "label": null, 216 "logBase": 1, 217 "max": null, 218 "min": null, 219 "show": true 220 }, 221 { 222 "format": "Bps", 223 "label": null, 224 "logBase": 1, 225 "max": null, 226 "min": null, 227 "show": true 228 } 229 ], 230 "yaxis": { 231 "align": false, 232 "alignLevel": null 233 } 234 }, 235 { 236 "aliasColors": {}, 237 "bars": false, 238 "dashLength": 10, 239 "dashes": false, 240 "datasource": "Prometheus", 241 "fill": 1, 242 "gridPos": { 243 "h": 9, 244 "w": 12, 245 "x": 0, 246 "y": 9 247 }, 248 "id": 5, 249 "legend": { 250 "alignAsTable": true, 251 "avg": false, 252 "current": true, 253 "hideZero": false, 254 "max": true, 255 "min": false, 256 "rightSide": true, 257 "show": true, 258 "sort": "max", 259 "sortDesc": true, 260 "total": false, 261 "values": true 262 }, 263 "lines": true, 264 "linewidth": 1, 265 "links": [], 266 "nullPointMode": "null as zero", 267 "percentage": false, 268 "pointradius": 5, 269 "points": false, 270 "renderer": "flot", 271 "seriesOverrides": [], 272 "spaceLength": 10, 273 "stack": false, 274 "steppedLine": false, 275 "targets": [ 276 { 277 "expr": "gaea_proxy_sql_timings_rate_namespace_operation", 278 "format": "time_series", 279 "hide": true, 280 "interval": "20s", 281 "intervalFactor": 1, 282 "legendFormat": "{{namespace}}.{{operation}}", 283 "refId": "C" 284 }, 285 { 286 "expr": "gaea_proxy_sql_timings_rate_namespace", 287 "format": "time_series", 288 "hide": false, 289 "interval": "20s", 290 "intervalFactor": 1, 291 "legendFormat": "{{namespace}}", 292 "refId": "A" 293 } 294 ], 295 "thresholds": [], 296 "timeFrom": null, 297 "timeShift": null, 298 "title": "业务请求耗时", 299 "tooltip": { 300 "shared": false, 301 "sort": 0, 302 "value_type": "individual" 303 }, 304 "type": "graph", 305 "xaxis": { 306 "buckets": null, 307 "mode": "time", 308 "name": null, 309 "show": true, 310 "values": [ 311 "total" 312 ] 313 }, 314 "yaxes": [ 315 { 316 "format": "s", 317 "label": null, 318 "logBase": 1, 319 "max": null, 320 "min": null, 321 "show": true 322 }, 323 { 324 "format": "short", 325 "label": null, 326 "logBase": 1, 327 "max": null, 328 "min": null, 329 "show": true 330 } 331 ], 332 "yaxis": { 333 "align": false, 334 "alignLevel": null 335 } 336 }, 337 { 338 "aliasColors": {}, 339 "bars": false, 340 "dashLength": 10, 341 "dashes": false, 342 "datasource": "Prometheus", 343 "fill": 1, 344 "gridPos": { 345 "h": 9, 346 "w": 12, 347 "x": 12, 348 "y": 9 349 }, 350 "id": 14, 351 "legend": { 352 "alignAsTable": true, 353 "avg": false, 354 "current": true, 355 "max": true, 356 "min": false, 357 "rightSide": true, 358 "show": true, 359 "total": false, 360 "values": true 361 }, 362 "lines": true, 363 "linewidth": 1, 364 "links": [], 365 "nullPointMode": "null", 366 "percentage": false, 367 "pointradius": 5, 368 "points": false, 369 "renderer": "flot", 370 "seriesOverrides": [], 371 "spaceLength": 10, 372 "stack": false, 373 "steppedLine": false, 374 "targets": [ 375 { 376 "expr": "gaea_proxy_sql_error_counts_rate_namespace", 377 "format": "time_series", 378 "interval": "20s", 379 "intervalFactor": 1, 380 "legendFormat": "{{namespace}}", 381 "refId": "A", 382 "step": 2, 383 "target": "" 384 } 385 ], 386 "thresholds": [], 387 "timeFrom": null, 388 "timeShift": null, 389 "title": "SQL错误数", 390 "tooltip": { 391 "shared": true, 392 "sort": 0, 393 "value_type": "individual" 394 }, 395 "type": "graph", 396 "xaxis": { 397 "buckets": null, 398 "mode": "time", 399 "name": null, 400 "show": true, 401 "values": [] 402 }, 403 "yaxes": [ 404 { 405 "format": "short", 406 "label": null, 407 "logBase": 1, 408 "max": null, 409 "min": null, 410 "show": true 411 }, 412 { 413 "format": "short", 414 "label": null, 415 "logBase": 1, 416 "max": null, 417 "min": null, 418 "show": true 419 } 420 ], 421 "yaxis": { 422 "align": false, 423 "alignLevel": null 424 } 425 }, 426 { 427 "aliasColors": {}, 428 "bars": false, 429 "dashLength": 10, 430 "dashes": false, 431 "datasource": "Prometheus", 432 "fill": 1, 433 "gridPos": { 434 "h": 8, 435 "w": 12, 436 "x": 0, 437 "y": 18 438 }, 439 "id": 6, 440 "legend": { 441 "alignAsTable": true, 442 "avg": false, 443 "current": true, 444 "max": true, 445 "min": false, 446 "rightSide": true, 447 "show": true, 448 "total": false, 449 "values": true 450 }, 451 "lines": true, 452 "linewidth": 1, 453 "links": [], 454 "nullPointMode": "null", 455 "percentage": false, 456 "pointradius": 5, 457 "points": false, 458 "renderer": "flot", 459 "seriesOverrides": [], 460 "spaceLength": 10, 461 "stack": false, 462 "steppedLine": false, 463 "targets": [ 464 { 465 "expr": "avg(rate(process_cpu_seconds_total{job=\"gaea_proxy\"}[20s])) without (slave)", 466 "format": "time_series", 467 "interval": "20s", 468 "intervalFactor": 1, 469 "legendFormat": "{{instance}}", 470 "metric": "", 471 "refId": "A", 472 "step": 2, 473 "target": "aliasByNode(statsite.gauges.systech.gaea-proxy._.machine.*.resource.cpu.usage, 6)" 474 } 475 ], 476 "thresholds": [], 477 "timeFrom": null, 478 "timeShift": null, 479 "title": "CPU 负载", 480 "tooltip": { 481 "shared": true, 482 "sort": 2, 483 "value_type": "individual" 484 }, 485 "type": "graph", 486 "xaxis": { 487 "buckets": null, 488 "mode": "time", 489 "name": null, 490 "show": true, 491 "values": [] 492 }, 493 "yaxes": [ 494 { 495 "format": "percentunit", 496 "label": null, 497 "logBase": 1, 498 "max": null, 499 "min": null, 500 "show": true 501 }, 502 { 503 "format": "short", 504 "label": null, 505 "logBase": 1, 506 "max": null, 507 "min": null, 508 "show": true 509 } 510 ], 511 "yaxis": { 512 "align": false, 513 "alignLevel": null 514 } 515 }, 516 { 517 "aliasColors": {}, 518 "bars": false, 519 "dashLength": 10, 520 "dashes": false, 521 "datasource": "Prometheus", 522 "fill": 1, 523 "gridPos": { 524 "h": 8, 525 "w": 12, 526 "x": 12, 527 "y": 18 528 }, 529 "id": 10, 530 "legend": { 531 "alignAsTable": true, 532 "avg": false, 533 "current": true, 534 "max": true, 535 "min": false, 536 "rightSide": true, 537 "show": true, 538 "total": false, 539 "values": true 540 }, 541 "lines": true, 542 "linewidth": 1, 543 "links": [], 544 "nullPointMode": "null", 545 "percentage": false, 546 "pointradius": 5, 547 "points": false, 548 "renderer": "flot", 549 "seriesOverrides": [], 550 "spaceLength": 10, 551 "stack": false, 552 "steppedLine": false, 553 "targets": [ 554 { 555 "expr": "avg(go_memstats_alloc_bytes{job=\"gaea_proxy\"}) without (slave)", 556 "format": "time_series", 557 "interval": "20s", 558 "intervalFactor": 2, 559 "legendFormat": "{{instance}}", 560 "metric": "go_memstats_alloc_bytes_total", 561 "refId": "A", 562 "step": 2, 563 "target": "aliasByNode(statsite.gauges.systech.gaea-proxy._.machine.*.resource.memory.heapAlloc, 6)" 564 } 565 ], 566 "thresholds": [], 567 "timeFrom": null, 568 "timeShift": null, 569 "title": "内存负载", 570 "tooltip": { 571 "shared": true, 572 "sort": 0, 573 "value_type": "individual" 574 }, 575 "type": "graph", 576 "xaxis": { 577 "buckets": null, 578 "mode": "time", 579 "name": null, 580 "show": true, 581 "values": [] 582 }, 583 "yaxes": [ 584 { 585 "format": "bytes", 586 "label": null, 587 "logBase": 1, 588 "max": null, 589 "min": null, 590 "show": true 591 }, 592 { 593 "format": "short", 594 "label": null, 595 "logBase": 1, 596 "max": null, 597 "min": null, 598 "show": true 599 } 600 ], 601 "yaxis": { 602 "align": false, 603 "alignLevel": null 604 } 605 }, 606 { 607 "aliasColors": {}, 608 "bars": false, 609 "dashLength": 10, 610 "dashes": false, 611 "datasource": "Prometheus", 612 "fill": 1, 613 "gridPos": { 614 "h": 7, 615 "w": 12, 616 "x": 0, 617 "y": 26 618 }, 619 "id": 15, 620 "legend": { 621 "alignAsTable": true, 622 "avg": false, 623 "current": true, 624 "max": true, 625 "min": false, 626 "rightSide": true, 627 "show": true, 628 "total": false, 629 "values": true 630 }, 631 "lines": true, 632 "linewidth": 1, 633 "links": [], 634 "nullPointMode": "null", 635 "percentage": false, 636 "pointradius": 5, 637 "points": false, 638 "renderer": "flot", 639 "seriesOverrides": [], 640 "spaceLength": 10, 641 "stack": false, 642 "steppedLine": false, 643 "targets": [ 644 { 645 "expr": "sum(avg(rate(gaea_proxy_flow_counts[20s])) without (slave)) by (instance, flowdirection)", 646 "format": "time_series", 647 "hide": false, 648 "intervalFactor": 2, 649 "legendFormat": "{{instance}}.{{flowdirection}}", 650 "refId": "A", 651 "step": 2, 652 "target": "" 653 }, 654 { 655 "expr": "sum(sum(avg(rate(gaea_proxy_flow_counts[20s])) without (slave)) by (instance))", 656 "format": "time_series", 657 "intervalFactor": 2, 658 "legendFormat": "total", 659 "refId": "C", 660 "step": 2 661 }, 662 { 663 "expr": "sum(avg(rate(gaea_proxy_flow_counts[20s])) without (slave)) by (instance)", 664 "format": "time_series", 665 "intervalFactor": 2, 666 "legendFormat": "{{instance}}", 667 "refId": "B", 668 "step": 2 669 } 670 ], 671 "thresholds": [], 672 "timeFrom": null, 673 "timeShift": null, 674 "title": "流量负载", 675 "tooltip": { 676 "shared": true, 677 "sort": 0, 678 "value_type": "individual" 679 }, 680 "type": "graph", 681 "xaxis": { 682 "buckets": null, 683 "mode": "time", 684 "name": null, 685 "show": true, 686 "values": [] 687 }, 688 "yaxes": [ 689 { 690 "format": "Bps", 691 "label": null, 692 "logBase": 1, 693 "max": null, 694 "min": null, 695 "show": true 696 }, 697 { 698 "format": "Bps", 699 "label": null, 700 "logBase": 1, 701 "max": null, 702 "min": null, 703 "show": true 704 } 705 ], 706 "yaxis": { 707 "align": false, 708 "alignLevel": null 709 } 710 }, 711 { 712 "aliasColors": {}, 713 "bars": false, 714 "dashLength": 10, 715 "dashes": false, 716 "datasource": "Prometheus", 717 "fill": 1, 718 "gridPos": { 719 "h": 7, 720 "w": 12, 721 "x": 12, 722 "y": 26 723 }, 724 "id": 16, 725 "legend": { 726 "alignAsTable": true, 727 "avg": false, 728 "current": true, 729 "max": true, 730 "min": false, 731 "rightSide": true, 732 "show": true, 733 "total": false, 734 "values": true 735 }, 736 "lines": true, 737 "linewidth": 1, 738 "links": [], 739 "nullPointMode": "null", 740 "percentage": false, 741 "pointradius": 5, 742 "points": false, 743 "renderer": "flot", 744 "seriesOverrides": [], 745 "spaceLength": 10, 746 "stack": false, 747 "steppedLine": false, 748 "targets": [ 749 { 750 "expr": "sum(sum(avg(gaea_proxy_session_counts) without (slave)) by (instance))", 751 "format": "time_series", 752 "interval": "10s", 753 "intervalFactor": 1, 754 "legendFormat": "total", 755 "refId": "B", 756 "step": 2 757 }, 758 { 759 "expr": "sum(avg(gaea_proxy_session_counts) without (slave)) by (instance)", 760 "format": "time_series", 761 "interval": "10s", 762 "intervalFactor": 1, 763 "legendFormat": "{{instance}}", 764 "refId": "A", 765 "step": 2, 766 "target": "" 767 } 768 ], 769 "thresholds": [], 770 "timeFrom": null, 771 "timeShift": null, 772 "title": "会话数", 773 "tooltip": { 774 "shared": true, 775 "sort": 0, 776 "value_type": "individual" 777 }, 778 "type": "graph", 779 "xaxis": { 780 "buckets": null, 781 "mode": "time", 782 "name": null, 783 "show": true, 784 "values": [] 785 }, 786 "yaxes": [ 787 { 788 "format": "short", 789 "label": null, 790 "logBase": 1, 791 "max": null, 792 "min": null, 793 "show": true 794 }, 795 { 796 "format": "short", 797 "label": null, 798 "logBase": 1, 799 "max": null, 800 "min": null, 801 "show": true 802 } 803 ], 804 "yaxis": { 805 "align": false, 806 "alignLevel": null 807 } 808 }, 809 { 810 "aliasColors": {}, 811 "bars": false, 812 "dashLength": 10, 813 "dashes": false, 814 "datasource": "Prometheus", 815 "fill": 1, 816 "gridPos": { 817 "h": 7, 818 "w": 12, 819 "x": 0, 820 "y": 33 821 }, 822 "id": 7, 823 "legend": { 824 "alignAsTable": true, 825 "avg": false, 826 "current": true, 827 "max": true, 828 "min": false, 829 "rightSide": true, 830 "show": true, 831 "sort": "current", 832 "sortDesc": true, 833 "total": false, 834 "values": true 835 }, 836 "lines": true, 837 "linewidth": 1, 838 "links": [], 839 "nullPointMode": "null", 840 "percentage": false, 841 "pointradius": 5, 842 "points": false, 843 "renderer": "flot", 844 "seriesOverrides": [], 845 "spaceLength": 10, 846 "stack": false, 847 "steppedLine": false, 848 "targets": [ 849 { 850 "expr": "sum(avg(gaea_proxy_session_counts) without (slave)) by (namespace)", 851 "format": "time_series", 852 "hide": false, 853 "interval": "10s", 854 "intervalFactor": 1, 855 "legendFormat": "{{namespace}}", 856 "metric": "", 857 "refId": "A", 858 "step": 2, 859 "target": "aliasByNode(statsite.gauges.systech.gaea-proxy.app.*.session, 5)" 860 }, 861 { 862 "expr": "sum(sum(avg(gaea_proxy_session_counts) without (slave)) by (namespace))", 863 "format": "time_series", 864 "hide": false, 865 "interval": "10s", 866 "intervalFactor": 1, 867 "legendFormat": "total", 868 "refId": "B", 869 "step": 2 870 } 871 ], 872 "thresholds": [], 873 "timeFrom": null, 874 "timeShift": null, 875 "title": "业务会话数", 876 "tooltip": { 877 "shared": true, 878 "sort": 0, 879 "value_type": "individual" 880 }, 881 "type": "graph", 882 "xaxis": { 883 "buckets": null, 884 "mode": "time", 885 "name": null, 886 "show": true, 887 "values": [] 888 }, 889 "yaxes": [ 890 { 891 "format": "short", 892 "label": null, 893 "logBase": 1, 894 "max": null, 895 "min": null, 896 "show": true 897 }, 898 { 899 "format": "short", 900 "label": null, 901 "logBase": 1, 902 "max": null, 903 "min": null, 904 "show": true 905 } 906 ], 907 "yaxis": { 908 "align": false, 909 "alignLevel": null 910 } 911 }, 912 { 913 "aliasColors": {}, 914 "bars": false, 915 "dashLength": 10, 916 "dashes": false, 917 "datasource": "Prometheus", 918 "fill": 1, 919 "gridPos": { 920 "h": 7, 921 "w": 12, 922 "x": 12, 923 "y": 33 924 }, 925 "id": 9, 926 "legend": { 927 "alignAsTable": true, 928 "avg": false, 929 "current": true, 930 "max": true, 931 "min": false, 932 "rightSide": true, 933 "show": true, 934 "total": false, 935 "values": true 936 }, 937 "lines": true, 938 "linewidth": 1, 939 "links": [], 940 "nullPointMode": "null", 941 "percentage": false, 942 "pointradius": 5, 943 "points": false, 944 "renderer": "flot", 945 "seriesOverrides": [], 946 "spaceLength": 10, 947 "stack": false, 948 "steppedLine": false, 949 "targets": [ 950 { 951 "expr": "avg(go_goroutines{job=\"gaea_proxy\"}) by (instance)", 952 "format": "time_series", 953 "interval": "20s", 954 "intervalFactor": 1, 955 "legendFormat": "{{instance}}", 956 "metric": "go_goroutines", 957 "refId": "A", 958 "step": 2, 959 "target": "aliasByNode(statsite.gauges.systech.gaea-proxy._.machine.*.resource.numOfGoroutine, 6)" 960 } 961 ], 962 "thresholds": [], 963 "timeFrom": null, 964 "timeShift": null, 965 "title": "协程数量", 966 "tooltip": { 967 "shared": true, 968 "sort": 2, 969 "value_type": "individual" 970 }, 971 "type": "graph", 972 "xaxis": { 973 "buckets": null, 974 "mode": "time", 975 "name": null, 976 "show": true, 977 "values": [] 978 }, 979 "yaxes": [ 980 { 981 "decimals": -1, 982 "format": "short", 983 "label": null, 984 "logBase": 1, 985 "max": null, 986 "min": null, 987 "show": true 988 }, 989 { 990 "decimals": -1, 991 "format": "short", 992 "label": null, 993 "logBase": 1, 994 "max": null, 995 "min": null, 996 "show": true 997 } 998 ], 999 "yaxis": { 1000 "align": false, 1001 "alignLevel": null 1002 } 1003 }, 1004 { 1005 "aliasColors": {}, 1006 "bars": false, 1007 "dashLength": 10, 1008 "dashes": false, 1009 "datasource": "Prometheus", 1010 "fill": 1, 1011 "gridPos": { 1012 "h": 8, 1013 "w": 12, 1014 "x": 0, 1015 "y": 40 1016 }, 1017 "id": 11, 1018 "legend": { 1019 "alignAsTable": true, 1020 "avg": false, 1021 "current": true, 1022 "max": true, 1023 "min": false, 1024 "rightSide": true, 1025 "show": true, 1026 "total": false, 1027 "values": true 1028 }, 1029 "lines": true, 1030 "linewidth": 1, 1031 "links": [], 1032 "nullPointMode": "null", 1033 "percentage": false, 1034 "pointradius": 5, 1035 "points": false, 1036 "renderer": "flot", 1037 "seriesOverrides": [], 1038 "spaceLength": 10, 1039 "stack": false, 1040 "steppedLine": false, 1041 "targets": [ 1042 { 1043 "expr": "avg(rate(go_gc_duration_seconds_sum{job=\"gaea_proxy\"}[20s]))by (instance)", 1044 "format": "time_series", 1045 "interval": "20s", 1046 "intervalFactor": 1, 1047 "legendFormat": "{{instance}}", 1048 "metric": "go_gc_duration_seconds_sum", 1049 "refId": "A", 1050 "step": 2 1051 } 1052 ], 1053 "thresholds": [], 1054 "timeFrom": null, 1055 "timeShift": null, 1056 "title": "GC 停顿时间", 1057 "tooltip": { 1058 "shared": true, 1059 "sort": 0, 1060 "value_type": "individual" 1061 }, 1062 "type": "graph", 1063 "xaxis": { 1064 "buckets": null, 1065 "mode": "time", 1066 "name": null, 1067 "show": true, 1068 "values": [] 1069 }, 1070 "yaxes": [ 1071 { 1072 "format": "s", 1073 "label": null, 1074 "logBase": 1, 1075 "max": null, 1076 "min": null, 1077 "show": true 1078 }, 1079 { 1080 "format": "short", 1081 "label": null, 1082 "logBase": 1, 1083 "max": null, 1084 "min": null, 1085 "show": true 1086 } 1087 ], 1088 "yaxis": { 1089 "align": false, 1090 "alignLevel": null 1091 } 1092 }, 1093 { 1094 "aliasColors": {}, 1095 "bars": false, 1096 "dashLength": 10, 1097 "dashes": false, 1098 "datasource": "Prometheus", 1099 "fill": 1, 1100 "gridPos": { 1101 "h": 8, 1102 "w": 12, 1103 "x": 12, 1104 "y": 40 1105 }, 1106 "id": 12, 1107 "legend": { 1108 "alignAsTable": true, 1109 "avg": false, 1110 "current": true, 1111 "max": true, 1112 "min": false, 1113 "rightSide": true, 1114 "show": true, 1115 "total": false, 1116 "values": true 1117 }, 1118 "lines": true, 1119 "linewidth": 1, 1120 "links": [], 1121 "nullPointMode": "null", 1122 "percentage": false, 1123 "pointradius": 5, 1124 "points": false, 1125 "renderer": "flot", 1126 "seriesOverrides": [], 1127 "spaceLength": 10, 1128 "stack": false, 1129 "steppedLine": false, 1130 "targets": [ 1131 { 1132 "expr": "avg(go_memstats_heap_objects{job=\"gaea_proxy\"}) by (instance)", 1133 "format": "time_series", 1134 "interval": "20s", 1135 "intervalFactor": 1, 1136 "legendFormat": "{{instance}}", 1137 "metric": "go_memstats_heap_objects", 1138 "refId": "A", 1139 "step": 2, 1140 "target": "aliasByNode(statsite.gauges.systech.gaea-proxy._.machine.*.resource.memory.heapObjects, 6)" 1141 } 1142 ], 1143 "thresholds": [], 1144 "timeFrom": null, 1145 "timeShift": null, 1146 "title": "堆对象数量", 1147 "tooltip": { 1148 "shared": true, 1149 "sort": 2, 1150 "value_type": "individual" 1151 }, 1152 "type": "graph", 1153 "xaxis": { 1154 "buckets": null, 1155 "mode": "time", 1156 "name": null, 1157 "show": true, 1158 "values": [] 1159 }, 1160 "yaxes": [ 1161 { 1162 "format": "short", 1163 "label": null, 1164 "logBase": 1, 1165 "max": null, 1166 "min": null, 1167 "show": true 1168 }, 1169 { 1170 "format": "short", 1171 "label": null, 1172 "logBase": 1, 1173 "max": null, 1174 "min": null, 1175 "show": true 1176 } 1177 ], 1178 "yaxis": { 1179 "align": false, 1180 "alignLevel": null 1181 } 1182 } 1183 ], 1184 "refresh": "30s", 1185 "schemaVersion": 16, 1186 "style": "dark", 1187 "tags": [], 1188 "templating": { 1189 "list": [] 1190 }, 1191 "time": { 1192 "from": "now-15m", 1193 "to": "now" 1194 }, 1195 "timepicker": { 1196 "refresh_intervals": [ 1197 "5s", 1198 "10s", 1199 "30s", 1200 "1m", 1201 "5m", 1202 "15m", 1203 "30m", 1204 "1h", 1205 "2h", 1206 "1d" 1207 ], 1208 "time_options": [ 1209 "5m", 1210 "15m", 1211 "1h", 1212 "6h", 1213 "12h", 1214 "24h", 1215 "2d", 1216 "7d", 1217 "30d" 1218 ] 1219 }, 1220 "timezone": "", 1221 "title": "gaea_proxy", 1222 "uid": "dW2pRnYmze", 1223 "version": 29 1224 }