Skip to content
Snippets Groups Projects
Commit c97b2e92 authored by julian.baeume's avatar julian.baeume :pick:
Browse files

Change: Show cache content information on efault ui-mw dashboard

Helps to observe state in different cache layers
parent d03809c8
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,19 @@ ...@@ -63,6 +63,19 @@
"links": [], "links": [],
"liveNow": true, "liveNow": true,
"panels": [ "panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 18,
"panels": [],
"title": "General",
"type": "row"
},
{ {
"datasource": { "datasource": {
"type": "prometheus" "type": "prometheus"
...@@ -124,7 +137,7 @@ ...@@ -124,7 +137,7 @@
"h": 5, "h": 5,
"w": 8, "w": 8,
"x": 0, "x": 0,
"y": 0 "y": 1
}, },
"id": 14, "id": 14,
"options": { "options": {
...@@ -216,7 +229,7 @@ ...@@ -216,7 +229,7 @@
"h": 5, "h": 5,
"w": 8, "w": 8,
"x": 8, "x": 8,
"y": 0 "y": 1
}, },
"id": 15, "id": 15,
"options": { "options": {
...@@ -308,7 +321,7 @@ ...@@ -308,7 +321,7 @@
"h": 5, "h": 5,
"w": 8, "w": 8,
"x": 16, "x": 16,
"y": 0 "y": 1
}, },
"id": 16, "id": 16,
"options": { "options": {
...@@ -364,7 +377,7 @@ ...@@ -364,7 +377,7 @@
"h": 7, "h": 7,
"w": 10, "w": 10,
"x": 0, "x": 0,
"y": 5 "y": 6
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 6, "id": 6,
...@@ -465,7 +478,7 @@ ...@@ -465,7 +478,7 @@
"h": 7, "h": 7,
"w": 9, "w": 9,
"x": 10, "x": 10,
"y": 5 "y": 6
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 8, "id": 8,
...@@ -581,7 +594,7 @@ ...@@ -581,7 +594,7 @@
"h": 3, "h": 3,
"w": 5, "w": 5,
"x": 19, "x": 19,
"y": 5 "y": 6
}, },
"id": 2, "id": 2,
"interval": "", "interval": "",
...@@ -662,7 +675,7 @@ ...@@ -662,7 +675,7 @@
"h": 4, "h": 4,
"w": 5, "w": 5,
"x": 19, "x": 19,
"y": 8 "y": 9
}, },
"id": 4, "id": 4,
"links": [], "links": [],
...@@ -713,7 +726,7 @@ ...@@ -713,7 +726,7 @@
"h": 11, "h": 11,
"w": 16, "w": 16,
"x": 0, "x": 0,
"y": 12 "y": 13
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 7, "id": 7,
...@@ -839,7 +852,7 @@ ...@@ -839,7 +852,7 @@
"h": 11, "h": 11,
"w": 8, "w": 8,
"x": 16, "x": 16,
"y": 12 "y": 13
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 9, "id": 9,
...@@ -940,7 +953,7 @@ ...@@ -940,7 +953,7 @@
"h": 8, "h": 8,
"w": 8, "w": 8,
"x": 0, "x": 0,
"y": 23 "y": 24
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 10, "id": 10,
...@@ -1030,7 +1043,7 @@ ...@@ -1030,7 +1043,7 @@
"h": 8, "h": 8,
"w": 8, "w": 8,
"x": 8, "x": 8,
"y": 23 "y": 24
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 11, "id": 11,
...@@ -1120,7 +1133,7 @@ ...@@ -1120,7 +1133,7 @@
"h": 8, "h": 8,
"w": 8, "w": 8,
"x": 16, "x": 16,
"y": 23 "y": 24
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 12, "id": 12,
...@@ -1195,6 +1208,337 @@ ...@@ -1195,6 +1208,337 @@
"yaxis": { "yaxis": {
"align": false "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", "refresh": "5s",
...@@ -1308,6 +1652,6 @@ ...@@ -1308,6 +1652,6 @@
"timezone": "", "timezone": "",
"title": "App Suite / UI Middleware", "title": "App Suite / UI Middleware",
"uid": "PTSqcpJWP", "uid": "PTSqcpJWP",
"version": 7, "version": 12,
"weekStart": "" "weekStart": ""
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment