dashboards: add row Caches to single node dasbhoard (#2208)

The new row Caches adds more visibility for cache utilization by VM.
It replaces the old `Cache size` panel.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-02-18 13:40:19 +02:00 committed by GitHub
parent debe75f51c
commit ea86716d06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@
"gnetId": 10229, "gnetId": 10229,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": null,
"iteration": 1644936419482, "iteration": 1645085513510,
"links": [ "links": [
{ {
"icon": "doc", "icon": "doc",
@ -1015,7 +1015,7 @@
"datasource": { "datasource": {
"uid": "$ds" "uid": "$ds"
}, },
"description": "VictoriaMetrics stores various caches in RAM. Memory size for these caches may be limited with -`memory.allowedPercent` flag. Line `max allowed` shows max allowed memory size for cache.", "description": "* `*` - unsupported query path\n* `/write` - insert into VM\n* `/metrics` - query VM system metrics\n* `/query` - query instant values\n* `/query_range` - query over a range of time\n* `/series` - match a certain label set\n* `/label/{}/values` - query a list of label values (variables mostly)",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": []
@ -1031,12 +1031,12 @@
"y": 14 "y": 14
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 33, "id": 35,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
"avg": true, "avg": true,
"current": true, "current": true,
"max": true, "max": false,
"min": false, "min": false,
"show": true, "show": true,
"sort": "current", "sort": "current",
@ -1047,7 +1047,7 @@
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null as zero",
"options": { "options": {
"alertThreshold": true "alertThreshold": true
}, },
@ -1056,39 +1056,27 @@
"pointradius": 2, "pointradius": 2,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [],
{
"alias": "max allowed",
"color": "#C4162A"
}
],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(vm_cache_size_bytes{job=~\"$job\", instance=~\"$instance\"})", "exemplar": false,
"expr": "sum(rate(vm_http_request_errors_total{job=~\"$job\", instance=~\"$instance\"}[$__interval])) by (path) > 0",
"format": "time_series", "format": "time_series",
"hide": false, "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "size", "legendFormat": "{{path}}",
"refId": "A" "refId": "A"
},
{
"expr": "max(vm_allowed_memory_bytes{job=~\"$job\", instance=~\"$instance\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "max allowed",
"refId": "B"
} }
], ],
"thresholds": [], "thresholds": [],
"timeRegions": [], "timeRegions": [],
"title": "Cache size ($instance)", "title": "Requests error rate ($instance)",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
@ -1099,7 +1087,7 @@
}, },
"yaxes": [ "yaxes": [
{ {
"format": "bytes", "format": "short",
"logBase": 1, "logBase": 1,
"min": "0", "min": "0",
"show": true "show": true
@ -1208,6 +1196,7 @@
}, },
"yaxes": [ "yaxes": [
{ {
"$$hashKey": "object:425",
"decimals": 0, "decimals": 0,
"format": "short", "format": "short",
"logBase": 1, "logBase": 1,
@ -1215,6 +1204,7 @@
"show": true "show": true
}, },
{ {
"$$hashKey": "object:426",
"decimals": 0, "decimals": 0,
"format": "short", "format": "short",
"logBase": 1, "logBase": 1,
@ -1226,102 +1216,234 @@
"align": false "align": false
} }
}, },
{ {
"aliasColors": {}, "collapsed": true,
"bars": false, "gridPos": {
"dashLength": 10, "h": 1,
"dashes": false, "w": 24,
"datasource": { "x": 0,
"uid": "$ds" "y": 30
}, },
"description": "* `*` - unsupported query path\n* `/write` - insert into VM\n* `/metrics` - query VM system metrics\n* `/query` - query instant values\n* `/query_range` - query over a range of time\n* `/series` - match a certain label set\n* `/label/{}/values` - query a list of label values (variables mostly)", "id": 92,
"fieldConfig": { "panels": [
"defaults": { {
"links": [] "aliasColors": {},
}, "bars": false,
"overrides": [] "dashLength": 10,
}, "dashes": false,
"fill": 1, "datasource": {
"fillGradient": 0, "type": "prometheus",
"gridPos": { "uid": "$ds"
"h": 8, },
"w": 12, "description": "VictoriaMetrics stores various caches in RAM. Memory size for these caches may be limited with -`memory.allowedPercent` flag. Line `max allowed` shows max allowed memory size for cache.",
"x": 12, "fill": 1,
"y": 22 "fillGradient": 0,
}, "gridPos": {
"hiddenSeries": false, "h": 8,
"id": 35, "w": 24,
"legend": { "x": 0,
"alignAsTable": true, "y": 31
"avg": true, },
"current": true, "hiddenSeries": false,
"max": false, "id": 94,
"min": false, "legend": {
"show": true, "alignAsTable": true,
"sort": "current", "avg": true,
"sortDesc": true, "current": true,
"total": false, "max": false,
"values": true "min": false,
}, "rightSide": true,
"lines": true, "show": true,
"linewidth": 1, "sort": "current",
"links": [], "sortDesc": true,
"nullPointMode": "null as zero", "total": false,
"options": { "values": true
"alertThreshold": true },
}, "lines": true,
"percentage": false, "linewidth": 1,
"pluginVersion": "8.3.5", "nullPointMode": "null",
"pointradius": 2, "options": {
"points": false, "alertThreshold": true
"renderer": "flot", },
"seriesOverrides": [], "percentage": false,
"spaceLength": 10, "pluginVersion": "8.3.5",
"stack": false, "pointradius": 2,
"steppedLine": false, "points": false,
"targets": [ "renderer": "flot",
{ "seriesOverrides": [
"exemplar": true, {
"expr": "sum(rate(vm_http_request_errors_total{job=~\"$job\", instance=~\"$instance\"}[$__interval])) by (path) > 0", "$$hashKey": "object:85",
"format": "time_series", "alias": "max allowed",
"interval": "", "color": "#F2495C",
"intervalFactor": 1, "fill": 0,
"legendFormat": "{{path}}", "stack": false
"refId": "A" }
} ],
], "spaceLength": 10,
"thresholds": [], "stack": false,
"timeRegions": [], "steppedLine": false,
"title": "Requests error rate ($instance)", "targets": [
"tooltip": { {
"shared": true, "datasource": {
"sort": 2, "type": "prometheus",
"value_type": "individual" "uid": "$ds"
}, },
"type": "graph", "exemplar": true,
"xaxis": { "expr": "sum(vm_cache_size_bytes{job=~\"$job\", instance=~\"$instance\"}) by(type)",
"mode": "time", "interval": "",
"show": true, "legendFormat": "{{type}}",
"values": [] "refId": "A"
}, },
"yaxes": [ {
{ "datasource": {
"format": "short", "type": "prometheus",
"logBase": 1, "uid": "$ds"
"min": "0", },
"show": true "exemplar": false,
}, "expr": "sum(vm_allowed_memory_bytes{job=~\"$job\", instance=~\"$instance\"})",
{ "hide": false,
"format": "short", "interval": "",
"logBase": 1, "legendFormat": "max allowed",
"min": "0", "refId": "B"
"show": true }
} ],
], "thresholds": [],
"yaxis": { "timeRegions": [],
"align": false "title": "Cache size ($instance)",
} "tooltip": {
}, "shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:111",
"format": "bytes",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:112",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"description": "Cache hit ratio shows cache efficiency. The higher is hit rate the better.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 39
},
"hiddenSeries": false,
"id": 95,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.5",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:85",
"alias": "max allowed",
"color": "#F2495C",
"fill": 0,
"stack": false
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"exemplar": true,
"expr": "1 - (\n sum(rate(vm_cache_misses_total{job=~\"$job\", instance=~\"$instance\"}[5m])) by (type) /\n sum(rate(vm_cache_requests_total{job=~\"$job\", instance=~\"$instance\"}[5m])) by (type)\n)",
"interval": "",
"legendFormat": "{{type}}",
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Cache hit ratio ($instance)",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:111",
"format": "percentunit",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:112",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
}
],
"title": "Caches",
"type": "row"
},
{ {
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
@ -1331,7 +1453,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 30 "y": 31
}, },
"id": 14, "id": 14,
"panels": [ "panels": [
@ -2431,7 +2553,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 31 "y": 32
}, },
"id": 71, "id": 71,
"panels": [ "panels": [
@ -2456,7 +2578,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 32 "y": 33
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 66, "id": 66,
@ -2559,7 +2681,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 32 "y": 33
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 60, "id": 60,
@ -2654,7 +2776,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 40 "y": 41
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 68, "id": 68,
@ -2761,7 +2883,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 40 "y": 41
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 74, "id": 74,
@ -2858,7 +2980,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 49 "y": 50
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 88, "id": 88,
@ -2953,7 +3075,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 49 "y": 50
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 90, "id": 90,
@ -3039,7 +3161,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 32 "y": 33
}, },
"id": 46, "id": 46,
"panels": [ "panels": [