github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/redis/dashboards/redis.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 "description": "Dashboards for Redis managed by KubeBlocks", 25 "editable": true, 26 "fiscalYearStartMonth": 0, 27 "gnetId": 763, 28 "graphTooltip": 1, 29 "id": 15, 30 "links": [ 31 { 32 "asDropdown": false, 33 "icon": "cloud", 34 "includeVars": false, 35 "keepTime": false, 36 "tags": [], 37 "targetBlank": true, 38 "title": "ApeCloud", 39 "tooltip": "Improved productivity, cost-efficiency and business continuity.", 40 "type": "link", 41 "url": "https://kubeblocks.io/" 42 }, 43 { 44 "asDropdown": false, 45 "icon": "cloud", 46 "includeVars": false, 47 "keepTime": false, 48 "tags": [], 49 "targetBlank": true, 50 "title": "KubeBlocks", 51 "tooltip": "An open-source and cloud-neutral DBaaS with Kubernetes.", 52 "type": "link", 53 "url": "https://github.com/apecloud/kubeblocks" 54 } 55 ], 56 "liveNow": false, 57 "panels": [ 58 { 59 "collapsed": false, 60 "gridPos": { 61 "h": 1, 62 "w": 24, 63 "x": 0, 64 "y": 0 65 }, 66 "id": 32, 67 "panels": [], 68 "title": "Summary", 69 "type": "row" 70 }, 71 { 72 "datasource": { 73 "type": "prometheus", 74 "uid": "$datasource" 75 }, 76 "description": "", 77 "fieldConfig": { 78 "defaults": { 79 "decimals": 0, 80 "mappings": [], 81 "thresholds": { 82 "mode": "absolute", 83 "steps": [ 84 { 85 "color": "dark-green", 86 "value": null 87 } 88 ] 89 }, 90 "unit": "short" 91 }, 92 "overrides": [] 93 }, 94 "gridPos": { 95 "h": 4, 96 "w": 3, 97 "x": 0, 98 "y": 1 99 }, 100 "id": 40, 101 "interval": "", 102 "links": [], 103 "maxDataPoints": 100, 104 "options": { 105 "colorMode": "value", 106 "fieldOptions": { 107 "calcs": [ 108 "lastNotNull" 109 ] 110 }, 111 "graphMode": "area", 112 "justifyMode": "auto", 113 "orientation": "horizontal", 114 "reduceOptions": { 115 "calcs": [ 116 "lastNotNull" 117 ], 118 "fields": "", 119 "values": false 120 }, 121 "textMode": "auto" 122 }, 123 "pluginVersion": "9.2.4", 124 "targets": [ 125 { 126 "calculatedInterval": "10m", 127 "datasource": { 128 "uid": "$datasource" 129 }, 130 "datasourceErrors": {}, 131 "editorMode": "code", 132 "errors": {}, 133 "expr": "count(sum by(namespace)(redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})) or vector(0)", 134 "format": "time_series", 135 "interval": "", 136 "intervalFactor": 1, 137 "legendFormat": "__auto", 138 "metric": "", 139 "range": true, 140 "refId": "A", 141 "step": 20 142 } 143 ], 144 "title": "Total Namespaces", 145 "type": "stat" 146 }, 147 { 148 "datasource": { 149 "type": "prometheus", 150 "uid": "$datasource" 151 }, 152 "description": "", 153 "fieldConfig": { 154 "defaults": { 155 "color": { 156 "mode": "thresholds" 157 }, 158 "custom": { 159 "align": "center", 160 "displayMode": "auto", 161 "filterable": false, 162 "inspect": false 163 }, 164 "decimals": 2, 165 "mappings": [], 166 "thresholds": { 167 "mode": "absolute", 168 "steps": [ 169 { 170 "color": "dark-green", 171 "value": null 172 } 173 ] 174 }, 175 "unit": "short" 176 }, 177 "overrides": [ 178 { 179 "matcher": { 180 "id": "byName", 181 "options": "instances" 182 }, 183 "properties": [ 184 { 185 "id": "custom.displayMode", 186 "value": "lcd-gauge" 187 } 188 ] 189 } 190 ] 191 }, 192 "gridPos": { 193 "h": 4, 194 "w": 5, 195 "x": 3, 196 "y": 1 197 }, 198 "id": 44, 199 "interval": "", 200 "links": [], 201 "maxDataPoints": 100, 202 "options": { 203 "footer": { 204 "fields": "", 205 "reducer": [ 206 "sum" 207 ], 208 "show": false 209 }, 210 "showHeader": true 211 }, 212 "pluginVersion": "9.2.4", 213 "targets": [ 214 { 215 "calculatedInterval": "10m", 216 "datasource": { 217 "uid": "$datasource" 218 }, 219 "datasourceErrors": {}, 220 "editorMode": "code", 221 "errors": {}, 222 "exemplar": false, 223 "expr": "count by(redis_version)(redis_instance_info{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})", 224 "format": "table", 225 "instant": true, 226 "interval": "", 227 "intervalFactor": 1, 228 "legendFormat": "{{short_version}}", 229 "metric": "", 230 "range": false, 231 "refId": "A", 232 "step": 20 233 } 234 ], 235 "title": "Cluster Versions", 236 "transformations": [ 237 { 238 "id": "organize", 239 "options": { 240 "excludeByName": { 241 "Time": true, 242 "Value": false 243 }, 244 "indexByName": {}, 245 "renameByName": { 246 "Value": "instances", 247 "pod": "instance", 248 "short_version": "version" 249 } 250 } 251 } 252 ], 253 "type": "table" 254 }, 255 { 256 "datasource": { 257 "type": "prometheus", 258 "uid": "$datasource" 259 }, 260 "description": "", 261 "fieldConfig": { 262 "defaults": { 263 "color": { 264 "mode": "thresholds" 265 }, 266 "custom": { 267 "align": "center", 268 "displayMode": "auto", 269 "filterable": false, 270 "inspect": false 271 }, 272 "mappings": [], 273 "thresholds": { 274 "mode": "absolute", 275 "steps": [ 276 { 277 "color": "green", 278 "value": null 279 } 280 ] 281 } 282 }, 283 "overrides": [ 284 { 285 "matcher": { 286 "id": "byName", 287 "options": "instance" 288 }, 289 "properties": [ 290 { 291 "id": "links", 292 "value": [ 293 { 294 "targetBlank": true, 295 "title": "PostgreSQL Instance: ${__data.fields.cluster} | ${__data.fields.instance}", 296 "url": "/d/pMEd7m0Mz/cadvisor-exporter?orgId=1&var-node=All&var-namespace=${__data.fields.namespace}&var-pod=${__data.fields.instance}&var-container=All" 297 } 298 ] 299 }, 300 { 301 "id": "custom.align", 302 "value": "center" 303 }, 304 { 305 "id": "custom.filterable", 306 "value": true 307 } 308 ] 309 }, 310 { 311 "matcher": { 312 "id": "byName", 313 "options": "uptime" 314 }, 315 "properties": [ 316 { 317 "id": "unit", 318 "value": "s" 319 }, 320 { 321 "id": "thresholds", 322 "value": { 323 "mode": "absolute", 324 "steps": [ 325 { 326 "color": "dark-red", 327 "value": null 328 }, 329 { 330 "color": "dark-yellow", 331 "value": 60 332 }, 333 { 334 "color": "dark-green", 335 "value": 120 336 } 337 ] 338 } 339 }, 340 { 341 "id": "custom.displayMode", 342 "value": "lcd-gauge" 343 } 344 ] 345 }, 346 { 347 "matcher": { 348 "id": "byName", 349 "options": "namespace" 350 }, 351 "properties": [ 352 { 353 "id": "custom.filterable", 354 "value": true 355 } 356 ] 357 }, 358 { 359 "matcher": { 360 "id": "byName", 361 "options": "cluster" 362 }, 363 "properties": [ 364 { 365 "id": "custom.filterable", 366 "value": true 367 } 368 ] 369 } 370 ] 371 }, 372 "gridPos": { 373 "h": 8, 374 "w": 16, 375 "x": 8, 376 "y": 1 377 }, 378 "id": 48, 379 "interval": "", 380 "links": [], 381 "maxDataPoints": 100, 382 "options": { 383 "footer": { 384 "enablePagination": false, 385 "fields": "", 386 "reducer": [ 387 "sum" 388 ], 389 "show": false 390 }, 391 "showHeader": true, 392 "sortBy": [ 393 { 394 "desc": true, 395 "displayName": "uptime" 396 } 397 ] 398 }, 399 "pluginVersion": "9.2.4", 400 "targets": [ 401 { 402 "calculatedInterval": "10m", 403 "datasource": { 404 "uid": "$datasource" 405 }, 406 "datasourceErrors": {}, 407 "editorMode": "code", 408 "errors": {}, 409 "exemplar": false, 410 "expr": "sum by(namespace,app_kubernetes_io_instance,node,pod) (redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})", 411 "format": "table", 412 "hide": false, 413 "instant": true, 414 "interval": "", 415 "intervalFactor": 1, 416 "legendFormat": "__auto", 417 "metric": "", 418 "range": false, 419 "refId": "A", 420 "step": 20 421 }, 422 { 423 "calculatedInterval": "10m", 424 "datasource": { 425 "uid": "$datasource" 426 }, 427 "datasourceErrors": {}, 428 "editorMode": "code", 429 "errors": {}, 430 "exemplar": false, 431 "expr": "avg by(namespace,app_kubernetes_io_instance,pod) (redis_uptime_in_seconds{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})", 432 "format": "table", 433 "hide": false, 434 "instant": true, 435 "interval": "", 436 "intervalFactor": 1, 437 "legendFormat": "__auto", 438 "metric": "", 439 "range": false, 440 "refId": "B", 441 "step": 20 442 }, 443 { 444 "datasource": { 445 "type": "prometheus", 446 "uid": "$datasource" 447 }, 448 "editorMode": "code", 449 "expr": "count by(pod,redis_version)(redis_instance_info{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})", 450 "hide": false, 451 "legendFormat": "__auto", 452 "range": true, 453 "refId": "C" 454 } 455 ], 456 "title": "Cluster Instances", 457 "transformations": [ 458 { 459 "disabled": true, 460 "id": "joinByField", 461 "options": { 462 "byField": "pod", 463 "mode": "outer" 464 } 465 }, 466 { 467 "id": "joinByField", 468 "options": { 469 "byField": "pod", 470 "mode": "outer" 471 } 472 }, 473 { 474 "id": "organize", 475 "options": { 476 "excludeByName": { 477 "Time 1": true, 478 "Time 2": true, 479 "Value #A": true, 480 "app_kubernetes_io_instance 2": true, 481 "namespace 2": true 482 }, 483 "indexByName": { 484 "Time 1": 4, 485 "Time 2": 6, 486 "Value #A": 5, 487 "Value #B": 9, 488 "app_kubernetes_io_instance 1": 1, 489 "app_kubernetes_io_instance 2": 7, 490 "namespace 1": 0, 491 "namespace 2": 8, 492 "node": 3, 493 "pod": 2 494 }, 495 "renameByName": { 496 "Value #B": "uptime", 497 "app_kubernetes_io_instance 1": "cluster", 498 "namespace 1": "namespace", 499 "pod": "instance" 500 } 501 } 502 } 503 ], 504 "type": "table" 505 }, 506 { 507 "datasource": { 508 "type": "prometheus", 509 "uid": "$datasource" 510 }, 511 "description": "", 512 "fieldConfig": { 513 "defaults": { 514 "decimals": 0, 515 "mappings": [], 516 "thresholds": { 517 "mode": "absolute", 518 "steps": [ 519 { 520 "color": "dark-green", 521 "value": null 522 } 523 ] 524 }, 525 "unit": "short" 526 }, 527 "overrides": [] 528 }, 529 "gridPos": { 530 "h": 4, 531 "w": 3, 532 "x": 0, 533 "y": 5 534 }, 535 "id": 42, 536 "interval": "", 537 "links": [], 538 "maxDataPoints": 100, 539 "options": { 540 "colorMode": "value", 541 "fieldOptions": { 542 "calcs": [ 543 "lastNotNull" 544 ] 545 }, 546 "graphMode": "area", 547 "justifyMode": "auto", 548 "orientation": "horizontal", 549 "reduceOptions": { 550 "calcs": [ 551 "lastNotNull" 552 ], 553 "fields": "", 554 "values": false 555 }, 556 "textMode": "auto" 557 }, 558 "pluginVersion": "9.2.4", 559 "targets": [ 560 { 561 "calculatedInterval": "10m", 562 "datasource": { 563 "uid": "$datasource" 564 }, 565 "datasourceErrors": {}, 566 "editorMode": "code", 567 "errors": {}, 568 "expr": "count(sum by(namespace,app_kubernetes_io_instance)(redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})) or vector(0)", 569 "format": "time_series", 570 "interval": "", 571 "intervalFactor": 1, 572 "legendFormat": "{{label_name}}", 573 "metric": "", 574 "range": true, 575 "refId": "A", 576 "step": 20 577 } 578 ], 579 "title": "Total Clusters", 580 "type": "stat" 581 }, 582 { 583 "datasource": { 584 "type": "prometheus", 585 "uid": "$datasource" 586 }, 587 "description": "", 588 "fieldConfig": { 589 "defaults": { 590 "decimals": 0, 591 "mappings": [], 592 "thresholds": { 593 "mode": "absolute", 594 "steps": [ 595 { 596 "color": "dark-green", 597 "value": null 598 } 599 ] 600 }, 601 "unit": "short" 602 }, 603 "overrides": [] 604 }, 605 "gridPos": { 606 "h": 4, 607 "w": 5, 608 "x": 3, 609 "y": 5 610 }, 611 "id": 50, 612 "interval": "", 613 "links": [], 614 "maxDataPoints": 100, 615 "options": { 616 "colorMode": "value", 617 "fieldOptions": { 618 "calcs": [ 619 "lastNotNull" 620 ] 621 }, 622 "graphMode": "area", 623 "justifyMode": "auto", 624 "orientation": "horizontal", 625 "reduceOptions": { 626 "calcs": [ 627 "lastNotNull" 628 ], 629 "fields": "", 630 "values": false 631 }, 632 "textMode": "auto" 633 }, 634 "pluginVersion": "9.2.4", 635 "targets": [ 636 { 637 "calculatedInterval": "10m", 638 "datasource": { 639 "uid": "$datasource" 640 }, 641 "datasourceErrors": {}, 642 "editorMode": "code", 643 "errors": {}, 644 "expr": "count(sum by(namespace,pod)(redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})) or vector(0)", 645 "format": "time_series", 646 "interval": "", 647 "intervalFactor": 1, 648 "legendFormat": "{{label_name}}", 649 "metric": "", 650 "range": true, 651 "refId": "A", 652 "step": 20 653 } 654 ], 655 "title": "Total Instances", 656 "type": "stat" 657 }, 658 { 659 "datasource": { 660 "type": "prometheus", 661 "uid": "$datasource" 662 }, 663 "description": "", 664 "fieldConfig": { 665 "defaults": { 666 "color": { 667 "mode": "thresholds" 668 }, 669 "custom": { 670 "align": "center", 671 "displayMode": "auto", 672 "filterable": false, 673 "inspect": false 674 }, 675 "mappings": [], 676 "thresholds": { 677 "mode": "absolute", 678 "steps": [ 679 { 680 "color": "green", 681 "value": null 682 } 683 ] 684 }, 685 "unit": "none" 686 }, 687 "overrides": [ 688 { 689 "matcher": { 690 "id": "byRegexp", 691 "options": "/.*%/" 692 }, 693 "properties": [ 694 { 695 "id": "unit", 696 "value": "percent" 697 }, 698 { 699 "id": "min", 700 "value": 0 701 }, 702 { 703 "id": "max", 704 "value": 100 705 }, 706 { 707 "id": "color", 708 "value": { 709 "mode": "continuous-GrYlRd" 710 } 711 }, 712 { 713 "id": "custom.displayMode", 714 "value": "gradient-gauge" 715 } 716 ] 717 }, 718 { 719 "matcher": { 720 "id": "byName", 721 "options": "Memory %" 722 }, 723 "properties": [ 724 { 725 "id": "custom.width", 726 "value": 150 727 } 728 ] 729 }, 730 { 731 "matcher": { 732 "id": "byName", 733 "options": "Connections" 734 }, 735 "properties": [ 736 { 737 "id": "custom.width", 738 "value": 147 739 }, 740 { 741 "id": "thresholds", 742 "value": { 743 "mode": "absolute", 744 "steps": [ 745 { 746 "color": "green", 747 "value": null 748 }, 749 { 750 "color": "#EAB839", 751 "value": 1000 752 }, 753 { 754 "color": "red", 755 "value": 2000 756 } 757 ] 758 } 759 }, 760 { 761 "id": "custom.displayMode", 762 "value": "color-background" 763 } 764 ] 765 }, 766 { 767 "matcher": { 768 "id": "byName", 769 "options": "Total Commands / s" 770 }, 771 "properties": [ 772 { 773 "id": "custom.width", 774 "value": 178 775 }, 776 { 777 "id": "custom.displayMode", 778 "value": "color-background" 779 }, 780 { 781 "id": "thresholds", 782 "value": { 783 "mode": "absolute", 784 "steps": [ 785 { 786 "color": "green", 787 "value": null 788 }, 789 { 790 "color": "#EAB839", 791 "value": 3000 792 }, 793 { 794 "color": "red", 795 "value": 4000 796 } 797 ] 798 } 799 } 800 ] 801 }, 802 { 803 "matcher": { 804 "id": "byName", 805 "options": "Uptime / h" 806 }, 807 "properties": [ 808 { 809 "id": "unit", 810 "value": "s" 811 }, 812 { 813 "id": "custom.width", 814 "value": 89 815 } 816 ] 817 }, 818 { 819 "matcher": { 820 "id": "byName", 821 "options": "Hits Ratio %" 822 }, 823 "properties": [ 824 { 825 "id": "custom.width", 826 "value": 142 827 }, 828 { 829 "id": "unit", 830 "value": "percentunit" 831 }, 832 { 833 "id": "color", 834 "value": { 835 "mode": "continuous-RdYlGr" 836 } 837 }, 838 { 839 "id": "custom.displayMode", 840 "value": "gradient-gauge" 841 }, 842 { 843 "id": "max", 844 "value": 1 845 } 846 ] 847 }, 848 { 849 "matcher": { 850 "id": "byName", 851 "options": "Total Keys" 852 }, 853 "properties": [ 854 { 855 "id": "custom.width", 856 "value": 94 857 } 858 ] 859 }, 860 { 861 "matcher": { 862 "id": "byName", 863 "options": "Net Input" 864 }, 865 "properties": [ 866 { 867 "id": "custom.width", 868 "value": 101 869 }, 870 { 871 "id": "unit", 872 "value": "binBps" 873 }, 874 { 875 "id": "thresholds", 876 "value": { 877 "mode": "absolute", 878 "steps": [ 879 { 880 "color": "green", 881 "value": null 882 }, 883 { 884 "color": "#EAB839", 885 "value": 3000000 886 }, 887 { 888 "color": "red", 889 "value": 10000000 890 } 891 ] 892 } 893 }, 894 { 895 "id": "custom.displayMode", 896 "value": "color-background" 897 } 898 ] 899 }, 900 { 901 "matcher": { 902 "id": "byName", 903 "options": "Net Output" 904 }, 905 "properties": [ 906 { 907 "id": "custom.width", 908 "value": 103 909 }, 910 { 911 "id": "unit", 912 "value": "binBps" 913 }, 914 { 915 "id": "custom.displayMode", 916 "value": "color-background" 917 }, 918 { 919 "id": "thresholds", 920 "value": { 921 "mode": "absolute", 922 "steps": [ 923 { 924 "color": "green", 925 "value": null 926 }, 927 { 928 "color": "#EAB839", 929 "value": 3000000 930 }, 931 { 932 "color": "red", 933 "value": 10000000 934 } 935 ] 936 } 937 } 938 ] 939 } 940 ] 941 }, 942 "gridPos": { 943 "h": 7, 944 "w": 8, 945 "x": 0, 946 "y": 9 947 }, 948 "id": 54, 949 "options": { 950 "footer": { 951 "fields": [ 952 "Value #B", 953 "Value #C", 954 "Value #L", 955 "Value #H", 956 "Value #I", 957 "Value #M", 958 "Value #N", 959 "Value #J", 960 "Value #K" 961 ], 962 "reducer": [ 963 "sum" 964 ], 965 "show": false 966 }, 967 "showHeader": true, 968 "sortBy": [] 969 }, 970 "pluginVersion": "9.2.4", 971 "targets": [ 972 { 973 "datasource": { 974 "type": "prometheus", 975 "uid": "$datasource" 976 }, 977 "editorMode": "code", 978 "exemplar": false, 979 "expr": "redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 980 "format": "table", 981 "hide": false, 982 "instant": true, 983 "interval": "", 984 "legendFormat": "__auto", 985 "refId": "A" 986 }, 987 { 988 "datasource": { 989 "type": "prometheus", 990 "uid": "$datasource" 991 }, 992 "editorMode": "code", 993 "exemplar": false, 994 "expr": "redis_mem_util * on (iid) group_right redis_up or (100 * (redis_memory_used_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} / redis_memory_max_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}))", 995 "format": "table", 996 "hide": false, 997 "instant": true, 998 "interval": "", 999 "legendFormat": "__auto", 1000 "refId": "C" 1001 } 1002 ], 1003 "title": "Top5 Memory Usage", 1004 "transformations": [ 1005 { 1006 "id": "merge", 1007 "options": {} 1008 }, 1009 { 1010 "id": "organize", 1011 "options": { 1012 "excludeByName": { 1013 "Time": true, 1014 "Value": true, 1015 "Value #A": true, 1016 "Value #F": true, 1017 "__name__": true, 1018 "account": true, 1019 "app_kubernetes_io_component": true, 1020 "app_kubernetes_io_component_name": true, 1021 "app_kubernetes_io_managed_by": true, 1022 "app_kubernetes_io_name": true, 1023 "apps_kubeblocks_io_component_name": true, 1024 "group": true, 1025 "iaccount": true, 1026 "igroup": true, 1027 "iname": true, 1028 "instance": true, 1029 "job": true, 1030 "namespace": true, 1031 "node": true, 1032 "origin_prometheus": true, 1033 "pod": false, 1034 "region": true, 1035 "service": true, 1036 "vendor": true 1037 }, 1038 "indexByName": { 1039 "Time": 2, 1040 "Value #A": 7, 1041 "Value #C": 4, 1042 "__name__": 3, 1043 "app_kubernetes_io_component": 13, 1044 "app_kubernetes_io_instance": 0, 1045 "app_kubernetes_io_managed_by": 8, 1046 "app_kubernetes_io_name": 9, 1047 "apps_kubeblocks_io_component_name": 14, 1048 "instance": 5, 1049 "job": 6, 1050 "namespace": 10, 1051 "node": 11, 1052 "pod": 1, 1053 "service": 12 1054 }, 1055 "renameByName": { 1056 "Time": "", 1057 "Value #B": "CPU%", 1058 "Value #C": "Memory %", 1059 "Value #D": "Connections", 1060 "Value #E": "Total Commands / s", 1061 "Value #F": "Uptime / h", 1062 "Value #G": "Hits Ratio %", 1063 "Value #H": "Total Keys", 1064 "Value #I": "Net Input", 1065 "Value #J": "Net Output", 1066 "Value #K": "IOPS", 1067 "__name__": "", 1068 "app_kubernetes_io_instance": "Cluster", 1069 "app_kubernetes_io_name": "", 1070 "instance": "", 1071 "node": "node", 1072 "pod": "instance", 1073 "service": "" 1074 } 1075 } 1076 }, 1077 { 1078 "id": "groupBy", 1079 "options": { 1080 "fields": { 1081 "Cluster": { 1082 "aggregations": [], 1083 "operation": "groupby" 1084 }, 1085 "Memory %": { 1086 "aggregations": [], 1087 "operation": "groupby" 1088 }, 1089 "instance": { 1090 "aggregations": [], 1091 "operation": "groupby" 1092 } 1093 } 1094 } 1095 }, 1096 { 1097 "id": "sortBy", 1098 "options": { 1099 "fields": {}, 1100 "sort": [ 1101 { 1102 "desc": true, 1103 "field": "Memory %" 1104 } 1105 ] 1106 } 1107 }, 1108 { 1109 "id": "limit", 1110 "options": { 1111 "limitField": 5 1112 } 1113 } 1114 ], 1115 "type": "table" 1116 }, 1117 { 1118 "datasource": { 1119 "type": "prometheus", 1120 "uid": "$datasource" 1121 }, 1122 "description": "", 1123 "fieldConfig": { 1124 "defaults": { 1125 "color": { 1126 "mode": "thresholds" 1127 }, 1128 "custom": { 1129 "align": "center", 1130 "displayMode": "auto", 1131 "filterable": false, 1132 "inspect": false 1133 }, 1134 "mappings": [], 1135 "thresholds": { 1136 "mode": "absolute", 1137 "steps": [ 1138 { 1139 "color": "green", 1140 "value": null 1141 } 1142 ] 1143 }, 1144 "unit": "none" 1145 }, 1146 "overrides": [ 1147 { 1148 "matcher": { 1149 "id": "byRegexp", 1150 "options": "/.*%/" 1151 }, 1152 "properties": [ 1153 { 1154 "id": "unit", 1155 "value": "percent" 1156 }, 1157 { 1158 "id": "min", 1159 "value": 0 1160 }, 1161 { 1162 "id": "max", 1163 "value": 100 1164 }, 1165 { 1166 "id": "color", 1167 "value": { 1168 "mode": "continuous-GrYlRd" 1169 } 1170 }, 1171 { 1172 "id": "custom.displayMode", 1173 "value": "gradient-gauge" 1174 } 1175 ] 1176 }, 1177 { 1178 "matcher": { 1179 "id": "byName", 1180 "options": "Memory %" 1181 }, 1182 "properties": [ 1183 { 1184 "id": "custom.width", 1185 "value": 150 1186 } 1187 ] 1188 }, 1189 { 1190 "matcher": { 1191 "id": "byName", 1192 "options": "Connections" 1193 }, 1194 "properties": [ 1195 { 1196 "id": "custom.width", 1197 "value": 147 1198 }, 1199 { 1200 "id": "thresholds", 1201 "value": { 1202 "mode": "absolute", 1203 "steps": [ 1204 { 1205 "color": "green", 1206 "value": null 1207 }, 1208 { 1209 "color": "#EAB839", 1210 "value": 1000 1211 }, 1212 { 1213 "color": "red", 1214 "value": 2000 1215 } 1216 ] 1217 } 1218 }, 1219 { 1220 "id": "custom.displayMode", 1221 "value": "color-background" 1222 } 1223 ] 1224 }, 1225 { 1226 "matcher": { 1227 "id": "byName", 1228 "options": "Total Commands / s" 1229 }, 1230 "properties": [ 1231 { 1232 "id": "custom.width", 1233 "value": 178 1234 }, 1235 { 1236 "id": "custom.displayMode", 1237 "value": "color-background" 1238 }, 1239 { 1240 "id": "thresholds", 1241 "value": { 1242 "mode": "absolute", 1243 "steps": [ 1244 { 1245 "color": "green", 1246 "value": null 1247 }, 1248 { 1249 "color": "#EAB839", 1250 "value": 3000 1251 }, 1252 { 1253 "color": "red", 1254 "value": 4000 1255 } 1256 ] 1257 } 1258 } 1259 ] 1260 }, 1261 { 1262 "matcher": { 1263 "id": "byName", 1264 "options": "Uptime / h" 1265 }, 1266 "properties": [ 1267 { 1268 "id": "unit", 1269 "value": "s" 1270 }, 1271 { 1272 "id": "custom.width", 1273 "value": 89 1274 } 1275 ] 1276 }, 1277 { 1278 "matcher": { 1279 "id": "byName", 1280 "options": "Hits Ratio %" 1281 }, 1282 "properties": [ 1283 { 1284 "id": "custom.width", 1285 "value": 142 1286 }, 1287 { 1288 "id": "unit", 1289 "value": "percentunit" 1290 }, 1291 { 1292 "id": "color", 1293 "value": { 1294 "mode": "continuous-RdYlGr" 1295 } 1296 }, 1297 { 1298 "id": "custom.displayMode", 1299 "value": "gradient-gauge" 1300 }, 1301 { 1302 "id": "max", 1303 "value": 1 1304 } 1305 ] 1306 }, 1307 { 1308 "matcher": { 1309 "id": "byName", 1310 "options": "Total Keys" 1311 }, 1312 "properties": [ 1313 { 1314 "id": "custom.width", 1315 "value": 94 1316 } 1317 ] 1318 }, 1319 { 1320 "matcher": { 1321 "id": "byName", 1322 "options": "Net Input" 1323 }, 1324 "properties": [ 1325 { 1326 "id": "custom.width", 1327 "value": 101 1328 }, 1329 { 1330 "id": "unit", 1331 "value": "binBps" 1332 }, 1333 { 1334 "id": "thresholds", 1335 "value": { 1336 "mode": "absolute", 1337 "steps": [ 1338 { 1339 "color": "green", 1340 "value": null 1341 }, 1342 { 1343 "color": "#EAB839", 1344 "value": 3000000 1345 }, 1346 { 1347 "color": "red", 1348 "value": 10000000 1349 } 1350 ] 1351 } 1352 }, 1353 { 1354 "id": "custom.displayMode", 1355 "value": "color-background" 1356 } 1357 ] 1358 }, 1359 { 1360 "matcher": { 1361 "id": "byName", 1362 "options": "Net Output" 1363 }, 1364 "properties": [ 1365 { 1366 "id": "custom.width", 1367 "value": 103 1368 }, 1369 { 1370 "id": "unit", 1371 "value": "binBps" 1372 }, 1373 { 1374 "id": "custom.displayMode", 1375 "value": "color-background" 1376 }, 1377 { 1378 "id": "thresholds", 1379 "value": { 1380 "mode": "absolute", 1381 "steps": [ 1382 { 1383 "color": "green", 1384 "value": null 1385 }, 1386 { 1387 "color": "#EAB839", 1388 "value": 3000000 1389 }, 1390 { 1391 "color": "red", 1392 "value": 10000000 1393 } 1394 ] 1395 } 1396 } 1397 ] 1398 } 1399 ] 1400 }, 1401 "gridPos": { 1402 "h": 7, 1403 "w": 8, 1404 "x": 8, 1405 "y": 9 1406 }, 1407 "id": 56, 1408 "options": { 1409 "footer": { 1410 "fields": [ 1411 "Value #B", 1412 "Value #C", 1413 "Value #L", 1414 "Value #H", 1415 "Value #I", 1416 "Value #M", 1417 "Value #N", 1418 "Value #J", 1419 "Value #K" 1420 ], 1421 "reducer": [ 1422 "sum" 1423 ], 1424 "show": false 1425 }, 1426 "showHeader": true, 1427 "sortBy": [] 1428 }, 1429 "pluginVersion": "9.2.4", 1430 "targets": [ 1431 { 1432 "datasource": { 1433 "type": "prometheus", 1434 "uid": "$datasource" 1435 }, 1436 "editorMode": "code", 1437 "exemplar": false, 1438 "expr": "redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 1439 "format": "table", 1440 "hide": false, 1441 "instant": true, 1442 "interval": "", 1443 "legendFormat": "__auto", 1444 "refId": "A" 1445 }, 1446 { 1447 "datasource": { 1448 "type": "prometheus", 1449 "uid": "$datasource" 1450 }, 1451 "editorMode": "code", 1452 "exemplar": false, 1453 "expr": "rate(redis_cpu_user_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]) * 100", 1454 "format": "table", 1455 "hide": false, 1456 "instant": true, 1457 "interval": "", 1458 "legendFormat": "__auto", 1459 "refId": "C" 1460 } 1461 ], 1462 "title": "Top5 User CPU Usage", 1463 "transformations": [ 1464 { 1465 "id": "merge", 1466 "options": {} 1467 }, 1468 { 1469 "id": "organize", 1470 "options": { 1471 "excludeByName": { 1472 "Time": true, 1473 "Value": true, 1474 "Value #A": true, 1475 "Value #F": true, 1476 "__name__": true, 1477 "account": true, 1478 "app_kubernetes_io_component": true, 1479 "app_kubernetes_io_component_name": true, 1480 "app_kubernetes_io_managed_by": true, 1481 "app_kubernetes_io_name": true, 1482 "apps_kubeblocks_io_component_name": true, 1483 "group": true, 1484 "iaccount": true, 1485 "igroup": true, 1486 "iname": true, 1487 "instance": true, 1488 "job": true, 1489 "namespace": true, 1490 "node": true, 1491 "origin_prometheus": true, 1492 "pod": false, 1493 "region": true, 1494 "service": true, 1495 "vendor": true 1496 }, 1497 "indexByName": { 1498 "Time": 2, 1499 "Value #A": 7, 1500 "Value #C": 4, 1501 "__name__": 3, 1502 "app_kubernetes_io_component": 13, 1503 "app_kubernetes_io_instance": 0, 1504 "app_kubernetes_io_managed_by": 8, 1505 "app_kubernetes_io_name": 9, 1506 "apps_kubeblocks_io_component_name": 14, 1507 "instance": 5, 1508 "job": 6, 1509 "namespace": 10, 1510 "node": 11, 1511 "pod": 1, 1512 "service": 12 1513 }, 1514 "renameByName": { 1515 "Time": "", 1516 "Value #B": "CPU%", 1517 "Value #C": "User CPU % ", 1518 "Value #D": "Connections", 1519 "Value #E": "Total Commands / s", 1520 "Value #F": "Uptime / h", 1521 "Value #G": "Hits Ratio %", 1522 "Value #H": "Total Keys", 1523 "Value #I": "Net Input", 1524 "Value #J": "Net Output", 1525 "Value #K": "IOPS", 1526 "__name__": "", 1527 "app_kubernetes_io_instance": "Cluster", 1528 "app_kubernetes_io_name": "", 1529 "instance": "", 1530 "node": "node", 1531 "pod": "instance", 1532 "service": "" 1533 } 1534 } 1535 }, 1536 { 1537 "id": "groupBy", 1538 "options": { 1539 "fields": { 1540 "Cluster": { 1541 "aggregations": [], 1542 "operation": "groupby" 1543 }, 1544 "Memory %": { 1545 "aggregations": [], 1546 "operation": "groupby" 1547 }, 1548 "User CPU % ": { 1549 "aggregations": [], 1550 "operation": "groupby" 1551 }, 1552 "instance": { 1553 "aggregations": [], 1554 "operation": "groupby" 1555 } 1556 } 1557 } 1558 }, 1559 { 1560 "id": "sortBy", 1561 "options": { 1562 "fields": {}, 1563 "sort": [ 1564 { 1565 "desc": true, 1566 "field": "User CPU % " 1567 } 1568 ] 1569 } 1570 }, 1571 { 1572 "id": "limit", 1573 "options": { 1574 "limitField": 5 1575 } 1576 } 1577 ], 1578 "type": "table" 1579 }, 1580 { 1581 "datasource": { 1582 "type": "prometheus", 1583 "uid": "$datasource" 1584 }, 1585 "description": "", 1586 "fieldConfig": { 1587 "defaults": { 1588 "color": { 1589 "mode": "thresholds" 1590 }, 1591 "custom": { 1592 "align": "center", 1593 "displayMode": "auto", 1594 "filterable": false, 1595 "inspect": false 1596 }, 1597 "mappings": [], 1598 "thresholds": { 1599 "mode": "absolute", 1600 "steps": [ 1601 { 1602 "color": "green", 1603 "value": null 1604 } 1605 ] 1606 }, 1607 "unit": "none" 1608 }, 1609 "overrides": [ 1610 { 1611 "matcher": { 1612 "id": "byRegexp", 1613 "options": "/.*%/" 1614 }, 1615 "properties": [ 1616 { 1617 "id": "unit", 1618 "value": "percent" 1619 }, 1620 { 1621 "id": "min", 1622 "value": 0 1623 }, 1624 { 1625 "id": "max", 1626 "value": 100 1627 }, 1628 { 1629 "id": "color", 1630 "value": { 1631 "mode": "continuous-GrYlRd" 1632 } 1633 }, 1634 { 1635 "id": "custom.displayMode", 1636 "value": "gradient-gauge" 1637 } 1638 ] 1639 }, 1640 { 1641 "matcher": { 1642 "id": "byName", 1643 "options": "Memory %" 1644 }, 1645 "properties": [ 1646 { 1647 "id": "custom.width", 1648 "value": 150 1649 } 1650 ] 1651 }, 1652 { 1653 "matcher": { 1654 "id": "byName", 1655 "options": "Connections" 1656 }, 1657 "properties": [ 1658 { 1659 "id": "custom.width", 1660 "value": 147 1661 }, 1662 { 1663 "id": "thresholds", 1664 "value": { 1665 "mode": "absolute", 1666 "steps": [ 1667 { 1668 "color": "green", 1669 "value": null 1670 }, 1671 { 1672 "color": "#EAB839", 1673 "value": 1000 1674 }, 1675 { 1676 "color": "red", 1677 "value": 2000 1678 } 1679 ] 1680 } 1681 }, 1682 { 1683 "id": "custom.displayMode", 1684 "value": "color-background" 1685 } 1686 ] 1687 }, 1688 { 1689 "matcher": { 1690 "id": "byName", 1691 "options": "Total Commands / s" 1692 }, 1693 "properties": [ 1694 { 1695 "id": "custom.width", 1696 "value": 178 1697 }, 1698 { 1699 "id": "custom.displayMode", 1700 "value": "color-background" 1701 }, 1702 { 1703 "id": "thresholds", 1704 "value": { 1705 "mode": "absolute", 1706 "steps": [ 1707 { 1708 "color": "green", 1709 "value": null 1710 }, 1711 { 1712 "color": "#EAB839", 1713 "value": 3000 1714 }, 1715 { 1716 "color": "red", 1717 "value": 4000 1718 } 1719 ] 1720 } 1721 } 1722 ] 1723 }, 1724 { 1725 "matcher": { 1726 "id": "byName", 1727 "options": "Uptime / h" 1728 }, 1729 "properties": [ 1730 { 1731 "id": "unit", 1732 "value": "s" 1733 }, 1734 { 1735 "id": "custom.width", 1736 "value": 89 1737 } 1738 ] 1739 }, 1740 { 1741 "matcher": { 1742 "id": "byName", 1743 "options": "Hits Ratio %" 1744 }, 1745 "properties": [ 1746 { 1747 "id": "custom.width", 1748 "value": 142 1749 }, 1750 { 1751 "id": "unit", 1752 "value": "percentunit" 1753 }, 1754 { 1755 "id": "color", 1756 "value": { 1757 "mode": "continuous-RdYlGr" 1758 } 1759 }, 1760 { 1761 "id": "custom.displayMode", 1762 "value": "gradient-gauge" 1763 }, 1764 { 1765 "id": "max", 1766 "value": 1 1767 } 1768 ] 1769 }, 1770 { 1771 "matcher": { 1772 "id": "byName", 1773 "options": "Total Keys" 1774 }, 1775 "properties": [ 1776 { 1777 "id": "custom.width", 1778 "value": 94 1779 } 1780 ] 1781 }, 1782 { 1783 "matcher": { 1784 "id": "byName", 1785 "options": "Net Input" 1786 }, 1787 "properties": [ 1788 { 1789 "id": "custom.width", 1790 "value": 101 1791 }, 1792 { 1793 "id": "unit", 1794 "value": "binBps" 1795 }, 1796 { 1797 "id": "thresholds", 1798 "value": { 1799 "mode": "absolute", 1800 "steps": [ 1801 { 1802 "color": "green", 1803 "value": null 1804 }, 1805 { 1806 "color": "#EAB839", 1807 "value": 3000000 1808 }, 1809 { 1810 "color": "red", 1811 "value": 10000000 1812 } 1813 ] 1814 } 1815 }, 1816 { 1817 "id": "custom.displayMode", 1818 "value": "color-background" 1819 } 1820 ] 1821 }, 1822 { 1823 "matcher": { 1824 "id": "byName", 1825 "options": "Net Output" 1826 }, 1827 "properties": [ 1828 { 1829 "id": "custom.width", 1830 "value": 103 1831 }, 1832 { 1833 "id": "unit", 1834 "value": "binBps" 1835 }, 1836 { 1837 "id": "custom.displayMode", 1838 "value": "color-background" 1839 }, 1840 { 1841 "id": "thresholds", 1842 "value": { 1843 "mode": "absolute", 1844 "steps": [ 1845 { 1846 "color": "green", 1847 "value": null 1848 }, 1849 { 1850 "color": "#EAB839", 1851 "value": 3000000 1852 }, 1853 { 1854 "color": "red", 1855 "value": 10000000 1856 } 1857 ] 1858 } 1859 } 1860 ] 1861 } 1862 ] 1863 }, 1864 "gridPos": { 1865 "h": 7, 1866 "w": 8, 1867 "x": 16, 1868 "y": 9 1869 }, 1870 "id": 58, 1871 "options": { 1872 "footer": { 1873 "fields": [ 1874 "Value #B", 1875 "Value #C", 1876 "Value #L", 1877 "Value #H", 1878 "Value #I", 1879 "Value #M", 1880 "Value #N", 1881 "Value #J", 1882 "Value #K" 1883 ], 1884 "reducer": [ 1885 "sum" 1886 ], 1887 "show": false 1888 }, 1889 "showHeader": true, 1890 "sortBy": [] 1891 }, 1892 "pluginVersion": "9.2.4", 1893 "targets": [ 1894 { 1895 "datasource": { 1896 "type": "prometheus", 1897 "uid": "$datasource" 1898 }, 1899 "editorMode": "code", 1900 "exemplar": false, 1901 "expr": "redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 1902 "format": "table", 1903 "hide": false, 1904 "instant": true, 1905 "interval": "", 1906 "legendFormat": "__auto", 1907 "refId": "A" 1908 }, 1909 { 1910 "datasource": { 1911 "type": "prometheus", 1912 "uid": "$datasource" 1913 }, 1914 "editorMode": "code", 1915 "exemplar": false, 1916 "expr": "avg(irate(redis_keyspace_hits_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]) / (irate(redis_keyspace_misses_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[1m]) + irate(redis_keyspace_hits_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]))) by (instance)", 1917 "format": "table", 1918 "hide": false, 1919 "instant": true, 1920 "interval": "", 1921 "legendFormat": "__auto", 1922 "refId": "C" 1923 } 1924 ], 1925 "title": "Bottom5 Hits Ratio", 1926 "transformations": [ 1927 { 1928 "id": "merge", 1929 "options": {} 1930 }, 1931 { 1932 "id": "organize", 1933 "options": { 1934 "excludeByName": { 1935 "Time": true, 1936 "Value": true, 1937 "Value #A": true, 1938 "Value #F": true, 1939 "__name__": true, 1940 "account": true, 1941 "app_kubernetes_io_component": true, 1942 "app_kubernetes_io_component_name": true, 1943 "app_kubernetes_io_managed_by": true, 1944 "app_kubernetes_io_name": true, 1945 "apps_kubeblocks_io_component_name": true, 1946 "group": true, 1947 "iaccount": true, 1948 "igroup": true, 1949 "iname": true, 1950 "instance": true, 1951 "job": true, 1952 "namespace": true, 1953 "node": true, 1954 "origin_prometheus": true, 1955 "pod": false, 1956 "region": true, 1957 "service": true, 1958 "vendor": true 1959 }, 1960 "indexByName": { 1961 "Time": 2, 1962 "Value #A": 7, 1963 "Value #C": 4, 1964 "__name__": 3, 1965 "app_kubernetes_io_component": 13, 1966 "app_kubernetes_io_instance": 0, 1967 "app_kubernetes_io_managed_by": 8, 1968 "app_kubernetes_io_name": 9, 1969 "apps_kubeblocks_io_component_name": 14, 1970 "instance": 5, 1971 "job": 6, 1972 "namespace": 10, 1973 "node": 11, 1974 "pod": 1, 1975 "service": 12 1976 }, 1977 "renameByName": { 1978 "Time": "", 1979 "Value #B": "CPU%", 1980 "Value #C": "Hits Ratio %", 1981 "Value #D": "Connections", 1982 "Value #E": "Total Commands / s", 1983 "Value #F": "Uptime / h", 1984 "Value #G": "Hits Ratio %", 1985 "Value #H": "Total Keys", 1986 "Value #I": "Net Input", 1987 "Value #J": "Net Output", 1988 "Value #K": "IOPS", 1989 "__name__": "", 1990 "app_kubernetes_io_instance": "Cluster", 1991 "app_kubernetes_io_name": "", 1992 "instance": "", 1993 "node": "node", 1994 "pod": "instance", 1995 "service": "" 1996 } 1997 } 1998 }, 1999 { 2000 "id": "groupBy", 2001 "options": { 2002 "fields": { 2003 "Cluster": { 2004 "aggregations": [], 2005 "operation": "groupby" 2006 }, 2007 "Hit Ratio %": { 2008 "aggregations": [], 2009 "operation": "groupby" 2010 }, 2011 "Hits Ratio %": { 2012 "aggregations": [], 2013 "operation": "groupby" 2014 }, 2015 "Memory %": { 2016 "aggregations": [], 2017 "operation": "groupby" 2018 }, 2019 "instance": { 2020 "aggregations": [], 2021 "operation": "groupby" 2022 } 2023 } 2024 } 2025 }, 2026 { 2027 "id": "sortBy", 2028 "options": { 2029 "fields": {}, 2030 "sort": [ 2031 { 2032 "desc": false, 2033 "field": "Hits Ratio %" 2034 } 2035 ] 2036 } 2037 }, 2038 { 2039 "id": "limit", 2040 "options": { 2041 "limitField": 5 2042 } 2043 } 2044 ], 2045 "type": "table" 2046 }, 2047 { 2048 "datasource": { 2049 "type": "prometheus", 2050 "uid": "$datasource" 2051 }, 2052 "description": "", 2053 "fieldConfig": { 2054 "defaults": { 2055 "color": { 2056 "mode": "thresholds" 2057 }, 2058 "custom": { 2059 "align": "center", 2060 "displayMode": "auto", 2061 "filterable": false, 2062 "inspect": false 2063 }, 2064 "mappings": [], 2065 "thresholds": { 2066 "mode": "absolute", 2067 "steps": [ 2068 { 2069 "color": "green", 2070 "value": null 2071 } 2072 ] 2073 }, 2074 "unit": "none" 2075 }, 2076 "overrides": [ 2077 { 2078 "matcher": { 2079 "id": "byRegexp", 2080 "options": "/.*%/" 2081 }, 2082 "properties": [ 2083 { 2084 "id": "unit", 2085 "value": "percent" 2086 }, 2087 { 2088 "id": "min", 2089 "value": 0 2090 }, 2091 { 2092 "id": "max", 2093 "value": 100 2094 }, 2095 { 2096 "id": "color", 2097 "value": { 2098 "mode": "continuous-GrYlRd" 2099 } 2100 }, 2101 { 2102 "id": "custom.displayMode", 2103 "value": "gradient-gauge" 2104 } 2105 ] 2106 }, 2107 { 2108 "matcher": { 2109 "id": "byName", 2110 "options": "Memory %" 2111 }, 2112 "properties": [ 2113 { 2114 "id": "custom.width", 2115 "value": 150 2116 } 2117 ] 2118 }, 2119 { 2120 "matcher": { 2121 "id": "byName", 2122 "options": "Connections" 2123 }, 2124 "properties": [ 2125 { 2126 "id": "custom.width", 2127 "value": 147 2128 }, 2129 { 2130 "id": "thresholds", 2131 "value": { 2132 "mode": "absolute", 2133 "steps": [ 2134 { 2135 "color": "green", 2136 "value": null 2137 }, 2138 { 2139 "color": "#EAB839", 2140 "value": 1000 2141 }, 2142 { 2143 "color": "red", 2144 "value": 2000 2145 } 2146 ] 2147 } 2148 }, 2149 { 2150 "id": "custom.displayMode", 2151 "value": "color-background" 2152 } 2153 ] 2154 }, 2155 { 2156 "matcher": { 2157 "id": "byName", 2158 "options": "Total Commands / s" 2159 }, 2160 "properties": [ 2161 { 2162 "id": "custom.width", 2163 "value": 178 2164 }, 2165 { 2166 "id": "custom.displayMode", 2167 "value": "color-background" 2168 }, 2169 { 2170 "id": "thresholds", 2171 "value": { 2172 "mode": "absolute", 2173 "steps": [ 2174 { 2175 "color": "green", 2176 "value": null 2177 }, 2178 { 2179 "color": "#EAB839", 2180 "value": 3000 2181 }, 2182 { 2183 "color": "red", 2184 "value": 4000 2185 } 2186 ] 2187 } 2188 } 2189 ] 2190 }, 2191 { 2192 "matcher": { 2193 "id": "byName", 2194 "options": "Uptime / h" 2195 }, 2196 "properties": [ 2197 { 2198 "id": "unit", 2199 "value": "s" 2200 }, 2201 { 2202 "id": "custom.width", 2203 "value": 89 2204 } 2205 ] 2206 }, 2207 { 2208 "matcher": { 2209 "id": "byName", 2210 "options": "Hits Ratio %" 2211 }, 2212 "properties": [ 2213 { 2214 "id": "custom.width", 2215 "value": 126 2216 }, 2217 { 2218 "id": "unit", 2219 "value": "percentunit" 2220 }, 2221 { 2222 "id": "color", 2223 "value": { 2224 "mode": "continuous-RdYlGr" 2225 } 2226 }, 2227 { 2228 "id": "custom.displayMode", 2229 "value": "gradient-gauge" 2230 }, 2231 { 2232 "id": "max", 2233 "value": 1 2234 } 2235 ] 2236 }, 2237 { 2238 "matcher": { 2239 "id": "byName", 2240 "options": "Total Keys" 2241 }, 2242 "properties": [ 2243 { 2244 "id": "custom.width", 2245 "value": 315 2246 } 2247 ] 2248 }, 2249 { 2250 "matcher": { 2251 "id": "byName", 2252 "options": "Net Input" 2253 }, 2254 "properties": [ 2255 { 2256 "id": "custom.width", 2257 "value": 259 2258 }, 2259 { 2260 "id": "unit", 2261 "value": "binBps" 2262 }, 2263 { 2264 "id": "thresholds", 2265 "value": { 2266 "mode": "absolute", 2267 "steps": [ 2268 { 2269 "color": "green", 2270 "value": null 2271 }, 2272 { 2273 "color": "#EAB839", 2274 "value": 3000000 2275 }, 2276 { 2277 "color": "red", 2278 "value": 10000000 2279 } 2280 ] 2281 } 2282 }, 2283 { 2284 "id": "custom.displayMode", 2285 "value": "color-background" 2286 } 2287 ] 2288 }, 2289 { 2290 "matcher": { 2291 "id": "byName", 2292 "options": "Net Output" 2293 }, 2294 "properties": [ 2295 { 2296 "id": "custom.width", 2297 "value": 274 2298 }, 2299 { 2300 "id": "unit", 2301 "value": "binBps" 2302 }, 2303 { 2304 "id": "custom.displayMode", 2305 "value": "color-background" 2306 }, 2307 { 2308 "id": "thresholds", 2309 "value": { 2310 "mode": "absolute", 2311 "steps": [ 2312 { 2313 "color": "green", 2314 "value": null 2315 }, 2316 { 2317 "color": "#EAB839", 2318 "value": 3000000 2319 }, 2320 { 2321 "color": "red", 2322 "value": 10000000 2323 } 2324 ] 2325 } 2326 } 2327 ] 2328 }, 2329 { 2330 "matcher": { 2331 "id": "byName", 2332 "options": "instance" 2333 }, 2334 "properties": [ 2335 { 2336 "id": "custom.width", 2337 "value": 248 2338 } 2339 ] 2340 } 2341 ] 2342 }, 2343 "gridPos": { 2344 "h": 8, 2345 "w": 24, 2346 "x": 0, 2347 "y": 16 2348 }, 2349 "id": 36, 2350 "options": { 2351 "footer": { 2352 "fields": [ 2353 "Value #B", 2354 "Value #C", 2355 "Value #L", 2356 "Value #H", 2357 "Value #I", 2358 "Value #M", 2359 "Value #N", 2360 "Value #J", 2361 "Value #K" 2362 ], 2363 "reducer": [ 2364 "sum" 2365 ], 2366 "show": false 2367 }, 2368 "showHeader": true, 2369 "sortBy": [] 2370 }, 2371 "pluginVersion": "9.2.4", 2372 "targets": [ 2373 { 2374 "datasource": { 2375 "type": "prometheus", 2376 "uid": "$datasource" 2377 }, 2378 "editorMode": "code", 2379 "exemplar": false, 2380 "expr": "redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 2381 "format": "table", 2382 "hide": false, 2383 "instant": true, 2384 "interval": "", 2385 "legendFormat": "__auto", 2386 "refId": "A" 2387 }, 2388 { 2389 "datasource": { 2390 "type": "prometheus", 2391 "uid": "$datasource" 2392 }, 2393 "editorMode": "code", 2394 "exemplar": false, 2395 "expr": "redis_cpu_util * on (iid) group_right redis_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 2396 "format": "table", 2397 "hide": false, 2398 "instant": true, 2399 "interval": "", 2400 "legendFormat": "__auto", 2401 "refId": "B" 2402 }, 2403 { 2404 "datasource": { 2405 "type": "prometheus", 2406 "uid": "$datasource" 2407 }, 2408 "editorMode": "code", 2409 "exemplar": false, 2410 "expr": "redis_mem_util * on (iid) group_right redis_up or (100 * (redis_memory_used_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} / redis_memory_max_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}))", 2411 "format": "table", 2412 "hide": false, 2413 "instant": true, 2414 "interval": "", 2415 "legendFormat": "__auto", 2416 "refId": "C" 2417 }, 2418 { 2419 "datasource": { 2420 "type": "prometheus", 2421 "uid": "$datasource" 2422 }, 2423 "editorMode": "code", 2424 "exemplar": false, 2425 "expr": "sum(redis_connected_clients{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})by(instance)", 2426 "format": "table", 2427 "hide": false, 2428 "instant": true, 2429 "interval": "", 2430 "legendFormat": "__auto", 2431 "refId": "D" 2432 }, 2433 { 2434 "datasource": { 2435 "type": "prometheus", 2436 "uid": "$datasource" 2437 }, 2438 "editorMode": "code", 2439 "exemplar": false, 2440 "expr": "sum(irate(redis_commands_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} [2m])) by(namespace, app_kubernetes_io_instance, pod)", 2441 "format": "table", 2442 "hide": false, 2443 "instant": true, 2444 "interval": "", 2445 "legendFormat": "__auto", 2446 "refId": "E" 2447 }, 2448 { 2449 "datasource": { 2450 "type": "prometheus", 2451 "uid": "$datasource" 2452 }, 2453 "editorMode": "code", 2454 "exemplar": false, 2455 "expr": "redis_uptime_in_seconds{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} / 3600 - 0", 2456 "format": "table", 2457 "hide": false, 2458 "instant": true, 2459 "interval": "", 2460 "legendFormat": "__auto", 2461 "refId": "F" 2462 }, 2463 { 2464 "datasource": { 2465 "type": "prometheus", 2466 "uid": "$datasource" 2467 }, 2468 "editorMode": "code", 2469 "exemplar": false, 2470 "expr": "avg(irate(redis_keyspace_hits_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]) / (irate(redis_keyspace_misses_total[1m]) + irate(redis_keyspace_hits_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]))) by (instance)", 2471 "format": "table", 2472 "hide": false, 2473 "instant": true, 2474 "interval": "", 2475 "legendFormat": "__auto", 2476 "refId": "G" 2477 }, 2478 { 2479 "datasource": { 2480 "type": "prometheus", 2481 "uid": "$datasource" 2482 }, 2483 "editorMode": "code", 2484 "exemplar": false, 2485 "expr": "sum (redis_db_keys{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (instance)", 2486 "format": "table", 2487 "hide": false, 2488 "instant": true, 2489 "interval": "", 2490 "legendFormat": "__auto", 2491 "refId": "H" 2492 }, 2493 { 2494 "datasource": { 2495 "type": "prometheus", 2496 "uid": "$datasource" 2497 }, 2498 "editorMode": "code", 2499 "exemplar": false, 2500 "expr": "sum(irate(redis_net_input_bytes_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m])) by (instance)", 2501 "format": "table", 2502 "hide": false, 2503 "instant": true, 2504 "interval": "", 2505 "legendFormat": "__auto", 2506 "refId": "I" 2507 }, 2508 { 2509 "datasource": { 2510 "type": "prometheus", 2511 "uid": "$datasource" 2512 }, 2513 "editorMode": "code", 2514 "exemplar": false, 2515 "expr": "sum(irate(redis_net_output_bytes_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m])) by (instance)", 2516 "format": "table", 2517 "hide": false, 2518 "instant": true, 2519 "interval": "", 2520 "legendFormat": "__auto", 2521 "refId": "J" 2522 } 2523 ], 2524 "title": "Resource Overview", 2525 "transformations": [ 2526 { 2527 "id": "merge", 2528 "options": {} 2529 }, 2530 { 2531 "id": "organize", 2532 "options": { 2533 "excludeByName": { 2534 "Time": true, 2535 "Value": true, 2536 "Value #A": true, 2537 "Value #C": true, 2538 "Value #F": true, 2539 "Value #G": true, 2540 "__name__": true, 2541 "account": true, 2542 "app_kubernetes_io_component": true, 2543 "app_kubernetes_io_component_name": true, 2544 "app_kubernetes_io_instance": true, 2545 "app_kubernetes_io_managed_by": true, 2546 "app_kubernetes_io_name": true, 2547 "apps_kubeblocks_io_component_name": true, 2548 "group": true, 2549 "iaccount": true, 2550 "igroup": true, 2551 "iname": true, 2552 "instance": true, 2553 "job": true, 2554 "namespace": true, 2555 "node": true, 2556 "origin_prometheus": true, 2557 "pod": false, 2558 "region": true, 2559 "service": true, 2560 "vendor": true 2561 }, 2562 "indexByName": { 2563 "Time": 2, 2564 "Value #A": 14, 2565 "Value #C": 4, 2566 "Value #D": 6, 2567 "Value #E": 7, 2568 "Value #F": 12, 2569 "Value #G": 5, 2570 "Value #H": 10, 2571 "Value #I": 8, 2572 "Value #J": 9, 2573 "Value #K": 22, 2574 "__name__": 3, 2575 "app_kubernetes_io_component": 20, 2576 "app_kubernetes_io_instance": 1, 2577 "app_kubernetes_io_managed_by": 15, 2578 "app_kubernetes_io_name": 16, 2579 "apps_kubeblocks_io_component_name": 21, 2580 "instance": 11, 2581 "job": 13, 2582 "namespace": 17, 2583 "node": 18, 2584 "pod": 0, 2585 "service": 19 2586 }, 2587 "renameByName": { 2588 "Time": "", 2589 "Value #B": "CPU%", 2590 "Value #C": "Memory %", 2591 "Value #D": "Connections", 2592 "Value #E": "Total Commands / s", 2593 "Value #F": "Uptime / h", 2594 "Value #G": "Hits Ratio %", 2595 "Value #H": "Total Keys", 2596 "Value #I": "Net Input", 2597 "Value #J": "Net Output", 2598 "Value #K": "IOPS", 2599 "__name__": "", 2600 "app_kubernetes_io_instance": "Cluster", 2601 "app_kubernetes_io_name": "", 2602 "instance": "", 2603 "node": "node", 2604 "pod": "instance", 2605 "service": "" 2606 } 2607 } 2608 } 2609 ], 2610 "type": "table" 2611 }, 2612 { 2613 "collapsed": false, 2614 "datasource": { 2615 "type": "prometheus", 2616 "uid": "$datasource" 2617 }, 2618 "gridPos": { 2619 "h": 1, 2620 "w": 24, 2621 "x": 0, 2622 "y": 24 2623 }, 2624 "id": 26, 2625 "panels": [], 2626 "targets": [ 2627 { 2628 "datasource": { 2629 "type": "prometheus", 2630 "uid": "$datasource" 2631 }, 2632 "refId": "A" 2633 } 2634 ], 2635 "title": "Connection And CPU", 2636 "type": "row" 2637 }, 2638 { 2639 "datasource": { 2640 "type": "prometheus", 2641 "uid": "$datasource" 2642 }, 2643 "description": "Sum taken across instances", 2644 "fieldConfig": { 2645 "defaults": { 2646 "color": { 2647 "mode": "palette-classic" 2648 }, 2649 "custom": { 2650 "axisCenteredZero": false, 2651 "axisColorMode": "text", 2652 "axisLabel": "", 2653 "axisPlacement": "auto", 2654 "barAlignment": 0, 2655 "drawStyle": "line", 2656 "fillOpacity": 10, 2657 "gradientMode": "none", 2658 "hideFrom": { 2659 "legend": false, 2660 "tooltip": false, 2661 "viz": false 2662 }, 2663 "lineInterpolation": "linear", 2664 "lineWidth": 1, 2665 "pointSize": 5, 2666 "scaleDistribution": { 2667 "type": "linear" 2668 }, 2669 "showPoints": "never", 2670 "spanNulls": false, 2671 "stacking": { 2672 "group": "A", 2673 "mode": "none" 2674 }, 2675 "thresholdsStyle": { 2676 "mode": "off" 2677 } 2678 }, 2679 "links": [], 2680 "mappings": [], 2681 "thresholds": { 2682 "mode": "absolute", 2683 "steps": [ 2684 { 2685 "color": "green", 2686 "value": null 2687 }, 2688 { 2689 "color": "red", 2690 "value": 80 2691 } 2692 ] 2693 }, 2694 "unit": "short" 2695 }, 2696 "overrides": [] 2697 }, 2698 "gridPos": { 2699 "h": 7, 2700 "w": 8, 2701 "x": 0, 2702 "y": 25 2703 }, 2704 "id": 16, 2705 "links": [], 2706 "options": { 2707 "legend": { 2708 "calcs": [], 2709 "displayMode": "list", 2710 "placement": "bottom", 2711 "showLegend": true 2712 }, 2713 "tooltip": { 2714 "mode": "multi", 2715 "sort": "none" 2716 } 2717 }, 2718 "pluginVersion": "9.2.4", 2719 "targets": [ 2720 { 2721 "datasource": { 2722 "type": "prometheus", 2723 "uid": "$datasource" 2724 }, 2725 "editorMode": "code", 2726 "expr": "redis_config_maxclients{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 2727 "hide": true, 2728 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | maxclients", 2729 "range": true, 2730 "refId": "C" 2731 }, 2732 { 2733 "datasource": { 2734 "uid": "$datasource" 2735 }, 2736 "editorMode": "code", 2737 "expr": "redis_connected_clients{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 2738 "format": "time_series", 2739 "interval": "", 2740 "intervalFactor": 1, 2741 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | connected_clients", 2742 "range": true, 2743 "refId": "A" 2744 }, 2745 { 2746 "datasource": { 2747 "uid": "$datasource" 2748 }, 2749 "editorMode": "code", 2750 "expr": "redis_blocked_clients{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 2751 "format": "time_series", 2752 "interval": "", 2753 "intervalFactor": 1, 2754 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | blocked_clients", 2755 "range": true, 2756 "refId": "B" 2757 } 2758 ], 2759 "title": "Current Connections", 2760 "type": "timeseries" 2761 }, 2762 { 2763 "datasource": { 2764 "type": "prometheus", 2765 "uid": "$datasource" 2766 }, 2767 "description": "", 2768 "fieldConfig": { 2769 "defaults": { 2770 "color": { 2771 "mode": "palette-classic" 2772 }, 2773 "custom": { 2774 "axisCenteredZero": false, 2775 "axisColorMode": "text", 2776 "axisLabel": "", 2777 "axisPlacement": "auto", 2778 "barAlignment": 0, 2779 "drawStyle": "line", 2780 "fillOpacity": 20, 2781 "gradientMode": "none", 2782 "hideFrom": { 2783 "legend": false, 2784 "tooltip": false, 2785 "viz": false 2786 }, 2787 "lineInterpolation": "linear", 2788 "lineWidth": 2, 2789 "pointSize": 5, 2790 "scaleDistribution": { 2791 "type": "linear" 2792 }, 2793 "showPoints": "never", 2794 "spanNulls": false, 2795 "stacking": { 2796 "group": "A", 2797 "mode": "none" 2798 }, 2799 "thresholdsStyle": { 2800 "mode": "off" 2801 } 2802 }, 2803 "links": [], 2804 "mappings": [], 2805 "min": 0, 2806 "thresholds": { 2807 "mode": "absolute", 2808 "steps": [ 2809 { 2810 "color": "green", 2811 "value": null 2812 }, 2813 { 2814 "color": "red", 2815 "value": 80 2816 } 2817 ] 2818 }, 2819 "unit": "percentunit" 2820 }, 2821 "overrides": [] 2822 }, 2823 "gridPos": { 2824 "h": 7, 2825 "w": 8, 2826 "x": 8, 2827 "y": 25 2828 }, 2829 "id": 60, 2830 "links": [], 2831 "options": { 2832 "legend": { 2833 "calcs": [ 2834 "mean", 2835 "lastNotNull", 2836 "max", 2837 "min" 2838 ], 2839 "displayMode": "table", 2840 "placement": "bottom", 2841 "showLegend": true 2842 }, 2843 "tooltip": { 2844 "mode": "multi", 2845 "sort": "none" 2846 } 2847 }, 2848 "pluginVersion": "9.2.4", 2849 "targets": [ 2850 { 2851 "calculatedInterval": "2m", 2852 "datasource": { 2853 "uid": "$datasource" 2854 }, 2855 "datasourceErrors": {}, 2856 "editorMode": "code", 2857 "errors": {}, 2858 "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (redis_connected_clients{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) / on(namespace,app_kubernetes_io_instance,pod) redis_config_maxclients{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 2859 "format": "time_series", 2860 "interval": "", 2861 "intervalFactor": 1, 2862 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 2863 "metric": "", 2864 "range": true, 2865 "refId": "A", 2866 "step": 20 2867 } 2868 ], 2869 "title": "Used Connections Ratio", 2870 "type": "timeseries" 2871 }, 2872 { 2873 "datasource": { 2874 "type": "prometheus", 2875 "uid": "$datasource" 2876 }, 2877 "description": "Sum taken across instances", 2878 "fieldConfig": { 2879 "defaults": { 2880 "color": { 2881 "mode": "palette-classic" 2882 }, 2883 "custom": { 2884 "axisCenteredZero": false, 2885 "axisColorMode": "text", 2886 "axisLabel": "", 2887 "axisPlacement": "auto", 2888 "barAlignment": 0, 2889 "drawStyle": "line", 2890 "fillOpacity": 10, 2891 "gradientMode": "none", 2892 "hideFrom": { 2893 "legend": false, 2894 "tooltip": false, 2895 "viz": false 2896 }, 2897 "lineInterpolation": "linear", 2898 "lineWidth": 1, 2899 "pointSize": 5, 2900 "scaleDistribution": { 2901 "type": "linear" 2902 }, 2903 "showPoints": "never", 2904 "spanNulls": false, 2905 "stacking": { 2906 "group": "A", 2907 "mode": "none" 2908 }, 2909 "thresholdsStyle": { 2910 "mode": "off" 2911 } 2912 }, 2913 "links": [], 2914 "mappings": [], 2915 "thresholds": { 2916 "mode": "absolute", 2917 "steps": [ 2918 { 2919 "color": "green", 2920 "value": null 2921 }, 2922 { 2923 "color": "red", 2924 "value": 80 2925 } 2926 ] 2927 }, 2928 "unit": "short" 2929 }, 2930 "overrides": [] 2931 }, 2932 "gridPos": { 2933 "h": 7, 2934 "w": 8, 2935 "x": 16, 2936 "y": 25 2937 }, 2938 "id": 68, 2939 "links": [], 2940 "options": { 2941 "legend": { 2942 "calcs": [], 2943 "displayMode": "list", 2944 "placement": "bottom", 2945 "showLegend": true 2946 }, 2947 "tooltip": { 2948 "mode": "multi", 2949 "sort": "none" 2950 } 2951 }, 2952 "pluginVersion": "9.2.4", 2953 "targets": [ 2954 { 2955 "datasource": { 2956 "type": "prometheus", 2957 "uid": "$datasource" 2958 }, 2959 "editorMode": "code", 2960 "expr": "rate(redis_cpu_user_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]) * 100", 2961 "hide": false, 2962 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | cpu_user", 2963 "range": true, 2964 "refId": "C" 2965 }, 2966 { 2967 "datasource": { 2968 "uid": "$datasource" 2969 }, 2970 "editorMode": "code", 2971 "expr": "rate(redis_cpu_sys_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[2m]) * 100", 2972 "format": "time_series", 2973 "interval": "", 2974 "intervalFactor": 1, 2975 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | cpu_sys", 2976 "range": true, 2977 "refId": "A" 2978 } 2979 ], 2980 "title": "CPU Average Ratio", 2981 "type": "timeseries" 2982 }, 2983 { 2984 "collapsed": false, 2985 "datasource": { 2986 "type": "prometheus", 2987 "uid": "$datasource" 2988 }, 2989 "gridPos": { 2990 "h": 1, 2991 "w": 24, 2992 "x": 0, 2993 "y": 32 2994 }, 2995 "id": 22, 2996 "panels": [], 2997 "targets": [ 2998 { 2999 "datasource": { 3000 "type": "prometheus", 3001 "uid": "$datasource" 3002 }, 3003 "refId": "A" 3004 } 3005 ], 3006 "title": "Memory And Keys", 3007 "type": "row" 3008 }, 3009 { 3010 "datasource": { 3011 "type": "prometheus", 3012 "uid": "$datasource" 3013 }, 3014 "description": "Total taken across instances", 3015 "fieldConfig": { 3016 "defaults": { 3017 "color": { 3018 "mode": "palette-classic" 3019 }, 3020 "custom": { 3021 "axisCenteredZero": false, 3022 "axisColorMode": "text", 3023 "axisLabel": "", 3024 "axisPlacement": "auto", 3025 "barAlignment": 0, 3026 "drawStyle": "line", 3027 "fillOpacity": 10, 3028 "gradientMode": "none", 3029 "hideFrom": { 3030 "legend": false, 3031 "tooltip": false, 3032 "viz": false 3033 }, 3034 "lineInterpolation": "linear", 3035 "lineWidth": 1, 3036 "pointSize": 5, 3037 "scaleDistribution": { 3038 "type": "linear" 3039 }, 3040 "showPoints": "never", 3041 "spanNulls": false, 3042 "stacking": { 3043 "group": "A", 3044 "mode": "none" 3045 }, 3046 "thresholdsStyle": { 3047 "mode": "off" 3048 } 3049 }, 3050 "links": [], 3051 "mappings": [], 3052 "min": 0, 3053 "thresholds": { 3054 "mode": "absolute", 3055 "steps": [ 3056 { 3057 "color": "green", 3058 "value": null 3059 }, 3060 { 3061 "color": "red", 3062 "value": 80 3063 } 3064 ] 3065 }, 3066 "unit": "bytes" 3067 }, 3068 "overrides": [ 3069 { 3070 "matcher": { 3071 "id": "byName", 3072 "options": "max" 3073 }, 3074 "properties": [ 3075 { 3076 "id": "color", 3077 "value": { 3078 "fixedColor": "#BF1B00", 3079 "mode": "fixed" 3080 } 3081 } 3082 ] 3083 }, 3084 { 3085 "matcher": { 3086 "id": "byRegexp", 3087 "options": "/max/" 3088 }, 3089 "properties": [ 3090 { 3091 "id": "color", 3092 "value": { 3093 "fixedColor": "#E02F44", 3094 "mode": "fixed" 3095 } 3096 }, 3097 { 3098 "id": "custom.fillOpacity", 3099 "value": 0 3100 }, 3101 { 3102 "id": "custom.lineWidth", 3103 "value": 1 3104 }, 3105 { 3106 "id": "custom.lineStyle", 3107 "value": { 3108 "dash": [ 3109 10, 3110 10 3111 ], 3112 "fill": "dash" 3113 } 3114 } 3115 ] 3116 } 3117 ] 3118 }, 3119 "gridPos": { 3120 "h": 7, 3121 "w": 8, 3122 "x": 0, 3123 "y": 33 3124 }, 3125 "id": 7, 3126 "links": [], 3127 "options": { 3128 "legend": { 3129 "calcs": [], 3130 "displayMode": "list", 3131 "placement": "bottom", 3132 "showLegend": true 3133 }, 3134 "tooltip": { 3135 "mode": "multi", 3136 "sort": "none" 3137 } 3138 }, 3139 "pluginVersion": "9.2.4", 3140 "targets": [ 3141 { 3142 "datasource": { 3143 "uid": "$datasource" 3144 }, 3145 "editorMode": "code", 3146 "expr": "sum(redis_memory_used_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace, app_kubernetes_io_instance, pod)", 3147 "format": "time_series", 3148 "interval": "", 3149 "intervalFactor": 2, 3150 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | Used Memory", 3151 "metric": "", 3152 "range": true, 3153 "refId": "A", 3154 "step": 240, 3155 "target": "" 3156 }, 3157 { 3158 "datasource": { 3159 "uid": "$datasource" 3160 }, 3161 "editorMode": "code", 3162 "expr": "sum(redis_memory_max_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace, app_kubernetes_io_instance, pod)", 3163 "format": "time_series", 3164 "hide": false, 3165 "interval": "", 3166 "intervalFactor": 2, 3167 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | MaxMemory", 3168 "range": true, 3169 "refId": "B", 3170 "step": 240 3171 }, 3172 { 3173 "datasource": { 3174 "uid": "$datasource" 3175 }, 3176 "editorMode": "code", 3177 "expr": "sum(redis_memory_used_rss_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace, app_kubernetes_io_instance, pod)", 3178 "interval": "", 3179 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | Used RSS Memory", 3180 "range": true, 3181 "refId": "C" 3182 }, 3183 { 3184 "datasource": { 3185 "type": "prometheus", 3186 "uid": "$datasource" 3187 }, 3188 "editorMode": "code", 3189 "expr": "sum(redis_memory_used_lua_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace, app_kubernetes_io_instance, pod)", 3190 "hide": false, 3191 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | Used Memory Lua", 3192 "range": true, 3193 "refId": "D" 3194 } 3195 ], 3196 "title": "Total Memory Usage", 3197 "type": "timeseries" 3198 }, 3199 { 3200 "datasource": { 3201 "type": "prometheus", 3202 "uid": "$datasource" 3203 }, 3204 "description": "", 3205 "fieldConfig": { 3206 "defaults": { 3207 "color": { 3208 "mode": "palette-classic" 3209 }, 3210 "custom": { 3211 "axisCenteredZero": false, 3212 "axisColorMode": "text", 3213 "axisLabel": "", 3214 "axisPlacement": "auto", 3215 "barAlignment": 0, 3216 "drawStyle": "line", 3217 "fillOpacity": 20, 3218 "gradientMode": "none", 3219 "hideFrom": { 3220 "legend": false, 3221 "tooltip": false, 3222 "viz": false 3223 }, 3224 "lineInterpolation": "linear", 3225 "lineWidth": 2, 3226 "pointSize": 5, 3227 "scaleDistribution": { 3228 "type": "linear" 3229 }, 3230 "showPoints": "never", 3231 "spanNulls": false, 3232 "stacking": { 3233 "group": "A", 3234 "mode": "none" 3235 }, 3236 "thresholdsStyle": { 3237 "mode": "off" 3238 } 3239 }, 3240 "links": [], 3241 "mappings": [], 3242 "min": 0, 3243 "thresholds": { 3244 "mode": "absolute", 3245 "steps": [ 3246 { 3247 "color": "green", 3248 "value": null 3249 }, 3250 { 3251 "color": "red", 3252 "value": 80 3253 } 3254 ] 3255 }, 3256 "unit": "percentunit" 3257 }, 3258 "overrides": [] 3259 }, 3260 "gridPos": { 3261 "h": 7, 3262 "w": 8, 3263 "x": 8, 3264 "y": 33 3265 }, 3266 "id": 64, 3267 "links": [], 3268 "options": { 3269 "legend": { 3270 "calcs": [ 3271 "mean", 3272 "lastNotNull", 3273 "max", 3274 "min" 3275 ], 3276 "displayMode": "table", 3277 "placement": "bottom", 3278 "showLegend": true 3279 }, 3280 "tooltip": { 3281 "mode": "multi", 3282 "sort": "none" 3283 } 3284 }, 3285 "pluginVersion": "9.2.4", 3286 "targets": [ 3287 { 3288 "calculatedInterval": "2m", 3289 "datasource": { 3290 "uid": "$datasource" 3291 }, 3292 "datasourceErrors": {}, 3293 "editorMode": "code", 3294 "errors": {}, 3295 "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (redis_memory_used_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) / on(namespace,app_kubernetes_io_instance,pod) redis_memory_max_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 3296 "format": "time_series", 3297 "interval": "", 3298 "intervalFactor": 1, 3299 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3300 "metric": "", 3301 "range": true, 3302 "refId": "A", 3303 "step": 20 3304 } 3305 ], 3306 "title": "Memory Usage Ratio", 3307 "type": "timeseries" 3308 }, 3309 { 3310 "datasource": { 3311 "type": "prometheus", 3312 "uid": "$datasource" 3313 }, 3314 "fieldConfig": { 3315 "defaults": { 3316 "color": { 3317 "mode": "palette-classic" 3318 }, 3319 "custom": { 3320 "axisCenteredZero": false, 3321 "axisColorMode": "text", 3322 "axisLabel": "", 3323 "axisPlacement": "auto", 3324 "barAlignment": 0, 3325 "drawStyle": "line", 3326 "fillOpacity": 10, 3327 "gradientMode": "none", 3328 "hideFrom": { 3329 "legend": false, 3330 "tooltip": false, 3331 "viz": false 3332 }, 3333 "lineInterpolation": "linear", 3334 "lineWidth": 1, 3335 "pointSize": 5, 3336 "scaleDistribution": { 3337 "type": "linear" 3338 }, 3339 "showPoints": "never", 3340 "spanNulls": true, 3341 "stacking": { 3342 "group": "A", 3343 "mode": "none" 3344 }, 3345 "thresholdsStyle": { 3346 "mode": "off" 3347 } 3348 }, 3349 "links": [], 3350 "mappings": [], 3351 "thresholds": { 3352 "mode": "absolute", 3353 "steps": [ 3354 { 3355 "color": "green", 3356 "value": null 3357 }, 3358 { 3359 "color": "red", 3360 "value": 80 3361 } 3362 ] 3363 }, 3364 "unit": "short" 3365 }, 3366 "overrides": [ 3367 { 3368 "matcher": { 3369 "id": "byName", 3370 "options": "Recommend restart redis" 3371 }, 3372 "properties": [ 3373 { 3374 "id": "color", 3375 "value": { 3376 "fixedColor": "red", 3377 "mode": "fixed" 3378 } 3379 } 3380 ] 3381 }, 3382 { 3383 "matcher": { 3384 "id": "byRegexp", 3385 "options": "/restart/" 3386 }, 3387 "properties": [ 3388 { 3389 "id": "color", 3390 "value": { 3391 "fixedColor": "#E02F44", 3392 "mode": "fixed" 3393 } 3394 }, 3395 { 3396 "id": "custom.fillOpacity", 3397 "value": 0 3398 }, 3399 { 3400 "id": "custom.lineWidth", 3401 "value": 1 3402 }, 3403 { 3404 "id": "custom.lineStyle", 3405 "value": { 3406 "dash": [ 3407 10, 3408 10 3409 ], 3410 "fill": "dash" 3411 } 3412 } 3413 ] 3414 } 3415 ] 3416 }, 3417 "gridPos": { 3418 "h": 7, 3419 "w": 8, 3420 "x": 16, 3421 "y": 33 3422 }, 3423 "id": 10, 3424 "links": [], 3425 "options": { 3426 "legend": { 3427 "calcs": [], 3428 "displayMode": "list", 3429 "placement": "bottom", 3430 "showLegend": true 3431 }, 3432 "tooltip": { 3433 "mode": "multi", 3434 "sort": "none" 3435 } 3436 }, 3437 "pluginVersion": "9.2.4", 3438 "targets": [ 3439 { 3440 "datasource": { 3441 "uid": "$datasource" 3442 }, 3443 "editorMode": "code", 3444 "expr": "redis_mem_fragmentation_ratio{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 3445 "hide": false, 3446 "interval": "", 3447 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3448 "range": true, 3449 "refId": "C" 3450 } 3451 ], 3452 "title": "Memory fragmentation ratio per instance", 3453 "type": "timeseries" 3454 }, 3455 { 3456 "datasource": { 3457 "type": "prometheus", 3458 "uid": "$datasource" 3459 }, 3460 "description": "Sum taken across instances", 3461 "fieldConfig": { 3462 "defaults": { 3463 "color": { 3464 "mode": "palette-classic" 3465 }, 3466 "custom": { 3467 "axisCenteredZero": false, 3468 "axisColorMode": "text", 3469 "axisLabel": "", 3470 "axisPlacement": "auto", 3471 "barAlignment": 0, 3472 "drawStyle": "line", 3473 "fillOpacity": 10, 3474 "gradientMode": "none", 3475 "hideFrom": { 3476 "legend": false, 3477 "tooltip": false, 3478 "viz": false 3479 }, 3480 "lineInterpolation": "linear", 3481 "lineWidth": 1, 3482 "pointSize": 5, 3483 "scaleDistribution": { 3484 "type": "linear" 3485 }, 3486 "showPoints": "never", 3487 "spanNulls": true, 3488 "stacking": { 3489 "group": "A", 3490 "mode": "normal" 3491 }, 3492 "thresholdsStyle": { 3493 "mode": "off" 3494 } 3495 }, 3496 "links": [], 3497 "mappings": [], 3498 "thresholds": { 3499 "mode": "absolute", 3500 "steps": [ 3501 { 3502 "color": "green", 3503 "value": null 3504 }, 3505 { 3506 "color": "red", 3507 "value": 80 3508 } 3509 ] 3510 }, 3511 "unit": "short" 3512 }, 3513 "overrides": [] 3514 }, 3515 "gridPos": { 3516 "h": 7, 3517 "w": 8, 3518 "x": 0, 3519 "y": 40 3520 }, 3521 "id": 13, 3522 "links": [], 3523 "options": { 3524 "legend": { 3525 "calcs": [], 3526 "displayMode": "list", 3527 "placement": "bottom", 3528 "showLegend": true 3529 }, 3530 "tooltip": { 3531 "mode": "multi", 3532 "sort": "none" 3533 } 3534 }, 3535 "pluginVersion": "9.2.4", 3536 "targets": [ 3537 { 3538 "datasource": { 3539 "uid": "$datasource" 3540 }, 3541 "editorMode": "code", 3542 "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (redis_db_keys{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) - sum by(namespace,app_kubernetes_io_instance,pod) (redis_db_keys_expiring{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) ", 3543 "format": "time_series", 3544 "hide": false, 3545 "interval": "", 3546 "intervalFactor": 1, 3547 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | Not-Expiring", 3548 "range": true, 3549 "refId": "A", 3550 "step": 240, 3551 "target": "" 3552 }, 3553 { 3554 "datasource": { 3555 "uid": "$datasource" 3556 }, 3557 "editorMode": "code", 3558 "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (redis_db_keys_expiring{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})", 3559 "format": "time_series", 3560 "interval": "", 3561 "intervalFactor": 2, 3562 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | Expiring", 3563 "metric": "", 3564 "range": true, 3565 "refId": "B", 3566 "step": 240 3567 }, 3568 { 3569 "datasource": { 3570 "type": "prometheus", 3571 "uid": "$datasource" 3572 }, 3573 "editorMode": "code", 3574 "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (redis_evicted_keys_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})", 3575 "hide": false, 3576 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | Evicted", 3577 "range": true, 3578 "refId": "C" 3579 } 3580 ], 3581 "title": "Expiring / Not-Expiring / Evicted Keys", 3582 "type": "timeseries" 3583 }, 3584 { 3585 "datasource": { 3586 "type": "prometheus", 3587 "uid": "$datasource" 3588 }, 3589 "fieldConfig": { 3590 "defaults": { 3591 "color": { 3592 "mode": "palette-classic" 3593 }, 3594 "custom": { 3595 "axisCenteredZero": false, 3596 "axisColorMode": "text", 3597 "axisLabel": "", 3598 "axisPlacement": "auto", 3599 "barAlignment": 0, 3600 "drawStyle": "line", 3601 "fillOpacity": 10, 3602 "gradientMode": "none", 3603 "hideFrom": { 3604 "legend": false, 3605 "tooltip": false, 3606 "viz": false 3607 }, 3608 "lineInterpolation": "linear", 3609 "lineWidth": 1, 3610 "pointSize": 5, 3611 "scaleDistribution": { 3612 "type": "linear" 3613 }, 3614 "showPoints": "never", 3615 "spanNulls": true, 3616 "stacking": { 3617 "group": "A", 3618 "mode": "none" 3619 }, 3620 "thresholdsStyle": { 3621 "mode": "off" 3622 } 3623 }, 3624 "links": [], 3625 "mappings": [], 3626 "thresholds": { 3627 "mode": "absolute", 3628 "steps": [ 3629 { 3630 "color": "green", 3631 "value": null 3632 }, 3633 { 3634 "color": "red", 3635 "value": 80 3636 } 3637 ] 3638 }, 3639 "unit": "short" 3640 }, 3641 "overrides": [ 3642 { 3643 "matcher": { 3644 "id": "byName", 3645 "options": "Evictions" 3646 }, 3647 "properties": [ 3648 { 3649 "id": "color", 3650 "value": { 3651 "fixedColor": "red", 3652 "mode": "fixed" 3653 } 3654 } 3655 ] 3656 }, 3657 { 3658 "matcher": { 3659 "id": "byName", 3660 "options": "evicts" 3661 }, 3662 "properties": [ 3663 { 3664 "id": "color", 3665 "value": { 3666 "fixedColor": "#890F02", 3667 "mode": "fixed" 3668 } 3669 } 3670 ] 3671 }, 3672 { 3673 "matcher": { 3674 "id": "byName", 3675 "options": "memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"prometheus\"}" 3676 }, 3677 "properties": [ 3678 { 3679 "id": "color", 3680 "value": { 3681 "fixedColor": "#890F02", 3682 "mode": "fixed" 3683 } 3684 } 3685 ] 3686 }, 3687 { 3688 "matcher": { 3689 "id": "byName", 3690 "options": "reclaims" 3691 }, 3692 "properties": [ 3693 { 3694 "id": "color", 3695 "value": { 3696 "fixedColor": "#3F6833", 3697 "mode": "fixed" 3698 } 3699 } 3700 ] 3701 }, 3702 { 3703 "matcher": { 3704 "id": "byName", 3705 "options": "{container=\"redis-exporter\", instance=\"redis-86cb5d76d7-fcdln:redis-exporter:redis-metrics\", job=\"default/redis\", namespace=\"default\", pod=\"redis-86cb5d76d7-fcdln\"}" 3706 }, 3707 "properties": [ 3708 { 3709 "id": "color", 3710 "value": { 3711 "fixedColor": "red", 3712 "mode": "fixed" 3713 } 3714 } 3715 ] 3716 }, 3717 { 3718 "matcher": { 3719 "id": "byName", 3720 "options": "{instance=\"redis-86cb5d76d7-fcdln:redis-exporter:redis-metrics\"}" 3721 }, 3722 "properties": [ 3723 { 3724 "id": "color", 3725 "value": { 3726 "fixedColor": "red", 3727 "mode": "fixed" 3728 } 3729 } 3730 ] 3731 } 3732 ] 3733 }, 3734 "gridPos": { 3735 "h": 7, 3736 "w": 8, 3737 "x": 8, 3738 "y": 40 3739 }, 3740 "id": 8, 3741 "links": [], 3742 "options": { 3743 "legend": { 3744 "calcs": [], 3745 "displayMode": "list", 3746 "placement": "bottom", 3747 "showLegend": true 3748 }, 3749 "tooltip": { 3750 "mode": "multi", 3751 "sort": "none" 3752 } 3753 }, 3754 "pluginVersion": "9.2.4", 3755 "targets": [ 3756 { 3757 "datasource": { 3758 "uid": "$datasource" 3759 }, 3760 "editorMode": "code", 3761 "expr": "irate(redis_evicted_keys_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])", 3762 "format": "time_series", 3763 "interval": "", 3764 "intervalFactor": 2, 3765 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}", 3766 "range": true, 3767 "refId": "B", 3768 "step": 240 3769 } 3770 ], 3771 "title": "Key evictions per second per instance", 3772 "type": "timeseries" 3773 }, 3774 { 3775 "datasource": { 3776 "type": "prometheus", 3777 "uid": "$datasource" 3778 }, 3779 "description": "Sum taken across instances", 3780 "fieldConfig": { 3781 "defaults": { 3782 "color": { 3783 "mode": "palette-classic" 3784 }, 3785 "custom": { 3786 "axisCenteredZero": false, 3787 "axisColorMode": "text", 3788 "axisLabel": "", 3789 "axisPlacement": "auto", 3790 "barAlignment": 0, 3791 "drawStyle": "line", 3792 "fillOpacity": 10, 3793 "gradientMode": "none", 3794 "hideFrom": { 3795 "legend": false, 3796 "tooltip": false, 3797 "viz": false 3798 }, 3799 "lineInterpolation": "linear", 3800 "lineWidth": 1, 3801 "pointSize": 5, 3802 "scaleDistribution": { 3803 "type": "linear" 3804 }, 3805 "showPoints": "never", 3806 "spanNulls": false, 3807 "stacking": { 3808 "group": "A", 3809 "mode": "normal" 3810 }, 3811 "thresholdsStyle": { 3812 "mode": "off" 3813 } 3814 }, 3815 "links": [], 3816 "mappings": [], 3817 "thresholds": { 3818 "mode": "absolute", 3819 "steps": [ 3820 { 3821 "color": "green", 3822 "value": null 3823 }, 3824 { 3825 "color": "red", 3826 "value": 80 3827 } 3828 ] 3829 }, 3830 "unit": "none" 3831 }, 3832 "overrides": [ 3833 { 3834 "matcher": { 3835 "id": "byName", 3836 "options": "db1" 3837 }, 3838 "properties": [ 3839 { 3840 "id": "color", 3841 "value": { 3842 "fixedColor": "yellow", 3843 "mode": "fixed" 3844 } 3845 } 3846 ] 3847 } 3848 ] 3849 }, 3850 "gridPos": { 3851 "h": 7, 3852 "w": 8, 3853 "x": 16, 3854 "y": 40 3855 }, 3856 "id": 5, 3857 "links": [], 3858 "options": { 3859 "legend": { 3860 "calcs": [], 3861 "displayMode": "list", 3862 "placement": "bottom", 3863 "showLegend": true 3864 }, 3865 "tooltip": { 3866 "mode": "multi", 3867 "sort": "asc" 3868 } 3869 }, 3870 "pluginVersion": "9.2.4", 3871 "targets": [ 3872 { 3873 "datasource": { 3874 "uid": "$datasource" 3875 }, 3876 "editorMode": "code", 3877 "expr": "sum (redis_db_keys{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace,app_kubernetes_io_instance,pod,db)", 3878 "format": "time_series", 3879 "interval": "", 3880 "intervalFactor": 1, 3881 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{ db }}", 3882 "range": true, 3883 "refId": "A", 3884 "step": 240, 3885 "target": "" 3886 } 3887 ], 3888 "title": "Total Items per DB", 3889 "type": "timeseries" 3890 }, 3891 { 3892 "datasource": { 3893 "type": "prometheus", 3894 "uid": "$datasource" 3895 }, 3896 "description": "Average taken across instances", 3897 "fieldConfig": { 3898 "defaults": { 3899 "color": { 3900 "mode": "palette-classic" 3901 }, 3902 "custom": { 3903 "axisCenteredZero": false, 3904 "axisColorMode": "text", 3905 "axisLabel": "", 3906 "axisPlacement": "auto", 3907 "barAlignment": 0, 3908 "drawStyle": "line", 3909 "fillOpacity": 10, 3910 "gradientMode": "none", 3911 "hideFrom": { 3912 "legend": false, 3913 "tooltip": false, 3914 "viz": false 3915 }, 3916 "lineInterpolation": "linear", 3917 "lineWidth": 1, 3918 "pointSize": 5, 3919 "scaleDistribution": { 3920 "type": "linear" 3921 }, 3922 "showPoints": "never", 3923 "spanNulls": true, 3924 "stacking": { 3925 "group": "A", 3926 "mode": "normal" 3927 }, 3928 "thresholdsStyle": { 3929 "mode": "off" 3930 } 3931 }, 3932 "links": [], 3933 "mappings": [], 3934 "thresholds": { 3935 "mode": "absolute", 3936 "steps": [ 3937 { 3938 "color": "green", 3939 "value": null 3940 }, 3941 { 3942 "color": "red", 3943 "value": 80 3944 } 3945 ] 3946 }, 3947 "unit": "short" 3948 }, 3949 "overrides": [] 3950 }, 3951 "gridPos": { 3952 "h": 7, 3953 "w": 16, 3954 "x": 0, 3955 "y": 47 3956 }, 3957 "id": 18, 3958 "links": [], 3959 "options": { 3960 "legend": { 3961 "calcs": [ 3962 "mean", 3963 "lastNotNull", 3964 "max" 3965 ], 3966 "displayMode": "table", 3967 "placement": "right", 3968 "showLegend": true 3969 }, 3970 "tooltip": { 3971 "mode": "multi", 3972 "sort": "desc" 3973 } 3974 }, 3975 "pluginVersion": "9.2.4", 3976 "targets": [ 3977 { 3978 "datasource": { 3979 "type": "prometheus", 3980 "uid": "$datasource" 3981 }, 3982 "editorMode": "code", 3983 "expr": "sum(irate(redis_commands_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} [$__rate_interval])) by (namespace,app_kubernetes_io_instance,pod,cmd)", 3984 "format": "time_series", 3985 "interval": "", 3986 "intervalFactor": 2, 3987 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{cmd}}", 3988 "metric": "redis_command_calls_total", 3989 "range": true, 3990 "refId": "A", 3991 "step": 240 3992 } 3993 ], 3994 "title": "Commands per second", 3995 "type": "timeseries" 3996 }, 3997 { 3998 "collapsed": false, 3999 "datasource": { 4000 "type": "prometheus", 4001 "uid": "$datasource" 4002 }, 4003 "gridPos": { 4004 "h": 1, 4005 "w": 24, 4006 "x": 0, 4007 "y": 54 4008 }, 4009 "id": 24, 4010 "panels": [], 4011 "targets": [ 4012 { 4013 "datasource": { 4014 "type": "prometheus", 4015 "uid": "$datasource" 4016 }, 4017 "refId": "A" 4018 } 4019 ], 4020 "title": "Performance", 4021 "type": "row" 4022 }, 4023 { 4024 "datasource": { 4025 "type": "prometheus", 4026 "uid": "$datasource" 4027 }, 4028 "description": "Average taken across instances", 4029 "fieldConfig": { 4030 "defaults": { 4031 "color": { 4032 "mode": "palette-classic" 4033 }, 4034 "custom": { 4035 "axisCenteredZero": false, 4036 "axisColorMode": "text", 4037 "axisLabel": "", 4038 "axisPlacement": "auto", 4039 "barAlignment": 0, 4040 "drawStyle": "line", 4041 "fillOpacity": 10, 4042 "gradientMode": "none", 4043 "hideFrom": { 4044 "legend": false, 4045 "tooltip": false, 4046 "viz": false 4047 }, 4048 "lineInterpolation": "linear", 4049 "lineWidth": 1, 4050 "pointSize": 5, 4051 "scaleDistribution": { 4052 "type": "linear" 4053 }, 4054 "showPoints": "never", 4055 "spanNulls": true, 4056 "stacking": { 4057 "group": "A", 4058 "mode": "none" 4059 }, 4060 "thresholdsStyle": { 4061 "mode": "off" 4062 } 4063 }, 4064 "links": [], 4065 "mappings": [], 4066 "thresholds": { 4067 "mode": "absolute", 4068 "steps": [ 4069 { 4070 "color": "green", 4071 "value": null 4072 }, 4073 { 4074 "color": "red", 4075 "value": 80 4076 } 4077 ] 4078 }, 4079 "unit": "s" 4080 }, 4081 "overrides": [] 4082 }, 4083 "gridPos": { 4084 "h": 7, 4085 "w": 12, 4086 "x": 0, 4087 "y": 55 4088 }, 4089 "id": 20, 4090 "links": [], 4091 "options": { 4092 "legend": { 4093 "calcs": [ 4094 "mean", 4095 "lastNotNull", 4096 "max" 4097 ], 4098 "displayMode": "table", 4099 "placement": "right", 4100 "showLegend": true 4101 }, 4102 "tooltip": { 4103 "mode": "multi", 4104 "sort": "desc" 4105 } 4106 }, 4107 "pluginVersion": "9.2.4", 4108 "targets": [ 4109 { 4110 "datasource": { 4111 "uid": "$datasource" 4112 }, 4113 "editorMode": "code", 4114 "expr": "avg(irate(redis_commands_duration_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace, app_kubernetes_io_instance, pod, cmd)\n /\navg(irate(redis_commands_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace, app_kubernetes_io_instance, pod, cmd)\n", 4115 "format": "time_series", 4116 "interval": "", 4117 "intervalFactor": 2, 4118 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{ cmd }}", 4119 "metric": "redis_command_calls_total", 4120 "range": true, 4121 "refId": "A", 4122 "step": 240 4123 } 4124 ], 4125 "title": "Command latency per second", 4126 "type": "timeseries" 4127 }, 4128 { 4129 "datasource": { 4130 "type": "prometheus", 4131 "uid": "$datasource" 4132 }, 4133 "description": "Hit rate shows the percentage of key space lookups that hit a key.", 4134 "fieldConfig": { 4135 "defaults": { 4136 "color": { 4137 "mode": "palette-classic" 4138 }, 4139 "custom": { 4140 "axisCenteredZero": false, 4141 "axisColorMode": "text", 4142 "axisLabel": "", 4143 "axisPlacement": "auto", 4144 "barAlignment": 0, 4145 "drawStyle": "line", 4146 "fillOpacity": 10, 4147 "gradientMode": "none", 4148 "hideFrom": { 4149 "legend": false, 4150 "tooltip": false, 4151 "viz": false 4152 }, 4153 "lineInterpolation": "linear", 4154 "lineWidth": 1, 4155 "pointSize": 5, 4156 "scaleDistribution": { 4157 "type": "linear" 4158 }, 4159 "showPoints": "never", 4160 "spanNulls": true, 4161 "stacking": { 4162 "group": "A", 4163 "mode": "none" 4164 }, 4165 "thresholdsStyle": { 4166 "mode": "off" 4167 } 4168 }, 4169 "links": [], 4170 "mappings": [], 4171 "min": 0, 4172 "thresholds": { 4173 "mode": "absolute", 4174 "steps": [ 4175 { 4176 "color": "green", 4177 "value": null 4178 }, 4179 { 4180 "color": "red", 4181 "value": 80 4182 } 4183 ] 4184 }, 4185 "unit": "percentunit" 4186 }, 4187 "overrides": [ 4188 { 4189 "matcher": { 4190 "id": "byName", 4191 "options": "Hit ratio" 4192 }, 4193 "properties": [ 4194 { 4195 "id": "color", 4196 "value": { 4197 "fixedColor": "blue", 4198 "mode": "fixed" 4199 } 4200 } 4201 ] 4202 }, 4203 { 4204 "matcher": { 4205 "id": "byRegexp", 4206 "options": "/Target/" 4207 }, 4208 "properties": [ 4209 { 4210 "id": "color", 4211 "value": { 4212 "fixedColor": "#56A64B", 4213 "mode": "fixed" 4214 } 4215 }, 4216 { 4217 "id": "custom.fillOpacity", 4218 "value": 0 4219 }, 4220 { 4221 "id": "custom.lineWidth", 4222 "value": 1 4223 }, 4224 { 4225 "id": "custom.lineStyle", 4226 "value": { 4227 "dash": [ 4228 10, 4229 10 4230 ], 4231 "fill": "dash" 4232 } 4233 } 4234 ] 4235 } 4236 ] 4237 }, 4238 "gridPos": { 4239 "h": 7, 4240 "w": 12, 4241 "x": 12, 4242 "y": 55 4243 }, 4244 "id": 1, 4245 "links": [], 4246 "options": { 4247 "legend": { 4248 "calcs": [], 4249 "displayMode": "list", 4250 "placement": "bottom", 4251 "showLegend": true 4252 }, 4253 "tooltip": { 4254 "mode": "multi", 4255 "sort": "none" 4256 } 4257 }, 4258 "pluginVersion": "9.2.4", 4259 "targets": [ 4260 { 4261 "datasource": { 4262 "uid": "$datasource" 4263 }, 4264 "editorMode": "code", 4265 "expr": "avg(irate(redis_keyspace_hits_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval]) / (irate(redis_keyspace_misses_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval]) + irate(redis_keyspace_hits_total{pod=~\"$instance\"}[$__rate_interval]))) by (namespace, app_kubernetes_io_instance, pod)", 4266 "format": "time_series", 4267 "hide": false, 4268 "interval": "", 4269 "intervalFactor": 2, 4270 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ", 4271 "metric": "", 4272 "range": true, 4273 "refId": "A", 4274 "step": 240, 4275 "target": "" 4276 } 4277 ], 4278 "title": "Hit ratio per instance", 4279 "type": "timeseries" 4280 }, 4281 { 4282 "datasource": { 4283 "type": "prometheus", 4284 "uid": "$datasource" 4285 }, 4286 "fieldConfig": { 4287 "defaults": { 4288 "color": { 4289 "mode": "palette-classic" 4290 }, 4291 "custom": { 4292 "axisCenteredZero": false, 4293 "axisColorMode": "text", 4294 "axisLabel": "", 4295 "axisPlacement": "auto", 4296 "barAlignment": 0, 4297 "drawStyle": "line", 4298 "fillOpacity": 10, 4299 "gradientMode": "none", 4300 "hideFrom": { 4301 "legend": false, 4302 "tooltip": false, 4303 "viz": false 4304 }, 4305 "lineInterpolation": "linear", 4306 "lineWidth": 1, 4307 "pointSize": 5, 4308 "scaleDistribution": { 4309 "type": "linear" 4310 }, 4311 "showPoints": "never", 4312 "spanNulls": true, 4313 "stacking": { 4314 "group": "A", 4315 "mode": "normal" 4316 }, 4317 "thresholdsStyle": { 4318 "mode": "off" 4319 } 4320 }, 4321 "links": [], 4322 "mappings": [], 4323 "thresholds": { 4324 "mode": "absolute", 4325 "steps": [ 4326 { 4327 "color": "green", 4328 "value": null 4329 }, 4330 { 4331 "color": "red", 4332 "value": 80 4333 } 4334 ] 4335 }, 4336 "unit": "s" 4337 }, 4338 "overrides": [] 4339 }, 4340 "gridPos": { 4341 "h": 7, 4342 "w": 12, 4343 "x": 0, 4344 "y": 62 4345 }, 4346 "id": 38, 4347 "links": [], 4348 "options": { 4349 "legend": { 4350 "calcs": [ 4351 "mean", 4352 "lastNotNull", 4353 "max" 4354 ], 4355 "displayMode": "table", 4356 "placement": "right", 4357 "showLegend": true 4358 }, 4359 "tooltip": { 4360 "mode": "multi", 4361 "sort": "desc" 4362 } 4363 }, 4364 "pluginVersion": "9.2.4", 4365 "targets": [ 4366 { 4367 "datasource": { 4368 "type": "prometheus", 4369 "uid": "$datasource" 4370 }, 4371 "editorMode": "code", 4372 "expr": "sum(irate(redis_commands_duration_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) by (namespace, app_kubernetes_io_instance, pod, cmd) != 0", 4373 "format": "time_series", 4374 "interval": "", 4375 "intervalFactor": 2, 4376 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{ cmd }}", 4377 "metric": "redis_command_calls_total", 4378 "range": true, 4379 "refId": "A", 4380 "step": 240 4381 } 4382 ], 4383 "title": "Total Time Spent by Command / sec", 4384 "type": "timeseries" 4385 }, 4386 { 4387 "collapsed": false, 4388 "gridPos": { 4389 "h": 1, 4390 "w": 24, 4391 "x": 0, 4392 "y": 69 4393 }, 4394 "id": 62, 4395 "panels": [], 4396 "title": "Replication", 4397 "type": "row" 4398 }, 4399 { 4400 "datasource": { 4401 "type": "prometheus", 4402 "uid": "$datasource" 4403 }, 4404 "description": "This metric will only be non-zero if the instance is a master", 4405 "fieldConfig": { 4406 "defaults": { 4407 "color": { 4408 "mode": "palette-classic" 4409 }, 4410 "custom": { 4411 "axisCenteredZero": false, 4412 "axisColorMode": "text", 4413 "axisLabel": "", 4414 "axisPlacement": "auto", 4415 "barAlignment": 0, 4416 "drawStyle": "line", 4417 "fillOpacity": 10, 4418 "gradientMode": "none", 4419 "hideFrom": { 4420 "legend": false, 4421 "tooltip": false, 4422 "viz": false 4423 }, 4424 "lineInterpolation": "linear", 4425 "lineWidth": 1, 4426 "pointSize": 5, 4427 "scaleDistribution": { 4428 "type": "linear" 4429 }, 4430 "showPoints": "never", 4431 "spanNulls": false, 4432 "stacking": { 4433 "group": "A", 4434 "mode": "none" 4435 }, 4436 "thresholdsStyle": { 4437 "mode": "off" 4438 } 4439 }, 4440 "links": [], 4441 "mappings": [], 4442 "thresholds": { 4443 "mode": "absolute", 4444 "steps": [ 4445 { 4446 "color": "green", 4447 "value": null 4448 }, 4449 { 4450 "color": "red", 4451 "value": 80 4452 } 4453 ] 4454 }, 4455 "unit": "short" 4456 }, 4457 "overrides": [] 4458 }, 4459 "gridPos": { 4460 "h": 7, 4461 "w": 8, 4462 "x": 0, 4463 "y": 70 4464 }, 4465 "id": 70, 4466 "options": { 4467 "legend": { 4468 "calcs": [], 4469 "displayMode": "list", 4470 "placement": "bottom", 4471 "showLegend": true 4472 }, 4473 "tooltip": { 4474 "mode": "multi", 4475 "sort": "none" 4476 } 4477 }, 4478 "pluginVersion": "9.2.4", 4479 "targets": [ 4480 { 4481 "datasource": { 4482 "uid": "$datasource" 4483 }, 4484 "editorMode": "code", 4485 "expr": "sum(redis_connected_slaves{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by (namespace, app_kubernetes_io_instance, pod)", 4486 "interval": "", 4487 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ", 4488 "range": true, 4489 "refId": "A" 4490 } 4491 ], 4492 "title": "Connected slaves by instance", 4493 "type": "timeseries" 4494 }, 4495 { 4496 "datasource": { 4497 "type": "prometheus", 4498 "uid": "$datasource" 4499 }, 4500 "description": "This metric will only be non-zero if the instance is a master", 4501 "fieldConfig": { 4502 "defaults": { 4503 "color": { 4504 "mode": "palette-classic" 4505 }, 4506 "custom": { 4507 "axisCenteredZero": false, 4508 "axisColorMode": "text", 4509 "axisLabel": "", 4510 "axisPlacement": "auto", 4511 "barAlignment": 0, 4512 "drawStyle": "line", 4513 "fillOpacity": 10, 4514 "gradientMode": "none", 4515 "hideFrom": { 4516 "legend": false, 4517 "tooltip": false, 4518 "viz": false 4519 }, 4520 "lineInterpolation": "linear", 4521 "lineWidth": 1, 4522 "pointSize": 5, 4523 "scaleDistribution": { 4524 "type": "linear" 4525 }, 4526 "showPoints": "never", 4527 "spanNulls": false, 4528 "stacking": { 4529 "group": "A", 4530 "mode": "none" 4531 }, 4532 "thresholdsStyle": { 4533 "mode": "off" 4534 } 4535 }, 4536 "links": [], 4537 "mappings": [], 4538 "thresholds": { 4539 "mode": "absolute", 4540 "steps": [ 4541 { 4542 "color": "green", 4543 "value": null 4544 }, 4545 { 4546 "color": "red", 4547 "value": 80 4548 } 4549 ] 4550 }, 4551 "unit": "short" 4552 }, 4553 "overrides": [] 4554 }, 4555 "gridPos": { 4556 "h": 7, 4557 "w": 8, 4558 "x": 8, 4559 "y": 70 4560 }, 4561 "id": 28, 4562 "options": { 4563 "legend": { 4564 "calcs": [], 4565 "displayMode": "list", 4566 "placement": "bottom", 4567 "showLegend": true 4568 }, 4569 "tooltip": { 4570 "mode": "multi", 4571 "sort": "none" 4572 } 4573 }, 4574 "pluginVersion": "9.2.4", 4575 "targets": [ 4576 { 4577 "datasource": { 4578 "uid": "$datasource" 4579 }, 4580 "editorMode": "code", 4581 "expr": "redis_slave_repl_offset{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 4582 "interval": "", 4583 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ", 4584 "range": true, 4585 "refId": "A" 4586 } 4587 ], 4588 "title": "Slave Repl Offset", 4589 "type": "timeseries" 4590 }, 4591 { 4592 "datasource": { 4593 "type": "prometheus", 4594 "uid": "$datasource" 4595 }, 4596 "description": "This metric is only exported if the instance is a slave.", 4597 "fieldConfig": { 4598 "defaults": { 4599 "color": { 4600 "mode": "palette-classic" 4601 }, 4602 "custom": { 4603 "axisCenteredZero": false, 4604 "axisColorMode": "text", 4605 "axisLabel": "", 4606 "axisPlacement": "auto", 4607 "barAlignment": 0, 4608 "drawStyle": "line", 4609 "fillOpacity": 10, 4610 "gradientMode": "none", 4611 "hideFrom": { 4612 "legend": false, 4613 "tooltip": false, 4614 "viz": false 4615 }, 4616 "lineInterpolation": "linear", 4617 "lineWidth": 1, 4618 "pointSize": 5, 4619 "scaleDistribution": { 4620 "type": "linear" 4621 }, 4622 "showPoints": "never", 4623 "spanNulls": false, 4624 "stacking": { 4625 "group": "A", 4626 "mode": "none" 4627 }, 4628 "thresholdsStyle": { 4629 "mode": "off" 4630 } 4631 }, 4632 "links": [], 4633 "mappings": [], 4634 "thresholds": { 4635 "mode": "absolute", 4636 "steps": [ 4637 { 4638 "color": "green", 4639 "value": null 4640 }, 4641 { 4642 "color": "red", 4643 "value": 80 4644 } 4645 ] 4646 }, 4647 "unit": "s" 4648 }, 4649 "overrides": [] 4650 }, 4651 "gridPos": { 4652 "h": 7, 4653 "w": 8, 4654 "x": 16, 4655 "y": 70 4656 }, 4657 "id": 30, 4658 "options": { 4659 "legend": { 4660 "calcs": [], 4661 "displayMode": "list", 4662 "placement": "bottom", 4663 "showLegend": true 4664 }, 4665 "tooltip": { 4666 "mode": "multi", 4667 "sort": "none" 4668 } 4669 }, 4670 "pluginVersion": "9.2.4", 4671 "targets": [ 4672 { 4673 "datasource": { 4674 "uid": "$datasource" 4675 }, 4676 "editorMode": "code", 4677 "exemplar": false, 4678 "expr": "redis_master_last_io_seconds_ago{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}", 4679 "interval": "", 4680 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ", 4681 "range": true, 4682 "refId": "A" 4683 } 4684 ], 4685 "title": "Time since last master connection", 4686 "type": "timeseries" 4687 } 4688 ], 4689 "refresh": false, 4690 "schemaVersion": 37, 4691 "style": "dark", 4692 "tags": [ 4693 "prometheus", 4694 "redis" 4695 ], 4696 "templating": { 4697 "list": [ 4698 { 4699 "current": { 4700 "selected": false, 4701 "text": "default", 4702 "value": "default" 4703 }, 4704 "hide": 0, 4705 "includeAll": false, 4706 "label": "data source", 4707 "multi": false, 4708 "name": "datasource", 4709 "options": [], 4710 "query": "prometheus", 4711 "queryValue": "", 4712 "refresh": 1, 4713 "regex": "", 4714 "skipUrlSync": false, 4715 "type": "datasource" 4716 }, 4717 { 4718 "allValue": ".+", 4719 "current": { 4720 "selected": false, 4721 "text": [ 4722 "All" 4723 ], 4724 "value": [ 4725 "$__all" 4726 ] 4727 }, 4728 "datasource": { 4729 "type": "prometheus", 4730 "uid": "$datasource" 4731 }, 4732 "definition": "label_values(redis_up{job=\"$job\"}, namespace)", 4733 "hide": 0, 4734 "includeAll": true, 4735 "label": "namespace", 4736 "multi": true, 4737 "name": "namespace", 4738 "options": [], 4739 "query": { 4740 "query": "label_values(redis_up{job=\"$job\"}, namespace)", 4741 "refId": "StandardVariableQuery" 4742 }, 4743 "refresh": 1, 4744 "regex": "", 4745 "skipUrlSync": false, 4746 "sort": 5, 4747 "type": "query" 4748 }, 4749 { 4750 "allValue": ".+", 4751 "current": { 4752 "selected": false, 4753 "text": [ 4754 "All" 4755 ], 4756 "value": [ 4757 "$__all" 4758 ] 4759 }, 4760 "datasource": { 4761 "type": "prometheus", 4762 "uid": "$datasource" 4763 }, 4764 "definition": "label_values(redis_up{job=\"$job\"}, app_kubernetes_io_instance)", 4765 "hide": 0, 4766 "includeAll": true, 4767 "label": "cluster", 4768 "multi": true, 4769 "name": "cluster", 4770 "options": [], 4771 "query": { 4772 "query": "label_values(redis_up{job=\"$job\"}, app_kubernetes_io_instance)", 4773 "refId": "StandardVariableQuery" 4774 }, 4775 "refresh": 1, 4776 "regex": "", 4777 "skipUrlSync": false, 4778 "sort": 5, 4779 "type": "query" 4780 }, 4781 { 4782 "allValue": ".+", 4783 "current": { 4784 "selected": false, 4785 "text": [ 4786 "All" 4787 ], 4788 "value": [ 4789 "$__all" 4790 ] 4791 }, 4792 "datasource": { 4793 "type": "prometheus", 4794 "uid": "$datasource" 4795 }, 4796 "definition": "label_values(redis_up{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)", 4797 "hide": 0, 4798 "includeAll": true, 4799 "label": "instance", 4800 "multi": true, 4801 "name": "instance", 4802 "options": [], 4803 "query": { 4804 "query": "label_values(redis_up{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)", 4805 "refId": "StandardVariableQuery" 4806 }, 4807 "refresh": 2, 4808 "regex": "", 4809 "skipUrlSync": false, 4810 "sort": 5, 4811 "type": "query" 4812 }, 4813 { 4814 "current": { 4815 "selected": false, 4816 "text": "kubeblocks-service", 4817 "value": "kubeblocks-service" 4818 }, 4819 "hide": 0, 4820 "includeAll": false, 4821 "label": "job", 4822 "multi": false, 4823 "name": "job", 4824 "options": [ 4825 { 4826 "selected": true, 4827 "text": "kubeblocks-service", 4828 "value": "kubeblocks-service" 4829 }, 4830 { 4831 "selected": false, 4832 "text": "agamotto", 4833 "value": "agamotto" 4834 } 4835 ], 4836 "query": "kubeblocks-service,agamotto", 4837 "queryValue": "", 4838 "skipUrlSync": false, 4839 "type": "custom" 4840 } 4841 ] 4842 }, 4843 "time": { 4844 "from": "now-30m", 4845 "to": "now" 4846 }, 4847 "timepicker": { 4848 "refresh_intervals": [ 4849 "10s", 4850 "30s", 4851 "1m", 4852 "5m", 4853 "15m", 4854 "30m", 4855 "1h", 4856 "2h", 4857 "1d" 4858 ], 4859 "time_options": [ 4860 "5m", 4861 "15m", 4862 "1h", 4863 "6h", 4864 "12h", 4865 "24h", 4866 "2d", 4867 "7d", 4868 "30d" 4869 ] 4870 }, 4871 "timezone": "browser", 4872 "title": "Redis", 4873 "uid": "redis", 4874 "version": 1, 4875 "weekStart": "" 4876 }