{ "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" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 69, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 14, "x": 0, "y": 0 }, "id": 13, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.1.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "exemplar": true, "expr": "redis_memory_used_bytes{cluster=~\"$cluster\"}", "format": "time_series", "interval": "", "legendFormat": "{{service_name}} ", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "exemplar": true, "expr": "redis_memory_max_bytes{cluster=~\"$cluster\"}", "format": "time_series", "hide": false, "interval": "", "legendFormat": "{{service_name}} ", "range": true, "refId": "B" } ], "title": "集羣節點內存", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 14, "y": 0 }, "id": 12, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "8.3.10", "targets": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "exemplar": true, "expr": "sum(redis_db_keys{cluster=~\"$cluster\",service_name=~\"$master\"}) by (cluster)", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "總keys", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 5, "x": 0, "y": 8 }, "id": 6, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.1.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "exemplar": false, "expr": "count(redis_instance_info{cluster=~\"$cluster\"})", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "A" } ], "title": "存活總節點", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 5, "x": 5, "y": 8 }, "id": 2, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.1.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "exemplar": false, "expr": "count(redis_instance_info{cluster=~\"$cluster\",role=~\"master\"})", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "A" } ], "title": "存活主節點", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 4, "x": 10, "y": 8 }, "id": 4, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.1.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "exemplar": false, "expr": "count(redis_instance_info{cluster=~\"$cluster\",role=\"slave\"})", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "A" } ], "title": "存活從節點", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 10, "x": 14, "y": 8 }, "id": 8, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "8.3.10", "targets": [ { "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "exemplar": true, "expr": "ceil(sum(rate(redis_commands_processed_total{cluster=~\"$cluster\",service_name=~\"$master\"}[$interval])) by (cluster))", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "集羣QPS", "type": "timeseries" } ], "refresh": "", "schemaVersion": 37, "style": "dark", "tags": [], "templating": { "list": [ { "current": { "selected": false, "text": "redis_cluster", "value": "redis_cluster" }, "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "definition": "label_values(redis_instance_info,cluster)", "description": "", "hide": 0, "includeAll": false, "multi": false, "name": "cluster", "options": [], "query": { "query": "label_values(redis_instance_info,cluster)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "auto": false, "auto_count": 30, "auto_min": "10s", "current": { "selected": false, "text": "1m", "value": "1m" }, "hide": 2, "label": "", "name": "interval", "options": [ { "selected": true, "text": "1m", "value": "1m" }, { "selected": false, "text": "10m", "value": "10m" }, { "selected": false, "text": "30m", "value": "30m" }, { "selected": false, "text": "1h", "value": "1h" }, { "selected": false, "text": "6h", "value": "6h" }, { "selected": false, "text": "12h", "value": "12h" }, { "selected": false, "text": "1d", "value": "1d" }, { "selected": false, "text": "7d", "value": "7d" }, { "selected": false, "text": "14d", "value": "14d" }, { "selected": false, "text": "30d", "value": "30d" } ], "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d", "refresh": 2, "skipUrlSync": false, "type": "interval" }, { "current": { "selected": false, "text": "redis_01_37000", "value": "redis_01_37000" }, "datasource": { "type": "prometheus", "uid": "PA58DA793C7250F1B" }, "definition": "label_values(redis_instance_info{cluster=~\"$cluster\",role=\"master\"},service_name)", "hide": 2, "includeAll": false, "label": "master", "multi": false, "name": "master", "options": [], "query": { "query": "label_values(redis_instance_info{cluster=~\"$cluster\",role=\"master\"},service_name)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "redis_cluster", "uid": "EcRqlB7Vz", "version": 8, "weekStart": "" }