From 1058c106881b4dd73ca1e061349a35ac559c3679 Mon Sep 17 00:00:00 2001 From: Mikhail <47795110+mikhailredis@users.noreply.github.com> Date: Thu, 20 Aug 2020 23:00:55 -0700 Subject: [PATCH] Add Redis dashboard to support multiple Redis instances (#49) --- dashboards/redis.json | 1377 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1377 insertions(+) create mode 100644 dashboards/redis.json diff --git a/dashboards/redis.json b/dashboards/redis.json new file mode 100644 index 0000000..f86d3b8 --- /dev/null +++ b/dashboards/redis.json @@ -0,0 +1,1377 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "Redis Dashboard", + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 31, + "iteration": 1597988841671, + "links": [ + { + "icon": "external link", + "tags": [], + "targetBlank": true, + "title": "Redis.io", + "type": "link", + "url": "https://redis.io/" + } + ], + "panels": [ + { + "collapsed": false, + "datasource": "$redis", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 56, + "panels": [], + "repeat": "redis", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "title": "Main: $redis", + "type": "row" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + }, + { + "color": "dark-yellow", + "value": 22000 + }, + { + "color": "dark-red", + "value": 25000 + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 24, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "textMode": "auto" + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "stats", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Ops/sec", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["instantaneous_ops_per_sec"] + } + } + } + ], + "type": "stat" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "decimals": 1, + "mappings": [], + "max": 11000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + }, + { + "color": "dark-yellow", + "value": 8000 + }, + { + "color": "dark-red", + "value": 10000 + } + ] + }, + "unit": "KBs" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 3, + "y": 1 + }, + "id": 25, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "stats", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Network", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["instantaneous_input_kbps", "instantaneous_output_kbps"] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "instantaneous_input_kbps": "Input", + "instantaneous_output_kbps": "Output" + } + } + } + ], + "type": "gauge" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Used Memory" + }, + "properties": [ + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Used Memory, Peak" + }, + "properties": [ + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Used Memory, LUA" + }, + "properties": [ + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Memory Limit" + }, + "properties": [ + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total System Memory" + }, + "properties": [ + { + "id": "decimals", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 10, + "x": 11, + "y": 1 + }, + "id": 8, + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "showUnfilled": true + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "memory", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["used_memory", "used_memory_peak", "total_system_memory", "maxmemory", "used_memory_lua"] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "maxmemory": 3, + "total_system_memory": 4, + "used_memory": 0, + "used_memory_lua": 2, + "used_memory_peak": 1 + }, + "renameByName": { + "maxmemory": "Memory Limit", + "total_system_memory": "Total System Memory", + "used_memory": "Used Memory", + "used_memory_lua": "Used Memory, LUA", + "used_memory_peak": "Used Memory, Peak" + } + } + } + ], + "type": "bargauge" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 1 + }, + "id": 19, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "textMode": "auto" + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "server", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Uptime", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["uptime_in_seconds"] + } + } + } + ], + "type": "stat" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 4 + }, + "id": 22, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "textMode": "auto" + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "clients", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Connected Clients", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["connected_clients"] + } + } + } + ], + "type": "stat" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 4 + }, + "id": 6, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "textMode": "auto" + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "server", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Version", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["redis_version"] + } + } + } + ], + "type": "stat" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 7 + }, + "id": 2, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "textMode": "auto" + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "query": "dbsize", + "refId": "A", + "type": "cli" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Number of Keys", + "type": "stat" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 3, + "y": 7 + }, + "id": 36, + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "showUnfilled": true + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "stats", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Keys", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["expired_keys", "evicted_keys"] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "evicted_keys": "Evicted", + "expired_keys": "Expired" + } + } + } + ], + "type": "bargauge" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 10, + "x": 11, + "y": 7 + }, + "id": 38, + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "showUnfilled": true + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "stats", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Keyspace", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["keyspace_hits", "keyspace_misses"] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "keyspace_hits": "Hits", + "keyspace_misses": "Misses" + } + } + } + ], + "type": "bargauge" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 7 + }, + "id": 34, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": ["mean"], + "fields": "/.*/", + "values": true + }, + "textMode": "auto" + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "memory", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Eviction Policy", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["maxmemory_policy"] + } + } + } + ], + "type": "stat" + }, + { + "collapsed": false, + "datasource": "$redis", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 32, + "panels": [], + "repeat": "redis", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "title": "Other: $redis", + "type": "row" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null, + "displayMode": "color-text" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total duration" + }, + "properties": [ + { + "id": "custom.width", + "value": 99 + }, + { + "id": "unit", + "value": "s" + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Client" + }, + "properties": [ + { + "id": "custom.width", + "value": 127 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Idle time" + }, + "properties": [ + { + "id": "custom.width", + "value": 95 + }, + { + "id": "unit", + "value": "s" + }, + { + "id": "decimals", + "value": 0 + } + ] + } + ] + }, + "gridPos": { + "h": 15, + "w": 6, + "x": 0, + "y": 11 + }, + "id": 4, + "options": { + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Idle time" + } + ] + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "clientList", + "query": "", + "refId": "A", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Client connections", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": ["addr", "age", "idle", "cmd"] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "addr": "Client", + "age": "Total duration", + "cmd": "Last command", + "id": "Id", + "idle": "Idle time" + } + } + } + ], + "type": "table" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null, + "displayMode": "color-text" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Calls" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Number of calls" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "custom.width", + "value": 127 + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total Duration" + }, + "properties": [ + { + "id": "custom.width", + "value": 127 + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration per call" + }, + "properties": [ + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Command" + }, + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + } + ] + }, + "gridPos": { + "h": 15, + "w": 7, + "x": 6, + "y": 11 + }, + "id": 41, + "options": { + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Total Duration" + } + ] + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "info", + "query": "", + "refId": "A", + "section": "commandstats", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Command statistics", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "Calls": "Number of calls", + "Command": "", + "Usec": "Total Duration", + "Usec_per_call": "Duration per call" + } + } + } + ], + "type": "table" + }, + { + "datasource": "$redis", + "fieldConfig": { + "defaults": { + "custom": { + "align": null, + "displayMode": "color-text" + }, + "mappings": [ + { + "from": "", + "id": 0, + "operator": "", + "text": "", + "to": "", + "type": 1 + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Unique progressive identifier" + }, + "properties": [ + { + "id": "custom.width", + "value": 205 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Timestamp" + }, + "properties": [ + { + "id": "custom.width", + "value": 145 + }, + { + "id": "unit", + "value": "dateTimeFromNow" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "custom.width", + "value": 92 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Command" + }, + "properties": [ + { + "id": "custom.width", + "value": 1185 + } + ] + } + ] + }, + "gridPos": { + "h": 15, + "w": 11, + "x": 13, + "y": 11 + }, + "id": 11, + "options": { + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "7.1.3", + "scopedVars": { + "redis": { + "selected": true, + "text": "Redis", + "value": "Redis" + } + }, + "targets": [ + { + "command": "slowlogGet", + "query": "", + "refId": "A", + "type": "command" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Slow queries log", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Id": true, + "Timestamp": false + }, + "indexByName": { + "Command": 4, + "Duration": 3, + "Id": 0, + "Timestamp": 1, + "Timestamp * 1000": 2 + }, + "renameByName": { + "Duration": "", + "Id": "Id", + "Timestamp * 1000": "Timestamp" + } + } + } + ], + "type": "table" + } + ], + "refresh": "5s", + "schemaVersion": 26, + "style": "dark", + "tags": ["redis"], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": "Redis", + "value": ["Redis"] + }, + "hide": 0, + "includeAll": true, + "label": "Redis", + "multi": true, + "name": "redis", + "options": [], + "query": "redis-datasource", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": ["10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"] + }, + "timezone": "", + "title": "Redis", + "uid": "RpSjVqWMz", + "version": 17 +}