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