From 725afc7764e7f579dbff82704bf36dbae29e64ef Mon Sep 17 00:00:00 2001 From: Zhaoxinxin <107842350+Liam-Zhao@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:46:46 +0800 Subject: [PATCH] feat: manager monitoring add job (#27) Signed-off-by: zhaoxinxin <1186037180@qq.com> --- grafana/dashboards/client.json | 617 ++++++++++++++++++++++---- grafana/dashboards/manager.json | 434 ++++++++++++++++-- grafana/dashboards/seed-client.json | 652 +++++++++++++++++++++++----- 3 files changed, 1499 insertions(+), 204 deletions(-) diff --git a/grafana/dashboards/client.json b/grafana/dashboards/client.json index f778b96..f7b595a 100644 --- a/grafana/dashboards/client.json +++ b/grafana/dashboards/client.json @@ -1263,6 +1263,471 @@ "x": 0, "y": 45 }, + "id": 110, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "(sum(rate(dragonfly_client_proxy_request_total{namespace=~\"$namespace\"}[$interval])) -\nsum(rate(dragonfly_client_proxy_request_failure_total{namespace=~\"$namespace\"}[$interval])))\n/ \nsum(rate(dragonfly_client_proxy_request_total{namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request Success Rate", + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#1f78c1", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 18, + "x": 6, + "y": 45 + }, + "id": 111, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_client_proxy_request_total{namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request QPS", + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 49 + }, + "id": 112, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_client_proxy_request_total{namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "interval": "60", + "legendFormat": "total", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 57 + }, + "id": 113, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(dragonfly_client_proxy_request_total{namespace=~\"$namespace\"}[$interval])", + "instant": false, + "legendFormat": "{{instance}}", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request(instance)", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 57 + }, + "id": 114, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(dragonfly_client_proxy_request_failure_total{namespace=~\"$namespace\"}[$interval])", + "instant": false, + "interval": "60", + "legendFormat": "{{instance}}", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request Failed(instance)", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "#EAB839", + "value": 95 + }, + { + "color": "red", + "value": 99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 65 + }, "id": 107, "options": { "colorMode": "background", @@ -1296,7 +1761,7 @@ "refId": "A" } ], - "title": "Download Task Success Rate", + "title": "Backend Request Success Rate", "type": "stat" }, { @@ -1333,7 +1798,7 @@ "h": 4, "w": 18, "x": 6, - "y": 45 + "y": 65 }, "id": 108, "options": { @@ -1437,7 +1902,7 @@ "h": 8, "w": 24, "x": 0, - "y": 49 + "y": 69 }, "id": 109, "options": { @@ -1505,7 +1970,7 @@ "h": 1, "w": 24, "x": 0, - "y": 57 + "y": 77 }, "id": 48, "panels": [], @@ -1559,7 +2024,7 @@ "h": 4, "w": 6, "x": 0, - "y": 58 + "y": 78 }, "id": 59, "maxDataPoints": 100, @@ -1645,7 +2110,7 @@ "h": 4, "w": 18, "x": 6, - "y": 58 + "y": 78 }, "id": 60, "maxDataPoints": 100, @@ -1753,7 +2218,7 @@ "h": 8, "w": 12, "x": 0, - "y": 62 + "y": 82 }, "id": 61, "options": { @@ -1857,7 +2322,7 @@ "h": 8, "w": 12, "x": 12, - "y": 62 + "y": 82 }, "id": 97, "options": { @@ -1901,7 +2366,7 @@ "h": 1, "w": 24, "x": 0, - "y": 70 + "y": 90 }, "id": 75, "panels": [], @@ -1977,7 +2442,7 @@ "h": 7, "w": 12, "x": 0, - "y": 71 + "y": 91 }, "id": 76, "options": { @@ -2107,7 +2572,7 @@ "h": 7, "w": 12, "x": 12, - "y": 71 + "y": 91 }, "id": 78, "options": { @@ -2237,7 +2702,7 @@ "h": 7, "w": 12, "x": 0, - "y": 78 + "y": 98 }, "id": 79, "options": { @@ -2367,7 +2832,7 @@ "h": 7, "w": 12, "x": 12, - "y": 78 + "y": 98 }, "id": 80, "options": { @@ -2497,7 +2962,7 @@ "h": 7, "w": 12, "x": 0, - "y": 85 + "y": 105 }, "id": 81, "options": { @@ -2627,7 +3092,7 @@ "h": 7, "w": 12, "x": 12, - "y": 85 + "y": 105 }, "id": 82, "options": { @@ -2757,7 +3222,7 @@ "h": 7, "w": 12, "x": 0, - "y": 92 + "y": 112 }, "id": 83, "options": { @@ -2887,7 +3352,7 @@ "h": 7, "w": 12, "x": 12, - "y": 92 + "y": 112 }, "id": 84, "options": { @@ -3017,7 +3482,7 @@ "h": 7, "w": 12, "x": 0, - "y": 99 + "y": 119 }, "id": 85, "options": { @@ -3147,7 +3612,7 @@ "h": 7, "w": 12, "x": 12, - "y": 99 + "y": 119 }, "id": 86, "options": { @@ -3277,7 +3742,7 @@ "h": 7, "w": 12, "x": 0, - "y": 106 + "y": 126 }, "id": 87, "options": { @@ -3407,7 +3872,7 @@ "h": 7, "w": 12, "x": 12, - "y": 106 + "y": 126 }, "id": 88, "options": { @@ -3537,7 +4002,7 @@ "h": 7, "w": 12, "x": 0, - "y": 113 + "y": 133 }, "id": 89, "options": { @@ -3667,7 +4132,7 @@ "h": 7, "w": 12, "x": 12, - "y": 113 + "y": 133 }, "id": 90, "options": { @@ -3797,7 +4262,7 @@ "h": 7, "w": 12, "x": 0, - "y": 120 + "y": 140 }, "id": 91, "options": { @@ -3927,7 +4392,7 @@ "h": 7, "w": 12, "x": 12, - "y": 120 + "y": 140 }, "id": 92, "options": { @@ -4057,7 +4522,7 @@ "h": 7, "w": 12, "x": 0, - "y": 127 + "y": 147 }, "id": 93, "options": { @@ -4187,7 +4652,7 @@ "h": 7, "w": 12, "x": 12, - "y": 127 + "y": 147 }, "id": 94, "options": { @@ -4317,7 +4782,7 @@ "h": 7, "w": 12, "x": 0, - "y": 134 + "y": 154 }, "id": 95, "options": { @@ -4447,7 +4912,7 @@ "h": 7, "w": 12, "x": 12, - "y": 134 + "y": 154 }, "id": 96, "options": { @@ -4514,7 +4979,7 @@ "h": 1, "w": 24, "x": 0, - "y": 141 + "y": 161 }, "id": 106, "panels": [], @@ -4548,7 +5013,7 @@ "h": 9, "w": 4, "x": 0, - "y": 142 + "y": 162 }, "id": 105, "options": { @@ -4583,7 +5048,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})", + "expr": "topk(10,sum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\",container=\"client\"}))", "instant": false, "legendFormat": "Usage Space", "range": true, @@ -4595,7 +5060,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(dragonfly_client_disk_space_total{namespace=~\"$namespace\"}) -\nsum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})", + "expr": "topk(10,sum(dragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"}-\ndragonfly_client_disk_usage_space_total{namespace=~\"$namespace\",container=\"client\"}))", "hide": false, "instant": false, "legendFormat": "Free Space", @@ -4603,7 +5068,7 @@ "refId": "B" } ], - "title": "Disk Usage Space", + "title": "Disk Usage Space Total", "type": "piechart" }, { @@ -4618,22 +5083,29 @@ "mode": "thresholds" }, "custom": { - "align": "center", + "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 0.9 } ] - } + }, + "unit": "percentunit" }, "overrides": [ { @@ -4682,6 +5154,14 @@ "id": "unit", "value": "percentunit" }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge", + "valueDisplayMode": "color" + } + }, { "id": "min", "value": 0 @@ -4690,12 +5170,6 @@ "id": "max", "value": 1 }, - { - "id": "custom.cellOptions", - "value": { - "type": "gauge" - } - }, { "id": "thresholds", "value": { @@ -4707,11 +5181,11 @@ }, { "color": "#EAB839", - "value": 0.7 + "value": 0.85 }, { "color": "red", - "value": 0.85 + "value": 0.95 } ] } @@ -4724,7 +5198,7 @@ "h": 9, "w": 20, "x": 4, - "y": 142 + "y": 162 }, "id": 104, "options": { @@ -4737,8 +5211,7 @@ ], "show": false }, - "showHeader": true, - "sortBy": [] + "showHeader": true }, "pluginVersion": "11.2.0", "targets": [ @@ -4749,7 +5222,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "topk(10,dragonfly_client_disk_space_total{namespace=~\"$namespace\"})", + "expr": "topk(10,dragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"})", "format": "table", "instant": true, "legendFormat": "{{instance}}", @@ -4763,7 +5236,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "topk(10,dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})", + "expr": "topk(10,dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\",container=\"client\"})", "format": "table", "hide": false, "instant": true, @@ -4776,38 +5249,30 @@ "type": "prometheus", "uid": "prometheus" }, - "disableTextWrap": false, "editorMode": "code", "exemplar": false, - "expr": "topk(10, dragonfly_client_disk_space_total{namespace=~\"$namespace\"}) - topk(10, dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})", + "expr": "topk(10,dragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"} - dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})", "format": "table", - "fullMetaSearch": false, "hide": false, - "includeNullMetadata": true, "instant": true, "legendFormat": "{{instance}}", "range": false, - "refId": "C", - "useBackend": false + "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "disableTextWrap": false, "editorMode": "code", "exemplar": false, - "expr": "topk(10, dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"}) / topk(10, dragonfly_client_disk_space_total{namespace=~\"$namespace\"})", + "expr": "topk(10,dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\",container=\"client\"} /\ndragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"})", "format": "table", - "fullMetaSearch": false, "hide": false, - "includeNullMetadata": true, "instant": true, "legendFormat": "{{instance}}", "range": false, - "refId": "D", - "useBackend": false + "refId": "D" } ], "title": "Disk Usage Space Top 10", @@ -4817,11 +5282,11 @@ "options": { "include": { "names": [ + "instance", "Value #A", "Value #B", "Value #C", - "Value #D", - "instance" + "Value #D" ] } } @@ -4841,7 +5306,7 @@ "Value #B": "Usage Space", "Value #C": "Free Space", "Value #D": "Usage Percentage", - "instance": "Instance" + "instance": "" } } } @@ -4854,7 +5319,7 @@ "h": 1, "w": 24, "x": 0, - "y": 151 + "y": 171 }, "id": 101, "panels": [], @@ -4889,7 +5354,7 @@ "h": 10, "w": 24, "x": 0, - "y": 152 + "y": 172 }, "id": 102, "options": { @@ -4957,7 +5422,7 @@ "h": 10, "w": 24, "x": 0, - "y": 162 + "y": 182 }, "id": 103, "options": { @@ -5008,7 +5473,7 @@ "h": 1, "w": 24, "x": 0, - "y": 172 + "y": 192 }, "id": 50, "panels": [], @@ -5081,7 +5546,7 @@ "h": 8, "w": 12, "x": 0, - "y": 173 + "y": 193 }, "id": 99, "options": { @@ -5185,7 +5650,7 @@ "h": 8, "w": 12, "x": 12, - "y": 173 + "y": 193 }, "id": 98, "options": { @@ -5285,7 +5750,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -5301,7 +5767,7 @@ "h": 8, "w": 12, "x": 0, - "y": 181 + "y": 201 }, "id": 62, "options": { @@ -5388,7 +5854,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -5404,7 +5871,7 @@ "h": 8, "w": 12, "x": 12, - "y": 181 + "y": 201 }, "id": 100, "options": { @@ -5584,6 +6051,6 @@ "timezone": "", "title": "Client", "uid": "UtXpSprnk", - "version": 3, + "version": 13, "weekStart": "" } diff --git a/grafana/dashboards/manager.json b/grafana/dashboards/manager.json index c10f0bc..def65b6 100644 --- a/grafana/dashboards/manager.json +++ b/grafana/dashboards/manager.json @@ -26,7 +26,7 @@ "fiscalYearStartMonth": 0, "gnetId": 15945, "graphTooltip": 0, - "id": 30, + "id": 28, "links": [], "liveNow": false, "panels": [ @@ -175,8 +175,8 @@ "overrides": [] }, "gridPos": { - "h": 5, - "w": 12, + "h": 4, + "w": 6, "x": 0, "y": 11 }, @@ -196,6 +196,7 @@ "values": false }, "showPercentChange": false, + "text": {}, "textMode": "auto", "wideLayout": true }, @@ -260,9 +261,9 @@ "overrides": [] }, "gridPos": { - "h": 5, - "w": 12, - "x": 12, + "h": 4, + "w": 18, + "x": 6, "y": 11 }, "id": 14, @@ -391,7 +392,7 @@ "h": 9, "w": 24, "x": 0, - "y": 16 + "y": 15 }, "id": 26, "options": { @@ -475,7 +476,7 @@ "h": 4, "w": 6, "x": 0, - "y": 25 + "y": 24 }, "id": 57, "maxDataPoints": 100, @@ -560,7 +561,7 @@ "h": 4, "w": 18, "x": 6, - "y": 25 + "y": 24 }, "id": 59, "maxDataPoints": 100, @@ -650,7 +651,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -666,7 +668,7 @@ "h": 8, "w": 12, "x": 0, - "y": 29 + "y": 28 }, "id": 61, "options": { @@ -749,7 +751,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -765,7 +768,7 @@ "h": 8, "w": 12, "x": 12, - "y": 29 + "y": 28 }, "id": 63, "options": { @@ -809,13 +812,374 @@ "h": 1, "w": 24, "x": 0, - "y": 37 + "y": 36 }, "id": 46, "panels": [], "title": "REST", "type": "row" }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 37 + }, + "id": 64, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_manager_create_job_success_total{namespace=~\"$namespace\"}[$interval])) /\nsum(rate(dragonfly_manager_create_job_total{namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Create Job Success Rate", + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#1f78c1", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 18, + "x": 6, + "y": 37 + }, + "id": 65, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_manager_create_job_total{namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Create Job QPS", + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 41 + }, + "id": 66, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_manager_create_job_total{namespace=~\"$namespace\"}[$interval]))by(name)", + "instant": false, + "interval": "60", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Create Job", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 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": 12, + "x": 12, + "y": 41 + }, + "id": 67, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_manager_create_job_total{namespace=~\"$namespace\"}[$interval]))by(name) - \nsum(rate(dragonfly_manager_create_job_success_total{namespace=~\"$namespace\"}[$interval]))by(name) ", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Create Job Failed", + "type": "timeseries" + }, { "datasource": { "default": true, @@ -842,7 +1206,8 @@ "mode": "absolute", "steps": [ { - "color": "#299c46" + "color": "#299c46", + "value": null }, { "color": "rgba(237, 129, 40, 0.89)", @@ -862,7 +1227,7 @@ "h": 5, "w": 12, "x": 0, - "y": 38 + "y": 49 }, "id": 36, "maxDataPoints": 100, @@ -930,7 +1295,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -946,7 +1312,7 @@ "h": 5, "w": 12, "x": 12, - "y": 38 + "y": 49 }, "id": 38, "maxDataPoints": 100, @@ -1036,7 +1402,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1073,7 +1440,7 @@ "h": 7, "w": 12, "x": 0, - "y": 43 + "y": 54 }, "id": 40, "options": { @@ -1160,7 +1527,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1176,7 +1544,7 @@ "h": 7, "w": 12, "x": 12, - "y": 43 + "y": 54 }, "id": 42, "options": { @@ -1220,7 +1588,7 @@ "h": 1, "w": 24, "x": 0, - "y": 50 + "y": 61 }, "id": 48, "panels": [], @@ -1276,7 +1644,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1292,7 +1661,7 @@ "h": 8, "w": 12, "x": 0, - "y": 51 + "y": 62 }, "id": 32, "options": { @@ -1381,7 +1750,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1397,7 +1767,7 @@ "h": 8, "w": 12, "x": 12, - "y": 51 + "y": 62 }, "id": 30, "options": { @@ -1513,7 +1883,7 @@ "h": 6, "w": 12, "x": 0, - "y": 59 + "y": 70 }, "id": 28, "options": { @@ -1646,7 +2016,7 @@ "h": 6, "w": 12, "x": 12, - "y": 59 + "y": 70 }, "id": 34, "options": { @@ -1813,8 +2183,8 @@ { "current": { "selected": false, - "text": "cluster-a", - "value": "cluster-a" + "text": "dragonfly-system", + "value": "dragonfly-system" }, "datasource": { "type": "prometheus", @@ -1872,6 +2242,6 @@ "timezone": "", "title": "Manager", "uid": "TL-e3c9nz", - "version": 6, + "version": 14, "weekStart": "" } diff --git a/grafana/dashboards/seed-client.json b/grafana/dashboards/seed-client.json index d352498..a58e18b 100644 --- a/grafana/dashboards/seed-client.json +++ b/grafana/dashboards/seed-client.json @@ -26,7 +26,7 @@ "fiscalYearStartMonth": 0, "gnetId": 21054, "graphTooltip": 0, - "id": 28, + "id": 30, "links": [], "liveNow": false, "panels": [ @@ -1263,6 +1263,472 @@ "x": 0, "y": 45 }, + "id": 110, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "(sum(rate(dragonfly_client_proxy_request_total{container=\"seed-client\",namespace=~\"$namespace\"}[$interval])) -\nsum(rate(dragonfly_client_proxy_request_failure_total{container=\"seed-client\",namespace=~\"$namespace\"}[$interval])))\n/ \nsum(rate(dragonfly_client_proxy_request_total{container=\"seed-client\",namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request Success Rate", + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#1f78c1", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 18, + "x": 6, + "y": 45 + }, + "id": 111, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_client_proxy_request_total{container=\"seed-client\",namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request QPS", + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 49 + }, + "id": 112, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "sum(rate(dragonfly_client_proxy_request_total{container=\"seed-client\", namespace=~\"$namespace\"}[$interval]))", + "instant": false, + "interval": "60", + "legendFormat": "total", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 58 + }, + "id": 113, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(dragonfly_client_proxy_request_total{container=\"seed-client\", namespace=~\"$namespace\"}[$interval])", + "instant": false, + "interval": "60", + "legendFormat": "{{instance}}", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request(instance)", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 58 + }, + "id": 114, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(dragonfly_client_proxy_request_failure_total{container=\"seed-client\",namespace=~\"$namespace\"}[$interval])", + "instant": false, + "interval": "60", + "legendFormat": "{{instance}}", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Request Failed(instance)", + "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "#EAB839", + "value": 95 + }, + { + "color": "red", + "value": 99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 66 + }, "id": 104, "options": { "colorMode": "background", @@ -1333,7 +1799,7 @@ "h": 4, "w": 18, "x": 6, - "y": 45 + "y": 66 }, "id": 106, "options": { @@ -1437,7 +1903,7 @@ "h": 8, "w": 24, "x": 0, - "y": 49 + "y": 70 }, "id": 105, "options": { @@ -1505,7 +1971,7 @@ "h": 1, "w": 24, "x": 0, - "y": 57 + "y": 78 }, "id": 48, "panels": [], @@ -1559,7 +2025,7 @@ "h": 4, "w": 6, "x": 0, - "y": 58 + "y": 79 }, "id": 59, "maxDataPoints": 100, @@ -1645,7 +2111,7 @@ "h": 4, "w": 18, "x": 6, - "y": 58 + "y": 79 }, "id": 60, "maxDataPoints": 100, @@ -1716,7 +2182,7 @@ }, "insertNulls": false, "lineInterpolation": "linear", - "lineWidth": 2, + "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -1753,7 +2219,7 @@ "h": 8, "w": 12, "x": 0, - "y": 62 + "y": 83 }, "id": 61, "options": { @@ -1857,7 +2323,7 @@ "h": 8, "w": 12, "x": 12, - "y": 62 + "y": 83 }, "id": 97, "options": { @@ -1901,7 +2367,7 @@ "h": 1, "w": 24, "x": 0, - "y": 70 + "y": 91 }, "id": 75, "panels": [], @@ -1977,7 +2443,7 @@ "h": 7, "w": 12, "x": 0, - "y": 71 + "y": 92 }, "id": 76, "options": { @@ -2107,7 +2573,7 @@ "h": 7, "w": 12, "x": 12, - "y": 71 + "y": 92 }, "id": 78, "options": { @@ -2236,7 +2702,7 @@ "h": 7, "w": 12, "x": 0, - "y": 78 + "y": 99 }, "id": 79, "options": { @@ -2366,7 +2832,7 @@ "h": 7, "w": 12, "x": 12, - "y": 78 + "y": 99 }, "id": 80, "options": { @@ -2496,7 +2962,7 @@ "h": 7, "w": 12, "x": 0, - "y": 85 + "y": 106 }, "id": 81, "options": { @@ -2626,7 +3092,7 @@ "h": 7, "w": 12, "x": 12, - "y": 85 + "y": 106 }, "id": 82, "options": { @@ -2756,7 +3222,7 @@ "h": 7, "w": 12, "x": 0, - "y": 92 + "y": 113 }, "id": 83, "options": { @@ -2886,7 +3352,7 @@ "h": 7, "w": 12, "x": 12, - "y": 92 + "y": 113 }, "id": 84, "options": { @@ -3016,7 +3482,7 @@ "h": 7, "w": 12, "x": 0, - "y": 99 + "y": 120 }, "id": 85, "options": { @@ -3146,7 +3612,7 @@ "h": 7, "w": 12, "x": 12, - "y": 99 + "y": 120 }, "id": 86, "options": { @@ -3276,7 +3742,7 @@ "h": 7, "w": 12, "x": 0, - "y": 106 + "y": 127 }, "id": 87, "options": { @@ -3406,7 +3872,7 @@ "h": 7, "w": 12, "x": 12, - "y": 106 + "y": 127 }, "id": 88, "options": { @@ -3536,7 +4002,7 @@ "h": 7, "w": 12, "x": 0, - "y": 113 + "y": 134 }, "id": 89, "options": { @@ -3666,7 +4132,7 @@ "h": 7, "w": 12, "x": 12, - "y": 113 + "y": 134 }, "id": 90, "options": { @@ -3796,7 +4262,7 @@ "h": 7, "w": 12, "x": 0, - "y": 120 + "y": 141 }, "id": 91, "options": { @@ -3926,7 +4392,7 @@ "h": 7, "w": 12, "x": 12, - "y": 120 + "y": 141 }, "id": 92, "options": { @@ -4056,7 +4522,7 @@ "h": 7, "w": 12, "x": 0, - "y": 127 + "y": 148 }, "id": 93, "options": { @@ -4186,7 +4652,7 @@ "h": 7, "w": 12, "x": 12, - "y": 127 + "y": 148 }, "id": 94, "options": { @@ -4316,7 +4782,7 @@ "h": 7, "w": 12, "x": 0, - "y": 134 + "y": 155 }, "id": 95, "options": { @@ -4446,7 +4912,7 @@ "h": 7, "w": 12, "x": 12, - "y": 134 + "y": 155 }, "id": 96, "options": { @@ -4513,7 +4979,7 @@ "h": 1, "w": 24, "x": 0, - "y": 141 + "y": 162 }, "id": 107, "panels": [], @@ -4547,7 +5013,7 @@ "h": 9, "w": 4, "x": 0, - "y": 142 + "y": 163 }, "id": 108, "options": { @@ -4594,7 +5060,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(dragonfly_client_disk_space_total{container=\"seed-client\",namespace=~\"$namespace\"}) - \nsum(dragonfly_client_disk_usage_space_total{container=\"seed-client\",namespace=~\"$namespace\"})", + "expr": "sum(dragonfly_client_disk_space_total{container=\"seed-client\",namespace=~\"$namespace\"}-\ndragonfly_client_disk_usage_space_total{container=\"seed-client\",namespace=~\"$namespace\"})", "hide": false, "instant": false, "legendFormat": "Free Space", @@ -4602,7 +5068,7 @@ "refId": "B" } ], - "title": "Disk Usage Space", + "title": "Disk Usage Space Total", "type": "piechart" }, { @@ -4617,33 +5083,49 @@ "mode": "thresholds" }, "custom": { - "align": "center", + "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 0.9 } ] - } + }, + "unit": "percentunit" }, "overrides": [ { "matcher": { "id": "byName", - "options": "Usage Space" + "options": "Space" }, "properties": [ { - "id": "custom.hidden" - }, + "id": "unit", + "value": "bytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Usage Space" + }, + "properties": [ { "id": "unit", "value": "bytes" @@ -4653,7 +5135,7 @@ { "matcher": { "id": "byName", - "options": "Space" + "options": "Free Space" }, "properties": [ { @@ -4675,9 +5157,8 @@ { "id": "custom.cellOptions", "value": { - "mode": "gradient", "type": "gauge", - "valueDisplayMode": "text" + "valueDisplayMode": "color" } }, { @@ -4699,28 +5180,16 @@ }, { "color": "#EAB839", - "value": 0.7 + "value": 0.45 }, { "color": "red", - "value": 0.85 + "value": 0.95 } ] } } ] - }, - { - "matcher": { - "id": "byName", - "options": "Free Space" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - } - ] } ] }, @@ -4728,9 +5197,9 @@ "h": 9, "w": 20, "x": 4, - "y": 142 + "y": 163 }, - "id": 110, + "id": 109, "options": { "cellHeight": "sm", "footer": { @@ -4741,13 +5210,8 @@ ], "show": false }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Value #A" - } - ] + "frameIndex": 1, + "showHeader": true }, "pluginVersion": "11.2.0", "targets": [ @@ -4758,7 +5222,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "dragonfly_client_disk_usage_space_total{container=\"seed-client\",namespace=~\"$namespace\"}", + "expr": "dragonfly_client_disk_space_total{container=\"seed-client\",namespace=~\"$namespace\"}", "format": "table", "instant": true, "legendFormat": "{{instance}}", @@ -4772,11 +5236,10 @@ }, "editorMode": "code", "exemplar": false, - "expr": "dragonfly_client_disk_space_total{container=\"seed-client\",namespace=~\"$namespace\"}", + "expr": "dragonfly_client_disk_usage_space_total{container=\"seed-client\",namespace=~\"$namespace\"}", "format": "table", "hide": false, "instant": true, - "interval": "", "legendFormat": "{{instance}}", "range": false, "refId": "B" @@ -4788,13 +5251,13 @@ }, "editorMode": "code", "exemplar": false, - "expr": "dragonfly_client_disk_space_total{container=\"seed-client\",namespace=~\"$namespace\"} - \ndragonfly_client_disk_usage_space_total{container=\"seed-client\",namespace=~\"$namespace\"}", + "expr": "dragonfly_client_disk_space_total{container=\"seed-client\",namespace=~\"$namespace\"} - dragonfly_client_disk_usage_space_total{container=\"seed-client\",namespace=~\"$namespace\"}", "format": "table", "hide": false, "instant": true, "legendFormat": "{{instance}}", "range": false, - "refId": "D" + "refId": "C" }, { "datasource": { @@ -4809,7 +5272,7 @@ "instant": true, "legendFormat": "{{instance}}", "range": false, - "refId": "C" + "refId": "D" } ], "title": "Disk Usage Space(Instance)", @@ -4822,8 +5285,8 @@ "instance", "Value #A", "Value #B", - "Value #D", - "Value #C" + "Value #C", + "Value #D" ] } } @@ -4837,19 +5300,12 @@ "options": { "excludeByName": {}, "includeByName": {}, - "indexByName": { - "Value #A": 2, - "Value #B": 1, - "Value #C": 4, - "Value #D": 3, - "instance": 0 - }, + "indexByName": {}, "renameByName": { - "Value #A": "Usage Space", - "Value #B": "Space", - "Value #C": "Usage Percentage", - "Value #D": "Free Space", - "instance": "Instance" + "Value #A": "Space", + "Value #B": "Usage Space", + "Value #C": "Free Space", + "Value #D": "Usage Percentage" } } } @@ -4862,7 +5318,7 @@ "h": 1, "w": 24, "x": 0, - "y": 151 + "y": 172 }, "id": 101, "panels": [], @@ -4897,7 +5353,7 @@ "h": 10, "w": 24, "x": 0, - "y": 152 + "y": 173 }, "id": 102, "options": { @@ -4965,7 +5421,7 @@ "h": 10, "w": 24, "x": 0, - "y": 162 + "y": 183 }, "id": 103, "options": { @@ -5016,7 +5472,7 @@ "h": 1, "w": 24, "x": 0, - "y": 172 + "y": 193 }, "id": 50, "panels": [], @@ -5089,7 +5545,7 @@ "h": 8, "w": 12, "x": 0, - "y": 173 + "y": 194 }, "id": 99, "options": { @@ -5193,7 +5649,7 @@ "h": 8, "w": 12, "x": 12, - "y": 173 + "y": 194 }, "id": 98, "options": { @@ -5293,7 +5749,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -5309,7 +5766,7 @@ "h": 8, "w": 12, "x": 0, - "y": 181 + "y": 202 }, "id": 62, "options": { @@ -5396,7 +5853,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -5412,7 +5870,7 @@ "h": 8, "w": 12, "x": 12, - "y": 181 + "y": 202 }, "id": 100, "options": { @@ -5451,7 +5909,7 @@ "type": "timeseries" } ], - "refresh": "1m", + "refresh": "", "schemaVersion": 39, "tags": [], "templating": { @@ -5592,6 +6050,6 @@ "timezone": "", "title": "Seed Client", "uid": "HtXpCprnk", - "version": 2, + "version": 9, "weekStart": "" }