From c97b2e925994698739fd72f11028eb0865fbbf01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20B=C3=A4ume?= <julian.baeume@open-xchange.com> Date: Fri, 27 Oct 2023 15:15:36 +0200 Subject: [PATCH] Change: Show cache content information on efault ui-mw dashboard Helps to observe state in different cache layers --- .../dashboards/nodejs-ui-mw.json | 370 +++++++++++++++++- 1 file changed, 357 insertions(+), 13 deletions(-) diff --git a/helm/core-ui-middleware/dashboards/nodejs-ui-mw.json b/helm/core-ui-middleware/dashboards/nodejs-ui-mw.json index dc2754f..7d45b1b 100644 --- a/helm/core-ui-middleware/dashboards/nodejs-ui-mw.json +++ b/helm/core-ui-middleware/dashboards/nodejs-ui-mw.json @@ -63,6 +63,19 @@ "links": [], "liveNow": true, "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 18, + "panels": [], + "title": "General", + "type": "row" + }, { "datasource": { "type": "prometheus" @@ -124,7 +137,7 @@ "h": 5, "w": 8, "x": 0, - "y": 0 + "y": 1 }, "id": 14, "options": { @@ -216,7 +229,7 @@ "h": 5, "w": 8, "x": 8, - "y": 0 + "y": 1 }, "id": 15, "options": { @@ -308,7 +321,7 @@ "h": 5, "w": 8, "x": 16, - "y": 0 + "y": 1 }, "id": 16, "options": { @@ -364,7 +377,7 @@ "h": 7, "w": 10, "x": 0, - "y": 5 + "y": 6 }, "hiddenSeries": false, "id": 6, @@ -465,7 +478,7 @@ "h": 7, "w": 9, "x": 10, - "y": 5 + "y": 6 }, "hiddenSeries": false, "id": 8, @@ -581,7 +594,7 @@ "h": 3, "w": 5, "x": 19, - "y": 5 + "y": 6 }, "id": 2, "interval": "", @@ -662,7 +675,7 @@ "h": 4, "w": 5, "x": 19, - "y": 8 + "y": 9 }, "id": 4, "links": [], @@ -713,7 +726,7 @@ "h": 11, "w": 16, "x": 0, - "y": 12 + "y": 13 }, "hiddenSeries": false, "id": 7, @@ -839,7 +852,7 @@ "h": 11, "w": 8, "x": 16, - "y": 12 + "y": 13 }, "hiddenSeries": false, "id": 9, @@ -940,7 +953,7 @@ "h": 8, "w": 8, "x": 0, - "y": 23 + "y": 24 }, "hiddenSeries": false, "id": 10, @@ -1030,7 +1043,7 @@ "h": 8, "w": 8, "x": 8, - "y": 23 + "y": 24 }, "hiddenSeries": false, "id": 11, @@ -1120,7 +1133,7 @@ "h": 8, "w": 8, "x": 16, - "y": 23 + "y": 24 }, "hiddenSeries": false, "id": 12, @@ -1195,6 +1208,337 @@ "yaxis": { "align": false } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 32 + }, + "id": 20, + "panels": [], + "title": "Cache", + "type": "row" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 1000, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 33 + }, + "id": 22, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.4", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "file_cache_size{namespace=\"$namespace\", service=\"$service\", pod=~\"$pod\"} > 0", + "instant": false, + "legendFormat": "{{pod}}", + "range": true, + "refId": "A" + } + ], + "title": "File cache size", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "Version per pod active since", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "dateTimeAsLocal" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 33 + }, + "id": 24, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "center", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "titleSize": 10, + "valueSize": 10 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.4", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by(pod, version) (version_update_event{namespace=\"$namespace\", service=\"$service\", pod=~\"$pod\"}) * 1000", + "instant": true, + "legendFormat": "{{pod}} @ {{version}}", + "range": false, + "refId": "A" + } + ], + "title": "Version changes", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "The number of unique versions in the Redis cache", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 41 + }, + "id": 26, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "9.2.4", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "editorMode": "code", + "expr": "max(redis_version_count_gauge{namespace=\"$namespace\", service=\"$service\"})", + "interval": "", + "legendFormat": "Redis Versions", + "range": true, + "refId": "A" + } + ], + "title": "Versions in Redis", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 0.1, + "axisSoftMin": 0, + "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 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{container=\"main\", endpoint=\"monitoring\", instance=\"10.42.1.64:9090\", job=\"preview-app-core-ui-middleware\", memory_type=\"usedMemoryRSSHuman\", namespace=\"core-ui-middleware-feature-oxui-1354-caches\", pod=\"preview-app-core-ui-middleware-57fbbf5898-hnkfz\", service=\"preview-app-core-ui-middleware\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Current RSS" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 41 + }, + "id": 28, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "editorMode": "code", + "expr": "redis_used_ram{memory_type=\"usedMemoryRSSHuman\", namespace=\"$namespace\", service=\"$service\"}", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(redis_used_ram{memory_type=\"usedMemoryRSSHuman\", namespace=\"$namespace\", service=\"$service\"})", + "hide": false, + "legendFormat": "Maximum RSS", + "range": true, + "refId": "B" + } + ], + "title": "Redis RAM Usage ", + "type": "timeseries" } ], "refresh": "5s", @@ -1308,6 +1652,6 @@ "timezone": "", "title": "App Suite / UI Middleware", "uid": "PTSqcpJWP", - "version": 7, + "version": 12, "weekStart": "" } -- GitLab