Skip to content

Instantly share code, notes, and snippets.

@pen-pal
Created December 26, 2023 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pen-pal/bcece3aa1c9dbe296bb3579c723675c2 to your computer and use it in GitHub Desktop.
Save pen-pal/bcece3aa1c9dbe296bb3579c723675c2 to your computer and use it in GitHub Desktop.
redis_realtime_monitoring
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Predefined dashboard to observe any Redis database using Redis Data Source. Requires Grafana 7.1+.",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 12980,
"graphTooltip": 0,
"id": 137,
"links": [],
"liveNow": false,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"unit": "ops"
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "stats",
"streaming": true,
"streamingCapacity": 1000,
"streamingInterval": 1000,
"type": "command"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Ops/sec",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"time",
"instantaneous_ops_per_sec"
]
}
}
}
],
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "ops",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 9,
"x": 12,
"y": 0
},
"hiddenSeries": false,
"id": 3,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "clients",
"streaming": true,
"streamingCapacity": 1000,
"streamingInterval": 1000,
"type": "command"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Clients",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"client_recent_max_input_buffer": true,
"client_recent_max_output_buffer": true
},
"indexByName": {},
"renameByName": {
"blocked_clients": "Pending on a blocking call ",
"clients_in_timeout_table": "Clients in the timeout table",
"connected_clients": "Client connections",
"tracking_clients": "Clients being tracked"
}
}
}
],
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-green",
"value": null
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 0
},
"id": 17,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "/.*/",
"values": true
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "server",
"streaming": true,
"streamingCapacity": 1,
"type": "command"
}
],
"title": "Uptime",
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"uptime_in_seconds"
]
}
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 3
},
"id": 19,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "/.*/",
"values": true
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "server",
"streaming": true,
"streamingCapacity": 1,
"type": "command"
}
],
"title": "Version",
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"redis_version"
]
}
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 6
},
"id": 21,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "/.*/",
"values": true
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "memory",
"streaming": true,
"streamingCapacity": 1,
"type": "command"
}
],
"title": "Eviction Policy",
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"maxmemory_policy"
]
}
}
}
],
"type": "stat"
},
{
"collapsed": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 9
},
"id": 13,
"panels": [],
"targets": [
{
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"refId": "A"
}
],
"title": "Statistics",
"type": "row"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"unit": "decbytes"
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
"y": 10
},
"hiddenSeries": false,
"id": 7,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "memory",
"streaming": true,
"streamingCapacity": 1000,
"streamingInterval": 1000,
"type": "command"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Memory",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"time",
"used_memory",
"used_memory_rss",
"used_memory_peak",
"total_system_memory",
"used_memory_lua",
"maxmemory"
]
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"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",
"used_memory_rss": "Used Memory, RSS"
}
}
}
],
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"unit": "KBs"
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
"y": 10
},
"hiddenSeries": false,
"id": 5,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": false,
"min": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "stats",
"streaming": true,
"streamingCapacity": 1000,
"streamingInterval": 1000,
"type": "command"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Network",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"instantaneous_input_kbps",
"instantaneous_output_kbps",
"time"
]
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"instantaneous_input_kbps": "Input",
"instantaneous_output_kbps": "Output"
}
}
}
],
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "KBs",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 20
},
"hiddenSeries": false,
"id": 9,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"command": "",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "dbsize",
"refId": "A",
"streaming": true,
"streamingCapacity": 1000,
"streamingInterval": 1000,
"type": "cli"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Number of Keys",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"logBase": 1,
"min": "0",
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 20
},
"hiddenSeries": false,
"id": 11,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": false,
"min": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"command": "info",
"datasource": {
"type": "redis-datasource",
"uid": "d3453f9b-d2b2-4bd2-ae31-ab2fb7ebc946"
},
"query": "",
"refId": "A",
"section": "stats",
"streaming": true,
"streamingCapacity": 1000,
"streamingInterval": 1000,
"type": "command"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Keys Statistics",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"expired_keys",
"evicted_keys",
"time"
]
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"evicted_keys": "Evicted Keys",
"expired_keys": "Expired Keys"
}
}
}
],
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
}
],
"refresh": "",
"schemaVersion": 38,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Redis (Real-time streaming)",
"uid": "_SGxCBNGk",
"version": 2,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment