{ "title": "Valkey", "uid": "valkey-overview", "tags": ["valkey", "redis", "cache"], "schemaVersion": 39, "version": 1, "refresh": "1m", "time": { "from": "now-6h", "to": "now" }, "timezone": "browser", "editable": true, "graphTooltip": 1, "templating": { "list": [ { "name": "instance", "label": "Host", "type": "query", "datasource": { "type": "prometheus", "uid": "prometheus" }, "query": { "query": "label_values(up{job=\"valkey\"}, instance)", "refId": "A" }, "refresh": 2, "multi": false, "includeAll": false, "sort": 1, "current": { "selected": false, "text": "", "value": "" } } ] }, "panels": [ { "id": 1, "type": "stat", "title": "Up", "gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "none", "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] }, "mappings": [ { "type": "value", "options": { "0": { "text": "Down", "color": "red" }, "1": { "text": "Up", "color": "green" } } } ] }, "overrides": [] }, "options": { "reduceOptions": { "values": false, "calcs": ["lastNotNull"], "fields": "" }, "colorMode": "background", "graphMode": "none", "textMode": "auto", "justifyMode": "auto", "orientation": "auto" }, "targets": [ { "refId": "A", "expr": "redis_up{instance=\"$instance\"}" } ] }, { "id": 2, "type": "timeseries", "title": "Connected Clients", "gridPos": { "h": 4, "w": 18, "x": 6, "y": 0 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "short", "color": { "mode": "palette-classic" }, "custom": { "fillOpacity": 20, "lineWidth": 1, "drawStyle": "line", "showPoints": "never" } }, "overrides": [] }, "targets": [ { "refId": "A", "expr": "redis_connected_clients{instance=\"$instance\"}", "legendFormat": "clients" } ] }, { "id": 3, "type": "timeseries", "title": "Memory", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "bytes", "color": { "mode": "palette-classic" }, "custom": { "fillOpacity": 20, "lineWidth": 1, "drawStyle": "line", "showPoints": "never" } }, "overrides": [] }, "targets": [ { "refId": "A", "expr": "redis_memory_used_bytes{instance=\"$instance\"}", "legendFormat": "used" }, { "refId": "B", "expr": "redis_memory_max_bytes{instance=\"$instance\"}", "legendFormat": "max" } ] }, { "id": 4, "type": "timeseries", "title": "Ops/sec", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "ops", "color": { "mode": "palette-classic" }, "custom": { "fillOpacity": 20, "lineWidth": 1, "drawStyle": "line", "showPoints": "never" } }, "overrides": [] }, "targets": [ { "refId": "A", "expr": "rate(redis_commands_processed_total{instance=\"$instance\"}[$__rate_interval])", "legendFormat": "ops/s" } ] }, { "id": 5, "type": "timeseries", "title": "Cache Hit Rate", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 12 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1, "color": { "mode": "palette-classic" }, "custom": { "fillOpacity": 20, "lineWidth": 1, "drawStyle": "line", "showPoints": "never" } }, "overrides": [] }, "targets": [ { "refId": "A", "expr": "rate(redis_keyspace_hits_total{instance=\"$instance\"}[$__rate_interval]) / (rate(redis_keyspace_hits_total{instance=\"$instance\"}[$__rate_interval]) + rate(redis_keyspace_misses_total{instance=\"$instance\"}[$__rate_interval]))", "legendFormat": "hit rate" } ] }, { "id": 6, "type": "timeseries", "title": "Evicted Keys", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 12 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "ops", "color": { "mode": "palette-classic" }, "custom": { "fillOpacity": 20, "lineWidth": 1, "drawStyle": "line", "showPoints": "never" } }, "overrides": [] }, "targets": [ { "refId": "A", "expr": "rate(redis_evicted_keys_total{instance=\"$instance\"}[$__rate_interval])", "legendFormat": "evicted/s" } ] } ] }