[
  {
    "id": "redis-service",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 24,
          "h": 36,
          "i": "0",
          "type": "Tab",
          "children": [
            {
              "name": "Inspections",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 6,
                  "h": 6,
                  "i": "0",
                  "type": "Widget",
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center",
                    "showUnit": true
                  },
                  "widget": {
                    "title": "Uptime (day)"
                  },
                  "expressions": [
                    "latest(aggregate_labels(meter_redis_uptime,max))/3600/24"
                  ]
                },
                {
                  "x": 6,
                  "y": 0,
                  "w": 6,
                  "h": 6,
                  "i": "1",
                  "type": "Widget",
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center",
                    "showUnit": true
                  },
                  "widget": {
                    "title": "Connected Clients"
                  },
                  "expressions": [
                    "latest(aggregate_labels(meter_redis_connected_clients,sum))"
                  ]
                },
                {
                  "x": 18,
                  "y": 0,
                  "w": 6,
                  "h": 6,
                  "i": "2",
                  "type": "Widget",
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center",
                    "showUnit": true
                  },
                  "widget": {
                    "title": "Memory Usage (%)"
                  },
                  "metricConfig": [
                    {
                      "label": "Memory Usage"
                    }
                  ],
                  "expressions": [
                    "latest(aggregate_labels(meter_redis_memory_used_bytes,sum)/aggregate_labels(meter_redis_memory_max_bytes,sum))*100"
                  ]
                },
                {
                  "x": 12,
                  "y": 6,
                  "w": 6,
                  "h": 12,
                  "i": "3",
                  "type": "Widget",
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "widget": {
                    "title": "Total Commands Trend"
                  },
                  "expressions": [
                    "aggregate_labels(meter_redis_total_commands_rate,sum(cmd))"
                  ]
                },
                {
                  "x": 0,
                  "y": 6,
                  "w": 6,
                  "h": 12,
                  "i": "4",
                  "type": "Widget",
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "widget": {
                    "title": "Hits Rate (%)"
                  },
                  "metricConfig": [
                    {
                      "label": "Hit Rate"
                    }
                  ],
                  "expressions": [
                    "aggregate_labels(meter_redis_hit_rate,avg)"
                  ]
                },
                {
                  "x": 0,
                  "y": 18,
                  "w": 6,
                  "h": 12,
                  "i": "6",
                  "type": "Widget",
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metricConfig": [
                    {
                      "label": "Input Bytes"
                    },
                    {
                      "label": "Output Bytes"
                    }
                  ],
                  "widget": {
                    "title": "Net Input / Output Bytes (KB)"
                  },
                  "expressions": [
                    "aggregate_labels(meter_redis_net_input_bytes_total,sum)/1024",
                    "aggregate_labels(meter_redis_net_output_bytes_total,sum)/1024"
                  ]
                },
                {
                  "x": 18,
                  "y": 6,
                  "w": 6,
                  "h": 12,
                  "i": "7",
                  "type": "Widget",
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "widget": {
                    "title": "DB Keys"
                  },
                  "metricConfig": [
                    {
                      "label": "DB Keys"
                    },
                    {
                      "label": "Evicted Keys"
                    },
                    {
                      "label": "Expired Keys"
                    }
                  ],
                  "expressions": [
                    "aggregate_labels(meter_redis_db_keys,sum)",
                    "aggregate_labels(meter_redis_evicted_keys_total,sum)",
                    "aggregate_labels(meter_redis_expired_keys_total,sum)"
                  ]
                },
                {
                  "x": 12,
                  "y": 0,
                  "w": 6,
                  "h": 6,
                  "i": "8",
                  "type": "Widget",
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center",
                    "showUnit": true
                  },
                  "widget": {
                    "title": "Blocked Clients"
                  },
                  "expressions": [
                    "latest(aggregate_labels(meter_redis_blocked_clients,sum))"
                  ]
                },
                {
                  "x": 6,
                  "y": 18,
                  "w": 6,
                  "h": 12,
                  "i": "9",
                  "type": "Widget",
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "widget": {
                    "title": "Total Time Spent by Command Trend (sec)"
                  },
                  "expressions": [
                    "aggregate_labels(meter_redis_commands_duration_seconds_total_rate,sum(cmd))"
                  ]
                },
                {
                  "x": 6,
                  "y": 6,
                  "w": 6,
                  "h": 12,
                  "i": "10",
                  "type": "Widget",
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "widget": {
                    "title": "Average Time Spent by Command / sec"
                  },
                  "expressions": [
                    "aggregate_labels(meter_redis_commands_duration,sum(cmd))/aggregate_labels(meter_redis_commands_total,sum(cmd))"
                  ]
                }
              ]
            },
            {
              "name": "Instances",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 30,
                  "i": "0",
                  "type": "Widget",
                  "graph": {
                    "type": "InstanceList",
                    "dashboardName": "Redis-Instance",
                    "fontSize": 12
                  }
                }
              ]
            },
            {
              "name": "Slow Commands",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 31,
                  "i": "0",
                  "type": "Widget",
                  "graph": {
                    "type": "TopList",
                    "color": "purple"
                  },
                  "widget": {
                    "title": "Slow Commands (ms)"
                  },
                  "expressions": [
                    "top_n(top_n_database_statement,10,des)"
                  ],
                  "relatedTrace": {
                    "refIdType": "none"
                  }
                }
              ]
            }
          ]
        }
      ],
      "layer": "REDIS",
      "entity": "Service",
      "name": "Redis-Service",
      "id": "redis-service",
      "isRoot": false
    }
  }
]
