{
    "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"
        }
      ]
    },
    "description": "Redis Dashboard for Prometheus Redis Exporter 1.x",
    "editable": true,
    "fiscalYearStartMonth": 0,
    "gnetId": 763,
    "graphTooltip": 1,
    "id": 66,
    "links": [],
    "liveNow": false,
    "panels": [
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "fixedColor": "rgb(31, 120, 193)",
              "mode": "fixed"
            },
            "decimals": 0,
            "mappings": [
              {
                "options": {
                  "match": "null",
                  "result": {
                    "text": "N/A"
                  }
                },
                "type": "special"
              }
            ],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "s"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 3,
          "x": 0,
          "y": 0
        },
        "id": 9,
        "links": [],
        "maxDataPoints": 100,
        "options": {
          "colorMode": "none",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "horizontal",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "text": {},
          "textMode": "auto"
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "max(max_over_time(redis_uptime_in_seconds{service=~\"$cluster\", pod=~\"$instance\"}[$__interval]))",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "",
            "metric": "",
            "range": true,
            "refId": "A",
            "step": 1800
          }
        ],
        "title": "Max Uptime",
        "type": "stat"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "fixedColor": "rgb(31, 120, 193)",
              "mode": "fixed"
            },
            "decimals": 0,
            "mappings": [
              {
                "options": {
                  "match": "null",
                  "result": {
                    "text": "N/A"
                  }
                },
                "type": "special"
              }
            ],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "none"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 2,
          "x": 3,
          "y": 0
        },
        "hideTimeOverride": true,
        "id": 12,
        "links": [],
        "maxDataPoints": 100,
        "options": {
          "colorMode": "none",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "horizontal",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "text": {},
          "textMode": "auto"
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(redis_connected_clients{service=~\"$cluster\", pod=~\"$instance\"})",
            "format": "time_series",
            "intervalFactor": 2,
            "legendFormat": "",
            "metric": "",
            "range": true,
            "refId": "A",
            "step": 2
          }
        ],
        "timeFrom": "1m",
        "title": "Clients",
        "type": "stat"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "decimals": 0,
            "mappings": [
              {
                "options": {
                  "match": "null",
                  "result": {
                    "text": "N/A"
                  }
                },
                "type": "special"
              }
            ],
            "max": 100,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "rgba(50, 172, 45, 0.97)",
                  "value": null
                },
                {
                  "color": "rgba(237, 129, 40, 0.89)",
                  "value": 80
                },
                {
                  "color": "rgba(245, 54, 54, 0.9)",
                  "value": 95
                }
              ]
            },
            "unit": "percent"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 3,
          "x": 5,
          "y": 0
        },
        "hideTimeOverride": true,
        "id": 11,
        "links": [],
        "maxDataPoints": 100,
        "options": {
          "orientation": "horizontal",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true,
          "text": {}
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(100 * (redis_memory_used_bytes{service=~\"$cluster\", pod=~\"$instance\"}  / redis_memory_max_bytes{service=~\"$cluster\", pod=~\"$instance\"}))",
            "format": "time_series",
            "intervalFactor": 2,
            "legendFormat": "",
            "metric": "",
            "range": true,
            "refId": "A",
            "step": 2
          }
        ],
        "timeFrom": "1m",
        "title": "Memory Usage",
        "type": "gauge"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 80,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "normal"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "short"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 8,
          "x": 8,
          "y": 0
        },
        "id": 18,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": false
          },
          "tooltip": {
            "mode": "multi",
            "sort": "desc"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(rate(redis_commands_total{service=~\"$cluster\", pod=~\"$instance\"} [1m])) by (cmd)",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "{{ cmd }}",
            "metric": "redis_command_calls_total",
            "range": true,
            "refId": "A",
            "step": 240
          }
        ],
        "title": "Total Commands / sec",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "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": "linear",
              "lineWidth": 2,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "short"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 8,
          "x": 16,
          "y": 0
        },
        "id": 1,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": false
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "irate(redis_keyspace_hits_total{service=~\"$cluster\", pod=~\"$instance\"}[5m])",
            "format": "time_series",
            "hide": false,
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "hits, {{ instance }}",
            "metric": "",
            "range": true,
            "refId": "A",
            "step": 240,
            "target": ""
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "irate(redis_keyspace_misses_total{service=~\"$cluster\", pod=~\"$instance\"}[5m])",
            "format": "time_series",
            "hide": false,
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "misses, {{ instance }}",
            "metric": "",
            "range": true,
            "refId": "B",
            "step": 240,
            "target": ""
          }
        ],
        "title": "Hits / Misses per Sec",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "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": "linear",
              "lineWidth": 2,
              "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": "green",
                  "value": null
                },
                {
                  "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": 0,
          "y": 7
        },
        "id": 7,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "redis_memory_used_bytes{service=~\"$cluster\", pod=~\"$instance\"}",
            "format": "time_series",
            "intervalFactor": 2,
            "legendFormat": "used, {{ instance }}",
            "metric": "",
            "range": true,
            "refId": "A",
            "step": 240,
            "target": ""
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "redis_memory_max_bytes{service=~\"$cluster\", pod=~\"$instance\"}",
            "format": "time_series",
            "hide": false,
            "intervalFactor": 2,
            "legendFormat": "max, {{ instance }}",
            "range": true,
            "refId": "B",
            "step": 240
          }
        ],
        "title": "Total Memory Usage",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "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": "linear",
              "lineWidth": 2,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "bytes"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 12,
          "x": 12,
          "y": 7
        },
        "id": 10,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(rate(redis_net_input_bytes_total{service=~\"$cluster\", pod=~\"$instance\"}[5m]))",
            "format": "time_series",
            "intervalFactor": 2,
            "legendFormat": "input",
            "range": true,
            "refId": "A",
            "step": 240
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(rate(redis_net_output_bytes_total{service=~\"$cluster\", pod=~\"$instance\"}[5m]))",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "output",
            "range": true,
            "refId": "B",
            "step": 240
          }
        ],
        "title": "Network I/O",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 70,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 2,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "normal"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "none"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byValue",
                "options": {
                  "op": "gte",
                  "reducer": "allIsZero",
                  "value": 0
                }
              },
              "properties": [
                {
                  "id": "custom.hideFrom",
                  "value": {
                    "legend": true,
                    "tooltip": true,
                    "viz": false
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 7,
          "w": 12,
          "x": 0,
          "y": 14
        },
        "id": 5,
        "links": [],
        "options": {
          "legend": {
            "calcs": [
              "lastNotNull"
            ],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum (redis_db_keys{service=~\"$cluster\", pod=~\"$instance\"}) by (db, pod)",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "{{ db }}, {{ pod }}",
            "range": true,
            "refId": "A",
            "step": 240,
            "target": ""
          }
        ],
        "title": "Total Items per DB",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 70,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 2,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "normal"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "short"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 12,
          "x": 12,
          "y": 14
        },
        "id": 13,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum (redis_db_keys{service=~\"$cluster\", pod=~\"$instance\"}) by (pod) - sum (redis_db_keys_expiring{service=~\"$cluster\", pod=~\"$instance\"}) by (pod)",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "not expiring, {{ pod }}",
            "range": true,
            "refId": "A",
            "step": 240,
            "target": ""
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum (redis_db_keys_expiring{service=~\"$cluster\", pod=~\"$instance\"}) by (pod)",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "expiring, {{ pod }}",
            "metric": "",
            "range": true,
            "refId": "B",
            "step": 240
          }
        ],
        "title": "Expiring vs Not-Expiring Keys",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "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": "linear",
              "lineWidth": 2,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "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": 21
        },
        "id": 8,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(rate(redis_expired_keys_total{service=~\"$cluster\", pod=~\"$instance\"}[5m])) by (pod)",
            "format": "time_series",
            "hide": false,
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "expired, {{ pod }}",
            "metric": "",
            "range": true,
            "refId": "A",
            "step": 240,
            "target": ""
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(rate(redis_evicted_keys_total{service=~\"$cluster\", pod=~\"$instance\"}[5m])) by (pod)",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "evicted, {{ pod }}",
            "range": true,
            "refId": "B",
            "step": 240
          }
        ],
        "title": "Expired/Evicted Keys",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "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": "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": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "short"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 12,
          "x": 12,
          "y": 21
        },
        "id": 16,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(redis_connected_clients{service=~\"$cluster\", pod=~\"$instance\"})",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "connected",
            "range": true,
            "refId": "A"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(redis_blocked_clients{service=~\"$cluster\", pod=~\"$instance\"})",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "blocked",
            "range": true,
            "refId": "B"
          }
        ],
        "title": "Connected/Blocked Clients",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 20,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "s"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byValue",
                "options": {
                  "op": "gte",
                  "reducer": "allIsZero",
                  "value": 0
                }
              },
              "properties": [
                {
                  "id": "custom.hideFrom",
                  "value": {
                    "legend": true,
                    "tooltip": true,
                    "viz": false
                  }
                }
              ]
            },
            {
              "__systemRef": "hideSeriesFrom",
              "matcher": {
                "id": "byNames",
                "options": {
                  "mode": "exclude",
                  "names": [
                    "mget"
                  ],
                  "prefix": "All except:",
                  "readOnly": true
                }
              },
              "properties": [
                {
                  "id": "custom.hideFrom",
                  "value": {
                    "legend": false,
                    "tooltip": false,
                    "viz": true
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 7,
          "w": 12,
          "x": 0,
          "y": 28
        },
        "id": 20,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "desc"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(irate(redis_commands_duration_seconds_total{service=~\"$cluster\", pod=~\"$instance\"}[1m])) by (cmd)\n  /\nsum(irate(redis_commands_total{service=~\"$cluster\", pod=~\"$instance\"}[1m])) by (cmd)\n",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "{{ cmd }}",
            "metric": "redis_command_calls_total",
            "range": true,
            "refId": "A",
            "step": 240
          }
        ],
        "title": "Average Time Spent by Command / sec",
        "type": "timeseries"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${Datasource}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 80,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "never",
              "spanNulls": true,
              "stacking": {
                "group": "A",
                "mode": "normal"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "links": [],
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "s"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 12,
          "x": 12,
          "y": 28
        },
        "id": 14,
        "links": [],
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "desc"
          }
        },
        "pluginVersion": "10.1.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${Datasource}"
            },
            "editorMode": "code",
            "expr": "sum(irate(redis_commands_duration_seconds_total{service=~\"$cluster\", pod=~\"$instance\"}[1m])) by (cmd) != 0",
            "format": "time_series",
            "interval": "",
            "intervalFactor": 2,
            "legendFormat": "{{ cmd }}",
            "metric": "redis_command_calls_total",
            "range": true,
            "refId": "A",
            "step": 240
          }
        ],
        "title": "Total Time Spent by Command / sec",
        "type": "timeseries"
      }
    ],
    "refresh": "",
    "revision": 1,
    "schemaVersion": 38,
    "style": "dark",
    "tags": [
      "prometheus",
      "redis"
    ],
    "templating": {
      "list": [
        {
          "current": {
            "selected": false,
            "text": "vm",
            "value": "7de66667-64e8-4685-b5b4-2c3d573910bc"
          },
          "hide": 0,
          "includeAll": false,
          "multi": false,
          "name": "Datasource",
          "options": [],
          "query": "prometheus",
          "queryValue": "",
          "refresh": 1,
          "regex": "",
          "skipUrlSync": false,
          "type": "datasource"
        },
        {
          "current": {
            "selected": true,
            "text": "app",
            "value": "app"
          },
          "definition": "label_values(redis_up,service)",
          "hide": 0,
          "includeAll": false,
          "multi": false,
          "name": "cluster",
          "options": [],
          "query": {
            "query": "label_values(redis_up,service)",
            "refId": "PrometheusVariableQueryEditor-VariableQuery"
          },
          "refresh": 1,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "type": "query"
        },
        {
          "current": {
            "selected": true,
            "text": [
              "All"
            ],
            "value": [
              "$__all"
            ]
          },
          "datasource": {
            "type": "prometheus",
            "uid": "${Datasource}"
          },
          "definition": "label_values(redis_up{service=~\"$cluster\"},pod)",
          "hide": 0,
          "includeAll": true,
          "multi": true,
          "name": "instance",
          "options": [],
          "query": {
            "query": "label_values(redis_up{service=~\"$cluster\"},pod)",
            "refId": "PrometheusVariableQueryEditor-VariableQuery"
          },
          "refresh": 2,
          "regex": "",
          "skipUrlSync": false,
          "sort": 1,
          "tagValuesQuery": "",
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        }
      ]
    },
    "time": {
      "from": "now-1h",
      "to": "now"
    },
    "timepicker": {
      "refresh_intervals": [
        "5s",
        "10s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "1d"
      ],
      "time_options": [
        "5m",
        "15m",
        "1h",
        "6h",
        "12h",
        "24h",
        "2d",
        "7d",
        "30d"
      ]
    },
    "timezone": "browser",
    "title": "Redis",
    "uid": "4GFbkOsZkss",
    "version": 2,
    "weekStart": ""
}
