feat: adds min, max, mean for bandwidth

This commit is contained in:
Leon Morten Richter 2024-04-30 12:28:23 +02:00
parent 9387e100f5
commit d133d17c12
No known key found for this signature in database
GPG key ID: 5D82B80298D52893

View file

@ -84,7 +84,8 @@
} }
] ]
}, },
"unit": "none" "unit": "none",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -109,10 +110,12 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "name" "textMode": "name",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -151,7 +154,8 @@
"value": 80 "value": 80
} }
] ]
} },
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -174,9 +178,11 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "name" "showPercentChange": false,
"textMode": "name",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -222,7 +228,8 @@
} }
] ]
}, },
"unit": "none" "unit": "none",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -247,10 +254,12 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "name" "textMode": "name",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -295,7 +304,8 @@
} }
] ]
}, },
"unit": "dtdurations" "unit": "dtdurations",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -320,10 +330,12 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"application": { "application": {
@ -388,7 +400,8 @@
} }
] ]
}, },
"unit": "none" "unit": "none",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -413,10 +426,12 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "name" "textMode": "name",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"application": { "application": {
@ -476,7 +491,8 @@
"value": 1 "value": 1
} }
] ]
} },
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -499,9 +515,11 @@
"fields": "", "fields": "",
"values": true "values": true
}, },
"textMode": "name" "showPercentChange": false,
"textMode": "name",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -541,7 +559,8 @@
} }
] ]
}, },
"unit": "volt" "unit": "volt",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -566,10 +585,12 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "value" "textMode": "value",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"application": { "application": {
@ -628,7 +649,8 @@
"value": 80 "value": 80
} }
] ]
} },
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -651,9 +673,11 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "auto" "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -708,7 +732,8 @@
} }
] ]
}, },
"unit": "celsius" "unit": "celsius",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -720,6 +745,8 @@
}, },
"id": 59, "id": 59,
"options": { "options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@ -730,9 +757,10 @@
}, },
"showThresholdLabels": false, "showThresholdLabels": false,
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto",
"text": {} "text": {}
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -784,7 +812,8 @@
} }
] ]
}, },
"unit": "percent" "unit": "percent",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -799,8 +828,10 @@
"maxDataPoints": 100, "maxDataPoints": 100,
"options": { "options": {
"displayMode": "lcd", "displayMode": "lcd",
"maxVizHeight": 300,
"minVizHeight": 10, "minVizHeight": 10,
"minVizWidth": 0, "minVizWidth": 0,
"namePlacement": "auto",
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@ -810,9 +841,11 @@
"values": false "values": false
}, },
"showUnfilled": true, "showUnfilled": true,
"text": {} "sizing": "auto",
"text": {},
"valueMode": "color"
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"targets": [ "targets": [
{ {
"application": { "application": {
@ -881,7 +914,8 @@
"error": false, "error": false,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": [],
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -915,7 +949,7 @@
}, },
"paceLength": 10, "paceLength": 10,
"percentage": false, "percentage": false,
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1005,7 +1039,8 @@
"error": false, "error": false,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": [],
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1038,7 +1073,7 @@
}, },
"paceLength": 10, "paceLength": 10,
"percentage": false, "percentage": false,
"pluginVersion": "9.3.6", "pluginVersion": "10.3.1",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1166,6 +1201,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -1179,6 +1215,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "smooth", "lineInterpolation": "smooth",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -1210,12 +1247,13 @@
} }
] ]
}, },
"unit": "bps" "unit": "bps",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 8,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 11 "y": 11
@ -1224,9 +1262,13 @@
"links": [], "links": [],
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [
"displayMode": "list", "min",
"placement": "right", "max",
"mean"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true "showLegend": true
}, },
"tooltip": { "tooltip": {
@ -1243,6 +1285,7 @@
"datasource": { "datasource": {
"type": "prometheus" "type": "prometheus"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": " rate(mktxp_interface_rx_byte_total{routerboard_address=\"$node\"}[$__rate_interval]) * 8 != 0", "expr": " rate(mktxp_interface_rx_byte_total{routerboard_address=\"$node\"}[$__rate_interval]) * 8 != 0",
"format": "time_series", "format": "time_series",
@ -1312,6 +1355,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -1325,6 +1369,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
@ -1358,7 +1403,8 @@
} }
] ]
}, },
"unit": "pps" "unit": "pps",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1366,7 +1412,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 18 "y": 19
}, },
"id": 92, "id": 92,
"options": { "options": {
@ -1407,6 +1453,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -1420,6 +1467,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -1450,7 +1498,8 @@
} }
] ]
}, },
"unit": "pps" "unit": "pps",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1458,7 +1507,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 18 "y": 19
}, },
"id": 94, "id": 94,
"options": { "options": {
@ -1494,7 +1543,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 26 "y": 27
}, },
"id": 131, "id": 131,
"panels": [], "panels": [],
@ -1513,6 +1562,7 @@
"seriesBy": "last" "seriesBy": "last"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -1526,6 +1576,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -1556,7 +1607,8 @@
} }
] ]
}, },
"unit": "s" "unit": "s",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1564,7 +1616,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 27 "y": 28
}, },
"id": 129, "id": 129,
"options": { "options": {
@ -1612,6 +1664,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -1625,6 +1678,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -1655,7 +1709,8 @@
} }
] ]
}, },
"unit": "s" "unit": "s",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1663,7 +1718,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 27 "y": 28
}, },
"id": 135, "id": 135,
"options": { "options": {
@ -1706,6 +1761,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -1719,6 +1775,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -1749,7 +1806,8 @@
} }
] ]
}, },
"unit": "percent" "unit": "percent",
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1757,7 +1815,7 @@
"h": 6, "h": 6,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 35 "y": 36
}, },
"id": 133, "id": 133,
"options": { "options": {
@ -1800,7 +1858,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 41 "y": 42
}, },
"id": 2, "id": 2,
"panels": [ "panels": [
@ -1904,7 +1962,9 @@
}, },
"custom": { "custom": {
"align": "center", "align": "center",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -2183,7 +2243,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 42 "y": 43
}, },
"id": 45, "id": 45,
"panels": [ "panels": [
@ -2642,7 +2702,9 @@
"defaults": { "defaults": {
"custom": { "custom": {
"align": "auto", "align": "auto",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -2732,7 +2794,9 @@
}, },
"custom": { "custom": {
"align": "center", "align": "center",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -2926,7 +2990,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 43 "y": 44
}, },
"id": 84, "id": 84,
"panels": [ "panels": [
@ -3757,7 +3821,9 @@
}, },
"custom": { "custom": {
"align": "auto", "align": "auto",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"inspect": false "inspect": false
}, },
"mappings": [], "mappings": [],
@ -3875,7 +3941,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 44 "y": 45
}, },
"id": 90, "id": 90,
"panels": [ "panels": [
@ -4003,7 +4069,9 @@
}, },
"custom": { "custom": {
"align": "center", "align": "center",
"displayMode": "color-text", "cellOptions": {
"type": "color-text"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -4161,7 +4229,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 45 "y": 46
}, },
"id": 29, "id": 29,
"panels": [ "panels": [
@ -4369,7 +4437,9 @@
}, },
"custom": { "custom": {
"align": "center", "align": "center",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -5140,7 +5210,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 46 "y": 47
}, },
"id": 33, "id": 33,
"panels": [ "panels": [
@ -5152,7 +5222,9 @@
"defaults": { "defaults": {
"custom": { "custom": {
"align": "center", "align": "center",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -5287,7 +5359,9 @@
}, },
"custom": { "custom": {
"align": "center", "align": "center",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -5553,7 +5627,9 @@
}, },
"custom": { "custom": {
"align": "auto", "align": "auto",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"inspect": false "inspect": false
}, },
"mappings": [], "mappings": [],
@ -6047,7 +6123,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 47 "y": 48
}, },
"id": 125, "id": 125,
"panels": [ "panels": [
@ -6202,7 +6278,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 48 "y": 49
}, },
"id": 80, "id": 80,
"panels": [ "panels": [
@ -6721,8 +6797,7 @@
} }
], ],
"refresh": "10s", "refresh": "10s",
"schemaVersion": 37, "schemaVersion": 39,
"style": "dark",
"tags": [ "tags": [
"mikrotik", "mikrotik",
"dashboard", "dashboard",