{
  "annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"}]},
  "author":"Ruohang Feng (rh@vonng.com)",
  "description":"Redis Cluster Dashboard",
  "editable":true,
  "fiscalYearStartMonth":0,
  "graphTooltip":0,
  "id":null,
  "license":"https://pigsty.io/docs/about/license/",
  "links":[{"asDropdown":false,"icon":"external link","includeVars":true,"keepTime":true,"tags":["REDIS"],"title":"Redis","type":"dashboards"},{"asDropdown":true,"icon":"external link","includeVars":true,"keepTime":true,"tags":["REDIS"],"title":"Redis","type":"dashboards"}],
  "panels":[
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":0},"id":149,"panels":[],"title":"Overview","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"mappings":[],"max":2.5,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"displayName","value":"${cls}"},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Cluster"}},"type":"value"}]},{"id":"links","value":[{"title":"Redis Cluster : ${cls}","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}"}]}]}]
      },
      "gridPos":{"h":3,"w":8,"x":0,"y":1},
      "id":164,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":20,"valueSize":16},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"1","hide":false,"instant":true,"interval":"","legendFormat":"Cluster","queryType":"measurements","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"mappings":[],"max":2.5,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0}]}},
        "overrides":[
          { "matcher":{"id":"byRegexp","options":"/Mem|Spec|Disk|Data/"},"properties":[{"id":"unit","value":"bytes"},{"id":"decimals","value":1}]                                         },{ "matcher":{"id":"byName","options":"Cluster"}               ,"properties":[{"id":"links","value":[{"title":"Redis Cluster","url":"/d/redis-cluster?${__url_time_range}"}]}]   },
          { "matcher":{"id":"byName","options":"Instance"}              ,"properties":[{"id":"links","value":[{"title":"Redis Instance","url":"/d/redis-instance?${__url_time_range}"}]}] },{ "matcher":{"id":"byName","options":"Node"}                  ,"properties":[{"id":"links","value":[]}]                                                                         },
          { "matcher":{"id":"byName","options":"DB"}                    ,"properties":[{"id":"links","value":[]}]                                                                         }
        ]
      },
      "gridPos":{"h":3,"w":16,"x":8,"y":1},
      "id":118,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"center","orientation":"vertical","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":16,"valueSize":14},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"count(count by (cls) (redis_up{cls=\"$cls\"}))"                                                                                    ,"hide":true ,"instant":true,"interval":"","legendFormat":"Cluster" ,"queryType":"measurements","refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"count(count by (ip) (label_replace(redis_up{cls=\"$cls\"}, \"ip\", \"$1\", \"instance\", \"(.*)\\\\:\\\\d+\")))"                   ,"hide":false,"instant":true,"interval":"","legendFormat":"Node"    ,"queryType":"measurements","refId":"L" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"count(redis_up{cls=\"$cls\"})"                                                                                                     ,"hide":false,"instant":true,"interval":"","legendFormat":"Instance","queryType":"measurements","refId":"I" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"count(redis_instance_info{cls=\"$cls\", role=\"master\"})"                                                                         ,"hide":false,"instant":true,"interval":"","legendFormat":"Primary" ,"queryType":"measurements","refId":"G" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"count(redis_instance_info{cls=\"$cls\", role=\"slave\"})"                                                                          ,"hide":false,"instant":true,"interval":"","legendFormat":"Replica" ,"queryType":"measurements","refId":"H" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"count((count by (db) (redis_db_keys{cls=\"$cls\"})))"                                                                              ,"hide":false,"instant":true,"interval":"","legendFormat":"DB"      ,"queryType":"measurements","refId":"C" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"sum(max by (ip) (label_replace(redis_total_system_memory_bytes{cls=\"$cls\"}, \"ip\", \"$1\", \"instance\", \"(.*)\\\\:\\\\d+\")))","hide":false,"instant":true,"interval":"","legendFormat":"Mem"     ,"queryType":"measurements","refId":"J" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum(redis_memory_max_bytes{cls=\"$cls\"})"                                                                                         ,"hide":false,"instant":true,"interval":"","legendFormat":"Spec"    ,"queryType":"measurements","refId":"F" }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0}]},"unit":"string"},
        "overrides":[
          { "matcher":{"id":"byName","options":"Role"},"properties":[{"id":"mappings","value":[{"options":{"master":{"color":"#f79f64","index":0,"text":"Primary"},"slave":{"color":"#346f36cc","index":1,"text":"Replica"}},"type":"value"}]}]                                                                 },
          { "matcher":{"id":"byName","options":"Mode"},"properties":[{"id":"mappings","value":[{"options":{"cluster":{"color":"#3e668f","index":2,"text":"Cluster"},"sentinel":{"color":"#f79f64","index":0,"text":"Sentinel"},"standalone":{"color":"#346f36cc","index":1,"text":"Normal"}},"type":"value"}]}] }
        ]
      },
      "gridPos":{"h":3,"w":8,"x":0,"y":4},
      "id":165,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"/.*/","values":false},"showPercentChange":false,"text":{"titleSize":12},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (redis_mode,maxmemory_policy,redis_version) (redis_instance_info{cls=\"$cls\"})","format":"table","instant":true,"interval":"","legendFormat":"","range":false,"refId":"A"}],
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{"Time":true,"Value":true,"Value #A":true,"__name__":true,"cls":true,"cluster_name":true,"extensions":true,"ins":true,"instance":true,"ip":true,"job":true,"os":true,"primary_conninfo":true,"redis_build_id":true,"run_id":true,"ver_num":true,"version":false},
            "indexByName":{"Time":4,"Value":10,"__name__":5,"cls":3,"ins":6,"instance":7,"ip":9,"job":8,"maxmemory_policy":2,"os":14,"process_id":11,"redis_build_id":15,"redis_mode":1,"redis_version":12,"role":0,"run_id":16,"tcp_port":13},
            "renameByName":{
              "Time":"",
              "cls":"",
              "cluster_id":"ClusterID",
              "cluster_name":"CLS",
              "conf_path":"Config",
              "data_dir":"Data",
              "extensions":"Library",
              "hba_path":"HBA",
              "listen_port":"Port",
              "maxmemory_policy":"Policy",
              "os":"OS",
              "primary_conninfo":"Primary",
              "process_id":"PID",
              "redis_build_id":"Build ID",
              "redis_mode":"Mode",
              "redis_version":"Version",
              "role":"Role",
              "run_id":"Run ID",
              "tcp_port":"Port",
              "ver_num":"Ver Num",
              "version":"Version",
              "wal_level":"WAL"
            }
          }
        }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{"mappings":[{"options":{"match":"null+nan","result":{"index":0,"text":"Nil Cluster"}},"type":"special"}],"thresholds":{"mode":"absolute","steps":[{"color":"#cc4637d9","value":0}]}},
        "overrides":[
          { "matcher":{"id":"byRegexp","options":"/Slot Assigned|OK/"},"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"red","value":0},{"color":"#346f36cc","value":16384}]}}]                                           },
          { "matcher":{"id":"byName","options":"Slot Fail"}           ,"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"#cc4637d9","value":1}]}}]                                         },
          { "matcher":{"id":"byName","options":"Status"}              ,"properties":[{"id":"mappings","value":[{"options":{"0":{"color":"#cc4637d9","index":0,"text":"FAIL"},"1":{"color":"#346f36cc","index":1,"text":"OK"}},"type":"value"}]}]        },
          { "matcher":{"id":"byName","options":"Cluster"}             ,"properties":[{"id":"mappings","value":[{"options":{"0":{"color":"#3e668f","index":0,"text":"Disabled"},"1":{"color":"#346f36cc","index":1,"text":"Enabled"}},"type":"value"}]}] },
          { "matcher":{"id":"byName","options":"Shards"}              ,"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#cc4637d9","value":0},{"color":"#f79f64","value":1},{"color":"#346f36cc","value":3}]}}]           },
          { "matcher":{"id":"byName","options":"Instances"}           ,"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#cc4637d9","value":0},{"color":"#346f36cc","value":6}]}}]                                         },
          { "matcher":{"id":"byRegexp","options":"/Epoch.*/"}         ,"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}}]                                                                         }
        ]
      },
      "gridPos":{"h":3,"w":16,"x":8,"y":4},
      "id":161,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"vertical","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[
        {"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"max(redis_cluster_enabled{cls=\"$cls\"})","hide":false,"interval":"","legendFormat":"Cluster","refId":"S"},{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"expr":"max(redis_cluster_state{cls=\"$cls\"})","interval":"","legendFormat":"Status","refId":"A"},
        {"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","expr":"avg(redis_cluster_size{cls=\"$cls\"})","interval":"","legendFormat":"Shards","range":true,"refId":"D"},
        {"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min(redis_cluster_known_nodes{cls=\"$cls\"})","interval":"","legendFormat":"Instances","range":true,"refId":"E"},{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"expr":"max(redis_cluster_current_epoch{cls=\"$cls\"})","interval":"","legendFormat":"Epoch","refId":"B"},
        {"datasource":{"type":"prometheus","uid":"ds-prometheus"},"expr":"min(redis_cluster_my_epoch{cls=\"$cls\"})","interval":"","legendFormat":"Epoch Min","refId":"C"},{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"max(redis_cluster_slots_assigned{cls=\"$cls\"})","interval":"","legendFormat":"Slot Assigned","refId":"F"},
        {"datasource":{"type":"prometheus","uid":"ds-prometheus"},"expr":"max(redis_cluster_slots_ok{cls=\"$cls\"})","interval":"","legendFormat":"Slot OK","refId":"G"},{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"expr":"max(redis_cluster_slots_fail{cls=\"$cls\"})","interval":"","legendFormat":"Slot Fail","refId":"H"}
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"Leadership shows who is in charge of this redis cluster ${cls}.",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"hidden",
            "axisSoftMin":0,
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":57,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"stepBefore",
            "lineWidth":0,
            "pointSize":6,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "links":[{"title":"Redis Instance : ${__field.labels.ins}","url":"/d/redis-instance?var-id=${__field.labels.ins}&${__url_time_range}"}],
          "mappings":[],
          "max":1,
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
          "unit":"none"
        },
        "overrides":[{"matcher":{"id":"byType","options":"time"},"properties":[{"id":"custom.axisPlacement","value":"auto"}]}]
      },
      "gridPos":{"h":4,"w":8,"x":0,"y":7},
      "id":167,
      "options":{"legend":{"calcs":[],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"multi","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis_instance_info{cls=\"$cls\", role='master'} > 0","interval":"","legendFormat":"{{ ins }}","range":true,"refId":"A"}],
      "title":"Leadership",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"max":1.2,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#e3e3e3e0","value":0}]}},
        "overrides":[
          {"matcher":{"id":"byName","options":"Instance"},"properties":[{"id":"links","value":[{"title":"Redis Instance ${__data.fields.Instance}","url":"/d/redis-instance?var-id=${__data.fields.Instance}&${__url_time_range}"}]},{"id":"custom.minWidth","value":180}]},
          {"matcher":{"id":"byName","options":"Address"},"properties":[{"id":"custom.width","value":160},{"id":"links","value":[{"title":"Redis Instance : ${__data.fields.Address} (${__data.fields.Instance})","url":"/d/redis-instance?var-id=${__data.fields.Address}&${__url_time_range}"}]}]},
          {
            "matcher":{"id":"byName","options":"Mode"},
            "properties":[
              { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                                                                                                       },
              { "id":"mappings"          ,"value":[{"options":{"cluster":{"color":"#3e668f","index":1,"text":"Cluster"},"sentinel":{"color":"#f79f64","index":2,"text":"Sentinel"},"standalone":{"color":"#346f36cc","index":0,"text":"Normal"}},"type":"value"},{"options":{"match":"null","result":{"color":"transparent","index":3}},"type":"special"}] },
              { "id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}                                                                                                                                                                                                                                                            },
              { "id":"links"             ,"value":[]                                                                                                                                                                                                                                                                                                       }
            ]
          },{
            "matcher":{"id":"byName","options":"CPU"},
            "properties":[
              { "id":"custom.cellOptions","value":{"mode":"lcd","type":"gauge"}                                                                                                                                                                                                                        },
              { "id":"color"             ,"value":{"mode":"thresholds"}                                                                                                                                                                                                                                },
              { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                        },
              { "id":"custom.width"      ,"value":150                                                                                                                                                                                                                                                  },
              { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#fcdb72","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":1}]} },
              { "id":"decimals"          ,"value":1                                                                                                                                                                                                                                                    }
            ]
          },{
            "matcher":{"id":"byName","options":"MEM"},
            "properties":[
              { "id":"custom.width"      ,"value":120                                                                                                                                                                                                                                                  },
              { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                        },
              { "id":"custom.cellOptions","value":{"mode":"lcd","type":"gauge"}                                                                                                                                                                                                                        },
              { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#f79f64","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":1}]} },
              { "id":"decimals"          ,"value":1                                                                                                                                                                                                                                                    }
            ]
          },{
            "matcher":{"id":"byName","options":"Role"},
            "properties":[
              { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                                                                                                                                     },
              { "id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}                                                                                                                                                                                                                                                                                          },
              { "id":"mappings"          ,"value":[{"options":{"master":{"color":"#3e668f","index":0,"text":"primary"},"slave":{"color":"#346f36cc","index":1,"text":"replica"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"transparent","index":2}},"type":"special"},{"options":{"match":"empty","result":{"color":"transparent","index":3}},"type":"special"}] }
            ]
          },
          {"matcher":{"id":"byName","options":"Version"},"properties":[{"id":"custom.width","value":70}]},
          {
            "matcher":{"id":"byName","options":"QPS"},
            "properties":[{"id":"custom.width","value":60},{"id":"custom.cellOptions","value":{"type":"color-text"}},{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":10},{"color":"#EAB839","value":30000},{"color":"red","value":100000},{"color":"#b783af","value":200000},{"color":"text","value":400000}]}},{"id":"unit","value":"locale"},{"id":"decimals"}]
          },
          {"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"custom.width","value":110},{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-ip=${__data.fields.IP}&${__url_time_range}"}]}]},
          {
            "matcher":{"id":"byName","options":"Spec"},
            "properties":[
              { "id":"unit"              ,"value":"bytes"                                                                                                                                                                            },
              { "id":"custom.width"      ,"value":80                                                                                                                                                                                 },
              { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#929592","value":0},{"color":"#3e668f","value":1024000000},{"color":"#346f36cc","value":4096000000},{"color":"#f79f64","value":8192000000}]} },
              { "id":"custom.cellOptions","value":{"type":"color-background"}                                                                                                                                                        },
              { "id":"mappings"          ,"value":[{"options":{"match":"null+nan","result":{"color":"transparent","index":0,"text":"N/A"}},"type":"special"}]                                                                        }
            ]
          },
          {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"custom.minWidth","value":150},{"id":"links","value":[{"title":"Redis Cluster : ${__data.fields.Cluster}","url":"/d/redis-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Alive"},"properties":[{"id":"mappings","value":[{"options":{"0":{"color":"#cc4637d9","index":0,"text":"Down"},"1":{"color":"#346f36cc","index":1,"text":"Up"}},"type":"value"}]},{"id":"custom.cellOptions","value":{"type":"color-background"}},{"id":"custom.width","value":60}]}
        ]
      },
      "gridPos":{"h":10,"w":16,"x":8,"y":7},
      "id":166,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[{"desc":false,"displayName":"Instance"}]},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis_up{cls=\"$cls\"}"              ,"format":"table",             "instant":true,"interval":"","legendFormat":"","refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis:ins:cpu_usage{cls=\"$cls\"}"   ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis:ins:mem_usage{cls=\"$cls\"}"   ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"C" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis:ins:qps{cls=\"$cls\"}"         ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"D" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis_memory_max_bytes{cls=\"$cls\"}","format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"E" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis_instance_info{cls=\"$cls\"}"   ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"F" }
      ],
      "transformations":[
        {"id":"seriesToColumns","options":{"byField":"ins"}},
        {
          "id":"organize",
          "options":{
            "excludeByName":{
              "Time":true,
              "Time 1":true,
              "Time 2":true,
              "Time 3":true,
              "Time 4":true,
              "Time 5":true,
              "Time 6":true,
              "Value #A":false,
              "Value #B":false,
              "Value #F":true,
              "__name__":true,
              "__name__ 1":true,
              "__name__ 2":true,
              "__name__ 3":true,
              "__name__ 4":true,
              "__name__ 5":true,
              "__name__ 6":true,
              "cls":false,
              "cls 1":false,
              "cls 2":true,
              "cls 3":true,
              "cls 4":true,
              "cls 5":true,
              "cls 6":true,
              "ins":false,
              "instance":false,
              "instance 1":false,
              "instance 2":true,
              "instance 3":true,
              "instance 4":true,
              "instance 5":true,
              "instance 6":true,
              "ip 1":false,
              "ip 2":true,
              "ip 3":true,
              "ip 4":true,
              "ip 5":true,
              "ip 6":true,
              "job":true,
              "job 1":true,
              "job 2":true,
              "job 3":true,
              "job 4":true,
              "job 5":true,
              "job 6":true,
              "maxmemory_policy":true,
              "os":true,
              "process_id":true,
              "redis_build_id":true,
              "redis_mode":false,
              "run_id":true,
              "tcp_port":true
            },
            "indexByName":{
              "Time 1":20,
              "Time 2":23,
              "Time 3":27,
              "Time 4":31,
              "Time 5":39,
              "Time 6":45,
              "Value #A":0,
              "Value #B":7,
              "Value #C":8,
              "Value #D":10,
              "Value #E":9,
              "Value #F":51,
              "__name__ 1":21,
              "__name__ 2":24,
              "__name__ 3":28,
              "__name__ 4":32,
              "__name__ 5":40,
              "__name__ 6":46,
              "cls 1":3,
              "cls 2":12,
              "cls 3":19,
              "cls 4":33,
              "cls 5":41,
              "cls 6":47,
              "ins":4,
              "instance 1":5,
              "instance 2":25,
              "instance 3":29,
              "instance 4":34,
              "instance 5":42,
              "instance 6":48,
              "ip 1":6,
              "ip 2":36,
              "ip 3":37,
              "ip 4":38,
              "ip 5":43,
              "ip 6":49,
              "job 1":22,
              "job 2":26,
              "job 3":30,
              "job 4":35,
              "job 5":44,
              "job 6":50,
              "maxmemory_policy":13,
              "os":14,
              "process_id":15,
              "redis_build_id":16,
              "redis_mode":1,
              "redis_version":11,
              "role":2,
              "run_id":17,
              "tcp_port":18
            },
            "renameByName":{"Value #A":"Alive","Value #B":"CPU","Value #C":"MEM","Value #D":"QPS","Value #E":"Spec","cls 1":"Cluster","ins":"Instance","instance":"","instance 1":"Address","instance 3":"","ip":"IP","ip 1":"IP","job 1":"","redis_mode":"Mode","redis_version":"Version","role":"Role"}
          }
        }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"max":1.2,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#e3e3e3e0","value":0}]}},
        "overrides":[
          {
            "matcher":{"id":"byName","options":"Mem Usage"},
            "properties":[
              { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                        },
              { "id":"custom.cellOptions","value":{"mode":"lcd","type":"gauge"}                                                                                                                                                                                                                        },
              { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#f79f64","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":1}]} },
              { "id":"custom.minWidth"   ,"value":160                                                                                                                                                                                                                                                  }
            ]
          },
          {"matcher":{"id":"byName","options":"Memory"},"properties":[{"id":"unit","value":"bytes"},{"id":"custom.width","value":80},{"id":"decimals","value":1}]},{"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"custom.minWidth","value":120},{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Size"},"properties":[{"id":"custom.width","value":60}]}
        ]
      },
      "gridPos":{"h":6,"w":8,"x":0,"y":11},
      "id":152,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis:node:ip{cls=\"$cls\"}"                                           ,"format":"table",             "instant":true,"interval":"","legendFormat":"","range":false,"refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"redis:node:mem_total{cls=\"$cls\"}"                                    ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","range":false,"refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"redis:node:mem_used{cls=\"$cls\"} / redis:node:mem_alloc{cls=\"$cls\"}","format":"table","hide":false,"instant":true,"interval":"","legendFormat":"",              "refId":"C" }
      ],
      "transformations":[
        {"id":"seriesToColumns","options":{"byField":"ip"}},
        {
          "id":"organize",
          "options":{
            "excludeByName":{
              "Time":true,
              "Time 1":true,
              "Time 2":true,
              "Time 3":true,
              "Value":true,
              "Value #A":true,
              "Value #B":false,
              "__name__":true,
              "__name__ 1":true,
              "__name__ 2":true,
              "__name__ 3":true,
              "cls":true,
              "cls 1":true,
              "cls 2":true,
              "cls 3":true,
              "cls 4":true,
              "ins":true,
              "instance":true,
              "instance 1":false,
              "instance 2":true,
              "instance 3":true,
              "instance 4":true,
              "job":true,
              "job 1":true,
              "job 2":true,
              "job 3":true,
              "job 4":true,
              "maxmemory_policy":true,
              "os":true,
              "process_id":true,
              "redis_build_id":true,
              "redis_mode":true,
              "run_id":true,
              "tcp_port":true
            },
            "indexByName":{"Time 1":3,"Time 2":4,"Value #A":1,"Value #B":2,"ip":0},
            "renameByName":{"Value #A":"Size","Value #B":"Memory","Value #C":"Mem Usage","Value #D":"QPS","cls 1":"Cluster","ins":"Instance","instance":"","instance 1":"Address","instance 3":"","ip":"IP","job 1":"","redis_mode":"Mode","redis_version":"Version","role":"Role"}
          }
        }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Redis Cluster : CPU","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=43"}],
          "mappings":[],
          "max":1.1,
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#EAB839","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":1}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":0,"y":17},
      "id":133,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"redis:cls:cpu_usage{cls=\"$cls\"}","hide":false,"interval":"","legendFormat":"CPU","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Redis Cluster : Memory Usage","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=7"}],
          "mappings":[],
          "max":1.1,
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#EAB839","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":0.99}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":2,"y":17},
      "id":135,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"redis:cls:mem_usage{cls=\"$cls\"} ","hide":false,"interval":"","legendFormat":"Memory","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Redis Cluster : QPS","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=96"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":32}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":4,"y":17},
      "id":139,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"redis:cls:qps{cls=\"$cls\"}","interval":"","legendFormat":"QPS","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "links":[{"title":"Redis Cluster : RT","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=97"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":1e-06},{"color":"#fcdb72","value":4e-06},{"color":"#f79f64","value":1.6e-05},{"color":"red","value":6.4e-05},{"color":"#b783af","value":0.000256},{"color":"text","value":0.001}]},
          "unit":"s"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":6,"y":17},
      "id":137,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"redis:cls:rt{cls=\"$cls\"}","interval":"","legendFormat":"RT","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "links":[{"title":"Redis Instance ${__field.labels.ins}","url":"/d/redis-instance?var-id=${__field.labels.ins}&${__url_time_range}"}],
          "mappings":[],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]},
          "unit":"short"
        },
        "overrides":[]
      },
      "gridPos":{"h":6,"w":16,"x":8,"y":17},
      "id":94,
      "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"multi","sort":"desc"}},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"sum(rate(redis_commands_processed_total{cls=\"$cls\"}[1m])) by (ins)","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"A","refId":"A","step":240,"target":""}],
      "title":"Instance QPS",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":0,
          "links":[{"title":"Redis Cluster : Clients","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=50"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":4},{"color":"#EAB839","value":400},{"color":"#f79f64","value":1000},{"color":"red","value":2000},{"color":"#b783af","value":3000},{"color":"text","value":4000}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":0,"y":20},
      "id":168,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum(redis_connected_clients{cls=\"$cls\"})","interval":"","legendFormat":"Clients","range":true,"refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"Number of Keys in this cluster",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":0,
          "links":[{"title":"Redis Cluster : Keys","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=5"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":4},{"color":"#f79f64","value":100000000},{"color":"red","value":1000000000}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":2,"y":20},
      "id":169,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max(sum by (ins) (redis_db_keys{cls=\"$cls\"}))","interval":"","legendFormat":"Keys","range":true,"refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "links":[{"title":"Redis Cluster : New Connction Rate","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=51"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#f79f64","value":16},{"color":"#cc4637d9","value":64}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":4,"y":20},
      "id":170,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum(rate(redis_connections_received_total{cls=\"$cls\"}[1m]))","interval":"","legendFormat":"Conn Rate","range":true,"refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"links":[{"title":"Redis Cluster : Error Rate","url":"/d/redis-cluster?var-cls=${cls}&${__url_time_range}&viewPanel=173"}],"mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#cc4637d9","value":0.1}]},"unit":"none"},
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":6,"y":20},
      "id":172,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum(rate(redis_errors_total{cls=\"$cls\"}[1m]))","interval":"","legendFormat":"Error Rate","range":true,"refId":"A"}],
      "type":"stat"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":23},"id":174,"panels":[],"title":"Alert & Error","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"decimals":0,"links":[],"mappings":[],"max":1,"min":0,"noValue":"OK","thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#fcdb72","value":1},{"color":"#f79f64","value":4},{"color":"#b783af","value":8},{"color":"text","value":16}]},"unit":"none"},
        "overrides":[{"matcher":{"id":"byFrameRefID","options":"A"},"properties":[{"id":"links","value":[{"targetBlank":true,"title":"Pigsty Alertmanager","url":"/alertmgr/"}]}]},{"matcher":{"id":"byFrameRefID","options":"B"},"properties":[{"id":"links","value":[{"title":"PGSQL Alert","url":"/d/pgsql-alert?${__url_time_range}"}]}]}]
      },
      "gridPos":{"h":6,"w":4,"x":0,"y":24},
      "id":162,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count(ALERTS{alertstate=\"firing\", cls=\"$cls\"}) or on() vector(0)",            "interval":"","legendFormat":"Firing Alert" ,"range":true,"refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count(ALERTS{alertstate=\"pending\", cls=\"$cls\"})"                 ,"hide":true,"interval":"","legendFormat":"Pending Alert","range":true,"refId":"B" }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":0,
          "links":[{"targetBlank":true,"title":"AlertInfo ${__field.labels.alertname}","url":"/alertmgr/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D"}],
          "mappings":[],
          "max":1,
          "min":0,
          "noValue":"OK",
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#fcdb72","value":1},{"color":"#f79f64","value":2},{"color":"#b783af","value":4}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":6,"w":4,"x":4,"y":24},
      "id":163,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":12},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count(ALERTS{alertstate=\"firing\", cls=\"$cls\"}) by (alertname, severity)","interval":"","legendFormat":"{{ alertname }}","range":true,"refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"Alerting event graph. Each stripe represent an alerting Event. Gray transparent stipe are pending alerts.",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"hidden",
            "axisSoftMax":1.2,
            "axisSoftMin":0,
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":98,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"stepBefore",
            "lineWidth":0,
            "pointSize":1,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "links":[
            { "targetBlank":true,"title":"AlertInfo ${__field.labels.alertname} on Cluster ${cls}","url":"/alertmgr/#/alerts?filter=%7Bcls%3D%22${cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D"       },
            { "targetBlank":true,"title":"Silence ${__field.labels.alertname} on Cluster ${cls}"  ,"url":"/alertmgr/#/silences/new?filter=%7Bcls%3D%22${cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" },
            {                    "title":"Redis Instance for ${__field.labels.ins}"               ,"url":"/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}"                                         }
          ],
          "mappings":[],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
          "unit":"none"
        },
        "overrides":[
          { "matcher":{"id":"byFrameRefID","options":"A"},"properties":[{"id":"custom.fillOpacity","value":66},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Firing\ud83d\udd25"}},"type":"value"}]}]                                                                                        },
          { "matcher":{"id":"byFrameRefID","options":"B"},"properties":[{"id":"custom.fillOpacity","value":25},{"id":"color","value":{"fixedColor":"rgba(128, 128, 128, 0.5)","mode":"fixed"}},{"id":"mappings","value":[{"options":{"1":{"color":"gray","index":0,"text":"Pend\u23f0"}},"type":"value"}]}] },
          { "matcher":{"id":"byType","options":"time"}   ,"properties":[{"id":"custom.axisPlacement","value":"auto"}]                                                                                                                                                                                       }
        ]
      },
      "gridPos":{"h":6,"w":16,"x":8,"y":24},
      "id":141,
      "options":{"legend":{"calcs":["last"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"multi","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"ALERTS{cls=\"$cls\", alertstate=\"firing\"}"  ,             "interval":"","legendFormat":"[{{ severity }}\ud83d\udd25] {{alertname}} @ {{ ins }}","refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"ALERTS{cls=\"$cls\", alertstate=\"pending\"} ","hide":false,"interval":"","legendFormat":"[{{ severity }}\u23f0] {{alertname}} @ {{ ins }}"      ,"refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"0"                                            ,"hide":false,"interval":"","legendFormat":"Alert"                                                 ,"refId":"C" }
      ],
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"Redis Errors",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"hidden",
            "axisSoftMax":1.2,
            "axisSoftMin":0,
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":98,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"stepBefore",
            "lineWidth":0,
            "pointSize":1,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "links":[
            { "targetBlank":true,"title":"AlertInfo ${__field.labels.alertname} on Cluster ${cls}","url":"/alertmgr/#/alerts?filter=%7Bcls%3D%22${cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D"       },
            { "targetBlank":true,"title":"Silence ${__field.labels.alertname} on Cluster ${cls}"  ,"url":"/alertmgr/#/silences/new?filter=%7Bcls%3D%22${cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" },
            {                    "title":"Redis Instance for ${__field.labels.ins}"               ,"url":"/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}"                                         }
          ],
          "mappings":[],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
          "unit":"none"
        },
        "overrides":[
          { "matcher":{"id":"byFrameRefID","options":"A"},"properties":[{"id":"custom.fillOpacity","value":66},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Firing\ud83d\udd25"}},"type":"value"}]}]                                                                                        },
          { "matcher":{"id":"byFrameRefID","options":"B"},"properties":[{"id":"custom.fillOpacity","value":25},{"id":"color","value":{"fixedColor":"rgba(128, 128, 128, 0.5)","mode":"fixed"}},{"id":"mappings","value":[{"options":{"1":{"color":"gray","index":0,"text":"Pend\u23f0"}},"type":"value"}]}] },
          { "matcher":{"id":"byType","options":"time"}   ,"properties":[{"id":"custom.axisPlacement","value":"auto"}]                                                                                                                                                                                       }
        ]
      },
      "gridPos":{"h":5,"w":24,"x":0,"y":30},
      "id":173,
      "options":{"legend":{"calcs":["last"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"multi","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"rate(redis_errors_total{cls=\"$cls\"}[1m])",             "interval":"","legendFormat":"{{ err }} @ {{ ins }}","range":true,"refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"0"                                         ,"hide":false,"interval":"","legendFormat":"Error"                ,"range":true,"refId":"C" }
      ],
      "title":"Errors",
      "type":"timeseries"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":35},
      "id":151,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"",
          "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[],"mappings":[],"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f"}]},"unit":"qps"},"overrides":[]},
          "gridPos":{"h":18,"w":5,"x":0,"y":142},
          "id":144,
          "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","reduceOptions":{"calcs":["last"],"fields":"","values":false},"text":{},"textMode":"auto"},
          "pluginVersion":"10.1.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"redis:node:qps{cls=\"$cls\"}","hide":false,"interval":"","legendFormat":"{{ ip }}","refId":"A"}],
          "title":"Node QPS",
          "type":"stat"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"thresholds"},
              "decimals":0,
              "links":[{"title":"Redis Instance: ${__field.labels.ins}","url":"/d/redis-instance?var-id=${__field.labels.ins}&${__url_time_range}"}],
              "mappings":[],
              "max":1,
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f"},{"color":"#346f36cc","value":0.1},{"color":"#fcdb72","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":0.99}]},
              "unit":"percentunit"
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":19,"x":5,"y":142},
          "id":159,
          "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"text":{},"textMode":"auto"},
          "pluginVersion":"10.1.1",
          "targets":[{"exemplar":false,"expr":"redis:ins:cpu_usage{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"CPU Usage",
          "type":"stat"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"",
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"thresholds"},
              "decimals":0,
              "links":[{"title":"Redis Instance : ${__field.labels.ins}","url":"/d/redis-instance?var-id=${__field.labels.ins}&${__url_time_range}"}],
              "mappings":[],
              "max":1,
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f"},{"color":"#346f36cc","value":0.5},{"color":"#fcdb72","value":0.6},{"color":"#f79f64","value":0.7},{"color":"red","value":0.8},{"color":"#b783af","value":0.9}]},
              "unit":"percentunit"
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":19,"x":5,"y":151},
          "id":91,
          "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"text":{},"textMode":"auto"},
          "pluginVersion":"10.1.1",
          "targets":[{"expr":"redis:ins:mem_usage{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"MEM Usage",
          "type":"stat"
        }
      ],
      "title":"Resource",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":36},
      "id":25,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":3,
              "links":[],
              "mappings":[],
              "max":1,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"percentunit"
            },
            "overrides":[{"matcher":{"id":"byName","options":"max"},"properties":[{"id":"color","value":{"fixedColor":"#BF1B00","mode":"fixed"}}]}]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":161},
          "id":43,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"exemplar":false,"expr":"redis:ins:cpu_usage{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"CPU Usage",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":10,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"stepAfter",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"normal"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":4,
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"percentunit"
            },
            "overrides":[{"matcher":{"id":"byName","options":"max"},"properties":[{"id":"color","value":{"fixedColor":"#BF1B00","mode":"fixed"}}]}]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":161},
          "id":53,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"exemplar":false,"expr":"redis:ins:cpu_usage_child{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"CPU Usage (Child)",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":10,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"Bps"
            },
            "overrides":[{"matcher":{"id":"byName","options":"In"},"properties":[{"id":"color","value":{"fixedColor":"#cc4637d9","mode":"fixed"}}]},{"matcher":{"id":"byName","options":"Out"},"properties":[{"id":"color","value":{"fixedColor":"#3e668f","mode":"fixed"}}]},{"matcher":{"id":"byName","options":"Zero"},"properties":[{"id":"color","value":{"fixedColor":"#cc4637d9","mode":"fixed"}}]}]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":168},
          "id":10,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","expr":"redis:ins:tx{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"\u25b2{{ ins }}","refId":"B","range":true,"step":240 },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","expr":"redis:ins:rx{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"\u25bc{{ ins }}","refId":"A","range":true,"step":240 },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "expr":"0"                         ,                       "interval":"",                   "legendFormat":"Zero"           ,"refId":"C"                         }
          ],
          "title":"Network I/O",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"bytes"
            },
            "overrides":[{"matcher":{"id":"byName","options":"max"},"properties":[{"id":"color","value":{"fixedColor":"#BF1B00","mode":"fixed"}}]}]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":168},
          "id":7,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis_memory_used_bytes{cls=\"$cls\"}","format":"time_series","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""},{"expr":"min(redis_memory_max_bytes{cls=\"$cls\"} )","format":"time_series","hide":false,"intervalFactor":2,"legendFormat":"max","refId":"B","step":240}],
          "title":"Memory Usage",
          "type":"timeseries"
        }
      ],
      "title":"OS",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":37},
      "id":31,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":0,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":true,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":0,
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"}]},
              "unit":"none"
            },
            "overrides":[
              { "matcher":{"id":"byName","options":"\u00b5"}  ,"properties":[{"id":"color","value":{"fixedColor":"#3274D9","mode":"fixed"}},{"id":"custom.lineWidth","value":1},{"id":"custom.lineStyle","value":{"dash":[3,10],"fill":"dash"}}] },
              { "matcher":{"id":"byName","options":"+\u03c3"} ,"properties":[{"id":"custom.fillBelowTo","value":"-\u03c3"},{"id":"custom.lineWidth","value":0}]                                                                                  },
              { "matcher":{"id":"byName","options":"-\u03c3"} ,"properties":[{"id":"custom.lineWidth","value":0}]                                                                                                                                },
              { "matcher":{"id":"byName","options":"+3\u03c3"},"properties":[{"id":"color","value":{"fixedColor":"rgba(250, 210, 128, 0.3)","mode":"fixed"}},{"id":"custom.fillBelowTo","value":"-3\u03c3"},{"id":"custom.lineWidth","value":0}] },
              { "matcher":{"id":"byName","options":"-3\u03c3"},"properties":[{"id":"custom.lineWidth","value":0}]                                                                                                                                }
            ]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":162},
          "id":96,
          "options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"multi","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[
            { "expr":"redis:cls:qps{cls=\"$cls\"}"                                            ,"interval":"","legendFormat":"QPS"     ,"refId":"A" },{ "expr":"redis:cls:qps_mu{cls=\"$cls\"}"                                         ,"interval":"","legendFormat":"\u00b5"  ,"refId":"B" },
            { "expr":"redis:cls:qps_mu{cls=\"$cls\"} + redis:cls:qps_sigma{cls=\"$cls\"}"     ,"interval":"","legendFormat":"+\u03c3" ,"refId":"C" },{ "expr":"redis:cls:qps_mu{cls=\"$cls\"} - redis:cls:qps_sigma{cls=\"$cls\"}"     ,"interval":"","legendFormat":"-\u03c3" ,"refId":"D" },
            { "expr":"redis:cls:qps_mu{cls=\"$cls\"} +  3 * redis:cls:qps_sigma{cls=\"$cls\"}","interval":"","legendFormat":"+3\u03c3","refId":"E" },{ "expr":"redis:cls:qps_mu{cls=\"$cls\"} - 3 * redis:cls:qps_sigma{cls=\"$cls\"}" ,"interval":"","legendFormat":"-3\u03c3","refId":"F" }
          ],
          "title":"Cluster QPS",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":0,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":true,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"}]},
              "unit":"s"
            },
            "overrides":[
              { "matcher":{"id":"byName","options":"TPS"}     ,"properties":[{"id":"color","value":{"fixedColor":"#A352CC","mode":"fixed"}},{"id":"custom.lineWidth","value":2}]                                                                 },
              { "matcher":{"id":"byName","options":"\u00b5"}  ,"properties":[{"id":"color","value":{"fixedColor":"#3274D9","mode":"fixed"}},{"id":"custom.lineWidth","value":1},{"id":"custom.lineStyle","value":{"dash":[3,10],"fill":"dash"}}] },
              { "matcher":{"id":"byName","options":"+\u03c3"} ,"properties":[{"id":"custom.fillBelowTo","value":"-\u03c3"},{"id":"custom.lineWidth","value":0}]                                                                                  },
              { "matcher":{"id":"byName","options":"-\u03c3"} ,"properties":[{"id":"custom.lineWidth","value":0}]                                                                                                                                },
              { "matcher":{"id":"byName","options":"+3\u03c3"},"properties":[{"id":"color","value":{"fixedColor":"rgba(250, 210, 128, 0.3)","mode":"fixed"}},{"id":"custom.fillBelowTo","value":"-3\u03c3"},{"id":"custom.lineWidth","value":0}] },
              { "matcher":{"id":"byName","options":"-3\u03c3"},"properties":[{"id":"custom.lineWidth","value":0}]                                                                                                                                }
            ]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":162},
          "id":97,
          "options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"multi","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[
            { "expr":"redis:cls:rt{cls=\"$cls\"}"                                           ,"interval":"","legendFormat":"RT"      ,"refId":"A" },{ "expr":"redis:cls:rt_mu{cls=\"$cls\"}"                                        ,"interval":"","legendFormat":"\u00b5"  ,"refId":"B" },
            { "expr":"redis:cls:rt_mu{cls=\"$cls\"} + redis:cls:rt_sigma{cls=\"$cls\"}"     ,"interval":"","legendFormat":"+\u03c3" ,"refId":"C" },{ "expr":"redis:cls:rt_mu{cls=\"$cls\"} - redis:cls:rt_sigma{cls=\"$cls\"}"     ,"interval":"","legendFormat":"-\u03c3" ,"refId":"D" },
            { "expr":"redis:cls:rt_mu{cls=\"$cls\"} +  3 * redis:cls:rt_sigma{cls=\"$cls\"}","interval":"","legendFormat":"+3\u03c3","refId":"E" },{ "expr":"redis:cls:rt_mu{cls=\"$cls\"} - 3 * redis:cls:rt_sigma{cls=\"$cls\"}" ,"interval":"","legendFormat":"-3\u03c3","refId":"F" }
          ],
          "title":"Cluster RT",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":1,
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"short"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":169},
          "id":14,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:cls:cmd_qps{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ cmd }}","metric":"redis_command_calls_total","refId":"A","step":240}],
          "title":"Command QPS",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"s"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":169},
          "id":93,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:rt{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"A","refId":"A","step":240,"target":""}],
          "title":"Instance RT",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":1,
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"short"
            },
            "overrides":[]
          },
          "gridPos":{"h":6,"w":12,"x":0,"y":176},
          "id":92,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:cmd_qps{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}:{{ cmd }}","metric":"redis_command_calls_total","refId":"A","step":240}],
          "title":"Instance-Command QPS",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"mappings":[]},"overrides":[]},
          "gridPos":{"h":13,"w":12,"x":12,"y":176},
          "id":66,
          "maxDataPoints":3,
          "options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"tooltip":{"mode":"single","sort":"none"}},
          "targets":[{"expr":"redis:cls:cmd_qps{cls=\"$cls\"}","format":"time_series","instant":true,"interval":"","intervalFactor":2,"legendFormat":"{{ cmd }}","metric":"redis_command_calls_total","refId":"A","step":240}],
          "title":"Command QPS Distribution",
          "type":"piechart"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"s"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":182},
          "id":15,
          "options":{"legend":{"calcs":["mean","lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"exemplar":false,"expr":"redis:cls:cmd_rt{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{cmd}}","metric":"redis_command_calls_total","refId":"A","step":240}],
          "title":"Command RT",
          "type":"timeseries"
        }
      ],
      "title":"Activity",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":38},
      "id":47,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":5,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":0,
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"none"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":190},
          "id":50,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:clients{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","refId":"A","step":240,"target":""}],
          "title":"Clients",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":10,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":0,
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"none"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":190},
          "id":75,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis_connected_slaves{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"B","step":240}],
          "title":"Connected Replicas",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":5,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"stepAfter",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"none"
            },
            "overrides":[]
          },
          "gridPos":{"h":8,"w":12,"x":0,"y":197},
          "id":51,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:conn_rate{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","refId":"A","step":240,"target":""}],
          "title":"Received Connection Rate",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{"defaults":{"links":[]},"overrides":[]},
          "gridPos":{"h":8,"w":12,"x":12,"y":197},
          "id":90,
          "options":{"alertThreshold":true},
          "pluginVersion":"10.1.1",
          "targets":[{"expr":"topk(100,increase(redis_connections_received_total{cls=\"$cls\"}[1d]))","format":"time_series","instant":true,"interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","refId":"A","step":240,"target":""}],
          "title":"Incoming Connection 1 Day",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":50,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"none"
            },
            "overrides":[]
          },
          "gridPos":{"h":6,"w":12,"x":0,"y":205},
          "id":88,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:conn_reject{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","refId":"A","step":240,"target":""}],
          "title":"Reject Connection Rate",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{"defaults":{"links":[]},"overrides":[]},
          "gridPos":{"h":6,"w":12,"x":12,"y":205},
          "id":54,
          "options":{"alertThreshold":true},
          "pluginVersion":"10.1.1",
          "targets":[{"expr":"redis:ins:blocked_clients{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"B","step":240}],
          "title":"Blocked Client Rate",
          "type":"timeseries"
        }
      ],
      "title":"Session",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":39},
      "id":29,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"short"
            },
            "overrides":[
              { "matcher":{"id":"byName","options":"evicts"}                                                                        ,"properties":[{"id":"color","value":{"fixedColor":"#890F02","mode":"fixed"}}] },{ "matcher":{"id":"byName","options":"memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"Prometheus\"}"},"properties":[{"id":"color","value":{"fixedColor":"#890F02","mode":"fixed"}}] },
              { "matcher":{"id":"byName","options":"reclaims"}                                                                      ,"properties":[{"id":"color","value":{"fixedColor":"#3F6833","mode":"fixed"}}] }
            ]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":212},
          "id":8,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:key_expire{cls=\"$cls\"}","format":"time_series","hide":false,"interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"Key Expired",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":60,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"normal"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"none"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":212},
          "id":5,
          "options":{"legend":{"calcs":["last"],"displayMode":"list","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","expr":"sum(redis_db_keys{cls=\"$cls\"}) by (db)","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ db }} ","range":true,"refId":"A","step":240,"target":""}],
          "title":"Keys (per DB)",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"short"
            },
            "overrides":[
              { "matcher":{"id":"byName","options":"evicts"}                                                                        ,"properties":[{"id":"color","value":{"fixedColor":"#890F02","mode":"fixed"}}] },{ "matcher":{"id":"byName","options":"memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"Prometheus\"}"},"properties":[{"id":"color","value":{"fixedColor":"#890F02","mode":"fixed"}}] },
              { "matcher":{"id":"byName","options":"reclaims"}                                                                      ,"properties":[{"id":"color","value":{"fixedColor":"#3F6833","mode":"fixed"}}] }
            ]
          },
          "gridPos":{"h":7,"w":12,"x":0,"y":219},
          "id":87,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:key_evict{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","refId":"B","step":240}],
          "title":"Key Evicted",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":60,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"none"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":219},
          "id":86,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"sum by (instance) (redis_db_keys{cls=\"$cls\"})","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ instance }} ","refId":"A","step":240,"target":""}],
          "title":"Keys (per Instance)",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{"defaults":{"links":[]},"overrides":[]},
          "gridPos":{"h":7,"w":12,"x":0,"y":226},
          "id":58,
          "options":{"alertThreshold":true},
          "pluginVersion":"10.1.1",
          "targets":[{"expr":"redis_db_avg_ttl_seconds{cls=\"$cls\"}","format":"time_series","hide":false,"interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"Average TTL",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "decimals":2,
              "links":[],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"percentunit"
            },
            "overrides":[]
          },
          "gridPos":{"h":7,"w":12,"x":12,"y":226},
          "id":69,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"expr":"redis:ins:key_hit_rate{cls=\"$cls\"}","format":"time_series","hide":false,"interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"","refId":"A","step":240,"target":""}],
          "title":"Key Hit Rate",
          "type":"timeseries"
        }
      ],
      "title":"Database",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":40},
      "id":27,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{"custom":{"align":"center","cellOptions":{"type":"auto"},"filterable":false,"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"}]}},
            "overrides":[
              { "matcher":{"id":"byName","options":"Readonly"}   ,"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"#3e668f","value":1}]}},{"id":"custom.cellOptions","value":{"type":"color-text"}},{"id":"mappings","value":[{"options":{"0":{"text":"False"},"1":{"text":"True"}},"type":"value"}]},{"id":"custom.width","value":80}] },
              { "matcher":{"id":"byName","options":"Primary"}    ,"properties":[{"id":"custom.width","value":140},{"id":"links","value":[{"title":"Redis Instance : ${__data.fields.Primary} ","url":"/d/redis-instance?var-id=${__data.fields.Primary}&${__url_time_range}"}]}]                                                                                                            },
              { "matcher":{"id":"byName","options":"Replica"}    ,"properties":[{"id":"custom.width","value":140},{"id":"links","value":[{"title":"Redis Instance : ${__data.fields.Replica}","url":"/d/redis-instance?var-id=${__data.fields.Replica}&${__url_time_range}"}]}]                                                                                                             },
              { "matcher":{"id":"byName","options":"Replica Ins"},"properties":[{"id":"links","value":[{"title":"Redis Instance : ${__data.fields[\"Replica Ins\"]}","url":"/d/redis-instance?var-id=${__data.fields[\"Replica Ins\"]}&${__url_time_range}"}]},{"id":"custom.minWidth","value":180}]                                                                                        }
            ]
          },
          "gridPos":{"h":8,"w":12,"x":0,"y":234},
          "id":89,
          "options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true,"sortBy":[]},
          "pluginVersion":"10.1.1",
          "targets":[{"exemplar":false,"expr":"label_join(label_replace(redis_slave_info{cls=\"$cls\"}, \"replica_ins\", \"$1\", \"ins\", \"(.+)\"), 'ins', ':', 'master_host', 'master_port')","format":"table","instant":true,"interval":"","intervalFactor":2,"legendFormat":"","metric":"","refId":"A","step":1800}],
          "title":"Replication",
          "transformations":[
            {
              "id":"organize",
              "options":{
                "excludeByName":{ "Time":true,"Value":true,"__name__":true,                "cls":true,"instance":false    ,"ip":true        ,"job":true,"master_host":true,"master_port":true                                                    },
                "indexByName"  :{ "Time":4   ,"Value":9   ,"__name__":5   ,"ins":0        ,"cls":6   ,"instance":1        ,                  "job":7   ,"master_host":10  ,"master_port":8   ,"read_only":3         ,"replica_ins":2             },
                "renameByName" :{             "Value":""  ,                "ins":"Primary",           "instance":"Replica","ip":"Replica IP",           "master_host":""  ,"master_port":""  ,"read_only":"Readonly","replica_ins":"Replica Ins" }
              }
            }
          ],
          "type":"table"
        },
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":0,
                "gradientMode":"none",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"},{"color":"red","value":80}]},
              "unit":"bytes"
            },
            "overrides":[]
          },
          "gridPos":{"h":8,"w":12,"x":12,"y":234},
          "id":57,
          "options":{"legend":{"calcs":["lastNotNull"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},
          "pluginVersion":"8.2.5",
          "targets":[{"exemplar":false,"expr":"redis:ins:lsn_rate{cls=\"$cls\"}","format":"time_series","interval":"","intervalFactor":2,"legendFormat":"{{ ins }}","metric":"A","refId":"A","step":240,"target":""}],
          "title":"LSN Rate",
          "type":"timeseries"
        }
      ],
      "title":"Replication",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":41},
      "id":175,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"Sentinel Instance that monitoring this cluster leader",
          "fieldConfig":{
            "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green"}]}},
            "overrides":[
              {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"links","value":[{"title":"Redis Sentinel Cluster : ${__data.fields.Cluster}","url":"/d/redis-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]},{"id":"custom.minWidth","value":120}]},
              {"matcher":{"id":"byName","options":"Sentinel"},"properties":[{"id":"links","value":[{"title":"Redis Sentinel Instance : ${__data.fields.Sentinel}","url":"/d/redis-instance?var-ins=${__data.fields.Sentinel}&${__url_time_range}"}]},{"id":"custom.minWidth","value":180}]},
              {"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"links","value":[{"title":"Redis Node : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.minWidth","value":110}]},
              {"matcher":{"id":"byName","options":"Leader Address"},"properties":[{"id":"links","value":[{"title":"Redis Leader Instance : ${__data.fields[\"Leader Address\"]}","url":"/d/redis-instance?var-id=${__data.fields[\"Leader Address\"]}&${__url_time_range}"}]}]},{"matcher":{"id":"byType","options":"number"},"properties":[{"id":"custom.width","value":90}]},
              {"matcher":{"id":"byName","options":"QuorumOK"},"properties":[{"id":"mappings","value":[{"options":{"0":{"color":"#cc4637d9","index":0,"text":"DOWN"},"1":{"color":"#346f36cc","index":1,"text":"OK"}},"type":"value"}]},{"id":"custom.cellOptions","value":{"type":"color-text"}}]},
              {
                "matcher":{"id":"byName","options":"Status"},
                "properties":[
                  { "id":"mappings"          ,"value":[{"options":{"odown":{"color":"#b783af","index":2,"text":"Objective Down"},"ok":{"color":"#346f36cc","index":0,"text":"OK"},"sdown":{"color":"#cc4637d9","index":1,"text":"Subjective Down"}},"type":"value"}] },
                  { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#cc4637d9"}]}                                                                                                                                                            },
                  { "id":"custom.cellOptions","value":{"type":"color-text"}                                                                                                                                                                                          },
                  { "id":"custom.width"      ,"value":120                                                                                                                                                                                                            }
                ]
              }
            ]
          },
          "gridPos":{"h":7,"w":24,"x":0,"y":108},
          "id":176,
          "options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true},
          "pluginVersion":"10.1.1",
          "targets":[
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins,master_name, master_address,master_status) (redis_sentinel_master_status{master_name='$cls'})","format":"table",             "instant":true,"legendFormat":"__auto","range":false,"refId":"A" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins) (redis_sentinel_master_slaves{master_name='$cls'})"                                          ,"format":"table","hide":false,"instant":true,"legendFormat":"__auto","range":false,"refId":"B" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins) (redis_sentinel_master_ok_slaves{master_name='$cls'})"                                       ,"format":"table","hide":false,"instant":true,"legendFormat":"__auto","range":false,"refId":"C" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins) (redis_sentinel_master_sentinels{master_name='$cls'})"                                       ,"format":"table","hide":false,"instant":true,"legendFormat":"__auto","range":false,"refId":"D" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins) (redis_sentinel_master_ok_sentinels{master_name='$cls'})"                                    ,"format":"table","hide":false,"instant":true,"legendFormat":"__auto","range":false,"refId":"E" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins) (redis_sentinel_master_ckquorum_status{master_name='$cls'})"                                 ,"format":"table","hide":false,"instant":true,"legendFormat":"__auto","range":false,"refId":"F" }
          ],
          "transformations":[
            {"id":"joinByField","options":{"byField":"ins","mode":"outer"}},
            {
              "id":"organize",
              "options":{
                "excludeByName":{"Time":true,"Time 1":true,"Time 2":true,"Time 3":true,"Time 4":true,"Value #A":true,"__name__":true,"job":true,"master_address":true,"master_name":true},
                "indexByName":{"Time 1":5,"Time 2":6,"Time 3":8,"Time 4":10,"Time 5":12,"Time 6":14,"Value #A":1,"Value #B":7,"Value #C":9,"Value #D":11,"Value #E":13,"Value #F":15,"ins":0,"master_address":2,"master_name":3,"master_status":4},
                "renameByName":{"Time 3":"","Time 4":"","Value #A":"Masters","Value #B":"Replicas","Value #C":"ReplicaOK","Value #D":"Sentinels","Value #E":"SentinelOK","Value #F":"QuorumOK","cls":"Cluster","ins":"Sentinel","instance":"Address","ip":"IP","master_address":"Leader Address","master_name":"Cluster","master_status":"Status"}
              }
            }
          ],
          "type":"table"
        }
      ],
      "title":"Sentinel",
      "type":"row"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":42},"id":177,"panels":[],"title":"Logs","type":"row"},
    {
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "description":"Redis Log Events of this cluster $cls",
      "fieldConfig":{
        "defaults":{
          "color":{"fixedColor":"#346f36cc","mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"bars",
            "fillOpacity":100,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":5,"w":24,"x":0,"y":43},
      "id":178,
      "interval":"1s",
      "options":{"legend":{"calcs":["sum"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"cls:$cls job:redis | stats by (ins) count() as count","legendFormat":"{{ ins }}","queryType":"statsRange","refId":"A"}],
      "title":"Redis Cluster Logs",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "description":"",
      "gridPos":{"h":17,"w":24,"x":0,"y":48},
      "id":179,
      "options":{"dedupStrategy":"none","enableInfiniteScrolling":false,"enableLogDetails":true,"prettifyLogMessage":false,"showCommonLabels":false,"showControls":false,"showLabels":true,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"cls:$cls job:redis","instant":false,"legendFormat":"{{ ins }}","queryType":"instant","range":true,"refId":"A"}],
      "type":"logs"
    }
  ],
  "preload":false,
  "refresh":"",
  "schemaVersion":42,
  "tags":["Pigsty","REDIS","Cluster"],
  "templating":{
    "list":[
      {"current":{},"datasource":{"type":"prometheus","uid":"ds-prometheus"},"definition":"label_values(redis_instance_info{job=\"redis\"}, cls)","includeAll":false,"label":"Cluster","name":"cls","options":[],"query":{"query":"label_values(redis_instance_info{job=\"redis\"}, cls)","refId":"Prometheus-cls-Variable-Query"},"refresh":2,"regex":"","type":"query"},
      {
        "allValue":".*",
        "current":{},
        "datasource":{"type":"prometheus","uid":"ds-prometheus"},
        "definition":"label_values(redis_instance_info{job=\"redis\", cls=\"$cls\"}, redis_mode)",
        "hide":2,
        "includeAll":false,
        "label":"Mode",
        "name":"mode",
        "options":[],
        "query":{"query":"label_values(redis_instance_info{job=\"redis\", cls=\"$cls\"}, redis_mode)","refId":"Prometheus-mode-Variable-Query"},
        "refresh":2,
        "regex":"",
        "type":"query"
      }
    ]
  },
  "time":{"from":"now-1h","to":"now"},
  "timepicker":{"refresh_intervals":["10s","30s","1m","5m","15m","30m","1h","2h","1d"]},
  "timezone":"browser",
  "title":"Redis Cluster",
  "uid":"redis-cluster",
  "version":1,
  "weekStart":""
}