diff --git a/provisioning/dashboards/home.json b/provisioning/dashboards/home.json index 3dfc69e..bceef4e 100644 --- a/provisioning/dashboards/home.json +++ b/provisioning/dashboards/home.json @@ -2297,7 +2297,7 @@ "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", - "fillOpacity": 50, + "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, @@ -2335,13 +2335,107 @@ } ] }, + "unit": "percent", "unitScale": true }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Recommend Other Backend" + }, + "properties": [ + { + "id": "unit", + "value": "none" + }, + { + "id": "max", + "value": 1 + }, + { + "id": "min", + "value": 0 + }, + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 1, + "text": "Off" + }, + "1": { + "index": 0, + "text": "On" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Show Warning" + }, + "properties": [ + { + "id": "unit", + "value": "none" + }, + { + "id": "min", + "value": 0 + }, + { + "id": "max", + "value": 1 + }, + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "Off" + }, + "1": { + "index": 1, + "text": "On" + } + }, + "type": "value" + } + ] + } + ] + } + ] }, "gridPos": { "h": 8, - "w": 12, + "w": 24, "x": 0, "y": 73 }, @@ -2351,7 +2445,7 @@ "calcs": [], "displayMode": "list", "placement": "bottom", - "showLegend": false + "showLegend": true }, "tooltip": { "mode": "single", @@ -2365,8 +2459,8 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "last_status_app_starts", - "legendFormat": "# App Starts (per Bucket)", + "expr": "load_pct", + "legendFormat": "{{node_type}}", "range": true, "refId": "A" }, @@ -2376,110 +2470,28 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "last_status_past_buckets_avg_cpm", + "expr": "recommend_other_backend", "hide": false, - "legendFormat": "# App Starts (past three weeks)", + "instant": false, + "legendFormat": "Recommend Other Backend", "range": true, "refId": "B" - } - ], - "title": "# App Starts (bucket-wise)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 50, - "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": "bool_on_off", - "unitScale": true }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 73 - }, - "id": 71, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "last_status_warning", - "legendFormat": "Load Warning", + "expr": "warning", + "hide": false, + "instant": false, + "legendFormat": "Show Warning", "range": true, - "refId": "A" + "refId": "C" } ], - "title": "Load Warning active", + "title": "CPU Load per Node Type", "type": "timeseries" } ], @@ -2490,7 +2502,7 @@ "list": [] }, "time": { - "from": "now-30m", + "from": "now-1h", "to": "now" }, "timeRangeUpdatedDuringEditOrView": false,