diff --git a/grafana/provisioning/dashboards/monitor.json b/grafana/provisioning/dashboards/monitor.json index 59f1c2f..7208779 100644 --- a/grafana/provisioning/dashboards/monitor.json +++ b/grafana/provisioning/dashboards/monitor.json @@ -767,7 +767,8 @@ }, { "datasource": { - "type": "prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { @@ -829,7 +830,7 @@ "datasource": { "type": "prometheus" }, - "expr": "mktxp_system_routerboard_temperature{routerboard_address=\"$node\"} ", + "expr": "mktxp_system_routerboard_temperature{routerboard_address=\"$node\"} or mktxp_system_cpu_temperature{routerboard_address=\"$node\"}", "instant": true, "interval": "", "legendFormat": "", @@ -1343,7 +1344,7 @@ "type": "timeseries" }, { - "collapsed": false, + "collapsed": true, "datasource": { "type": "prometheus" }, @@ -1354,7 +1355,369 @@ "y": 24 }, "id": 2, - "panels": [], + "panels": [ + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "decimals": 0, + "links": [], + "mappings": [], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 30 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 0, + "y": 25 + }, + "id": 20, + "links": [], + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_dhcp_lease_active_count{routerboard_address=\"$node\"}", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": true, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ server }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "DHCP Leases by Server", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "custom": { + "align": "center", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "__name__" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mac_address" + }, + "properties": [ + { + "id": "custom.width", + "value": 231 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "DHCP VLAN" + }, + "properties": [ + { + "id": "custom.width", + "value": 227 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "active_address" + }, + "properties": [ + { + "id": "custom.width", + "value": 240 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Host Name" + }, + "properties": [ + { + "id": "custom.width", + "value": 383 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Comment" + }, + "properties": [ + { + "id": "custom.width", + "value": 360 + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 19, + "x": 5, + "y": 25 + }, + "id": 25, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "active_address" + } + ] + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_dhcp_lease_info{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "DHCP Leases", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "instance": true, + "job": true, + "routerboard_address": true, + "routerboard_name": true + }, + "indexByName": { + "Time": 9, + "Value": 13, + "__name__": 8, + "active_address": 5, + "address": 4, + "comment": 1, + "expires_after": 6, + "host_name": 0, + "instance": 7, + "job": 10, + "mac_address": 3, + "routerboard_address": 11, + "routerboard_name": 12, + "server": 2 + }, + "renameByName": { + "comment": "Comment", + "host_name": "Host Name", + "server": "DHCP Server" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "decimals": 0, + "links": [], + "mappings": [], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 30 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 5, + "x": 0, + "y": 33 + }, + "id": 23, + "links": [], + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "sum(mktxp_dhcp_lease_active_count{routerboard_address=\"$node\"})", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": true, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "In - {{ server }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "Total DHCP Leases", + "type": "bargauge" + } + ], "targets": [ { "datasource": { @@ -1367,368 +1730,7 @@ "type": "row" }, { - "datasource": { - "type": "prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "decimals": 0, - "links": [], - "mappings": [], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 30 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 0, - "y": 25 - }, - "id": 20, - "links": [], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_dhcp_lease_active_count{routerboard_address=\"$node\"}", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": true, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ server }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "DHCP Leases by Server", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "center", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mac_address" - }, - "properties": [ - { - "id": "custom.width", - "value": 231 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "DHCP VLAN" - }, - "properties": [ - { - "id": "custom.width", - "value": 227 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "active_address" - }, - "properties": [ - { - "id": "custom.width", - "value": 240 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Host Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 383 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Comment" - }, - "properties": [ - { - "id": "custom.width", - "value": 360 - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 19, - "x": 5, - "y": 25 - }, - "id": 25, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "active_address" - } - ] - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_dhcp_lease_info{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "DHCP Leases", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "instance": true, - "job": true, - "routerboard_address": true, - "routerboard_name": true - }, - "indexByName": { - "Time": 9, - "Value": 13, - "__name__": 8, - "active_address": 5, - "address": 4, - "comment": 1, - "expires_after": 6, - "host_name": 0, - "instance": 7, - "job": 10, - "mac_address": 3, - "routerboard_address": 11, - "routerboard_name": 12, - "server": 2 - }, - "renameByName": { - "comment": "Comment", - "host_name": "Host Name", - "server": "DHCP Server" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "decimals": 0, - "links": [], - "mappings": [], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 30 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 5, - "x": 0, - "y": 33 - }, - "id": 23, - "links": [], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "sum(mktxp_dhcp_lease_active_count{routerboard_address=\"$node\"})", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": true, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "In - {{ server }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "Total DHCP Leases", - "type": "bargauge" - }, - { - "collapsed": false, + "collapsed": true, "datasource": { "type": "prometheus" }, @@ -1736,10 +1738,735 @@ "h": 1, "w": 24, "x": 0, - "y": 36 + "y": 25 }, "id": 45, - "panels": [], + "panels": [ + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "0": { + "text": "Unplugged" + }, + "1": { + "text": "" + } + }, + "type": "value" + } + ], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 0 + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 2, + "x": 0, + "y": 26 + }, + "id": 70, + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_routes_total_routes{routerboard_address=\"$node\"}", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Total Routes", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 2, + "y": 26 + }, + "id": 71, + "links": [], + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_routes_protocol_count{routerboard_address=\"$node\"}", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": true, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "/errors on interface/" + }, + "legendFormat": "{{protocol}}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "Routes per protocol", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "0": { + "text": "No" + }, + "1": { + "text": "Yes" + } + }, + "type": "value" + } + ], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 0 + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 6, + "y": 26 + }, + "id": 69, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_interface_full_duplex{routerboard_address=\"$node\"}", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "Ethernet Ports: Full Duplex", + "type": "bargauge" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 16, + "w": 12, + "x": 12, + "y": 26 + }, + "hiddenSeries": false, + "id": 55, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_interface_rx_error_total{routerboard_address=\"$node\"}", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "/errors on interface/" + }, + "legendFormat": "In Errors | {{name}}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_interface_tx_error_total{routerboard_address=\"$node\"}", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "Out Errors | {{name}}", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Interface Errors", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:265", + "format": "short", + "logBase": 1, + "show": true + }, + { + "$$hashKey": "object:266", + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "0": { + "text": "Unplugged" + }, + "1": { + "text": "Plugged-In" + } + }, + "type": "value" + } + ], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 0 + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 31 + }, + "id": 51, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_interface_status{routerboard_address=\"$node\"}", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "Ethernet Ports: Status", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "custom": { + "align": "auto", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Mbits" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 6, + "y": 31 + }, + "id": 53, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_interface_rate{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "Rates", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "__name__": true, + "address": true, + "env": true, + "instance": true, + "job": true, + "name": false, + "routerboard_address": true, + "routerboard_name": true + }, + "indexByName": {}, + "renameByName": { + "Value": "Rate", + "name": "Interface", + "routerboard_name": "" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "custom": { + "align": "center", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "__name__" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mac_address" + }, + "properties": [ + { + "id": "custom.width", + "value": 231 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "DHCP VLAN" + }, + "properties": [ + { + "id": "custom.width", + "value": 227 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "active_address" + }, + "properties": [ + { + "id": "custom.width", + "value": 240 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Host Name" + }, + "properties": [ + { + "id": "custom.width", + "value": 383 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Comment" + }, + "properties": [ + { + "id": "custom.width", + "value": 360 + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 85, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "active_address" + } + ] + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_poe_info{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "POE", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "instance": true, + "job": true, + "routerboard_address": true, + "routerboard_name": true + }, + "indexByName": { + "Time": 9, + "Value": 13, + "__name__": 8, + "active_address": 5, + "address": 4, + "comment": 1, + "expires_after": 6, + "host_name": 0, + "instance": 7, + "job": 10, + "mac_address": 3, + "routerboard_address": 11, + "routerboard_name": 12, + "server": 2 + }, + "renameByName": { + "comment": "Comment", + "host_name": "Host Name", + "name": "Interface", + "poe_out": "State", + "poe_out_status": "Status", + "poe_priority": "Priority", + "server": "DHCP Server" + } + } + } + ], + "type": "table" + } + ], "targets": [ { "datasource": { @@ -1752,731 +2479,7 @@ "type": "row" }, { - "datasource": { - "type": "prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "0": { - "text": "Unplugged" - }, - "1": { - "text": "" - } - }, - "type": "value" - } - ], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 0, - "y": 37 - }, - "id": 70, - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_routes_total_routes{routerboard_address=\"$node\"}", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Total Routes", - "type": "gauge" - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 2, - "y": 37 - }, - "id": 71, - "links": [], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_routes_protocol_count{routerboard_address=\"$node\"}", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": true, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "/errors on interface/" - }, - "legendFormat": "{{protocol}}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "Routes per protocol", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "0": { - "text": "No" - }, - "1": { - "text": "Yes" - } - }, - "type": "value" - } - ], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 6, - "y": 37 - }, - "id": 69, - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_interface_full_duplex{routerboard_address=\"$node\"}", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "{{name}}", - "refId": "A" - } - ], - "title": "Ethernet Ports: Full Duplex", - "type": "bargauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 16, - "w": 12, - "x": 12, - "y": 37 - }, - "hiddenSeries": false, - "id": 55, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_interface_rx_error_total{routerboard_address=\"$node\"}", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "/errors on interface/" - }, - "legendFormat": "In Errors | {{name}}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_interface_tx_error_total{routerboard_address=\"$node\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Out Errors | {{name}}", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Interface Errors", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:265", - "format": "short", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:266", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "0": { - "text": "Unplugged" - }, - "1": { - "text": "Plugged-In" - } - }, - "type": "value" - } - ], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "yellow", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 42 - }, - "id": 51, - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_interface_status{routerboard_address=\"$node\"}", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "{{name}}", - "refId": "A" - } - ], - "title": "Ethernet Ports: Status", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "auto", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Mbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 6, - "y": 42 - }, - "id": 53, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_interface_rate{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "{{name}}", - "refId": "A" - } - ], - "title": "Rates", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "__name__": true, - "address": true, - "env": true, - "instance": true, - "job": true, - "name": false, - "routerboard_address": true, - "routerboard_name": true - }, - "indexByName": {}, - "renameByName": { - "Value": "Rate", - "name": "Interface", - "routerboard_name": "" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "center", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mac_address" - }, - "properties": [ - { - "id": "custom.width", - "value": 231 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "DHCP VLAN" - }, - "properties": [ - { - "id": "custom.width", - "value": 227 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "active_address" - }, - "properties": [ - { - "id": "custom.width", - "value": 240 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Host Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 383 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Comment" - }, - "properties": [ - { - "id": "custom.width", - "value": 360 - } - ] - } - ] - }, - "gridPos": { - "h": 4, - "w": 12, - "x": 0, - "y": 49 - }, - "id": 85, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "active_address" - } - ] - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_poe_info{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "POE", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "instance": true, - "job": true, - "routerboard_address": true, - "routerboard_name": true - }, - "indexByName": { - "Time": 9, - "Value": 13, - "__name__": 8, - "active_address": 5, - "address": 4, - "comment": 1, - "expires_after": 6, - "host_name": 0, - "instance": 7, - "job": 10, - "mac_address": 3, - "routerboard_address": 11, - "routerboard_name": 12, - "server": 2 - }, - "renameByName": { - "comment": "Comment", - "host_name": "Host Name", - "name": "Interface", - "poe_out": "State", - "poe_out_status": "Status", - "poe_priority": "Priority", - "server": "DHCP Server" - } - } - } - ], - "type": "table" - }, - { - "collapsed": false, + "collapsed": true, "datasource": { "type": "prometheus" }, @@ -2484,10 +2487,819 @@ "h": 1, "w": 24, "x": 0, - "y": 53 + "y": 26 }, "id": 84, - "panels": [], + "panels": [ + { + "aliasColors": { + "Incoming traffic on interface ether1-gateway": "#1F78C1", + "Outgoing traffic on interface ether1-gateway": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [], + "unit": "decbytes" + }, + "overrides": [] + }, + "fill": 3, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 54 + }, + "hiddenSeries": false, + "id": 81, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_firewall_filter_total{routerboard_address=\"$node\", log=\"1\"}[4m])", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Logged Firewall Rules Traffic ", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:706", + "format": "decbytes", + "label": "", + "logBase": 2, + "show": true + }, + { + "$$hashKey": "object:707", + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Incoming traffic on interface ether1-gateway": "#1F78C1", + "Outgoing traffic on interface ether1-gateway": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [], + "unit": "decbytes" + }, + "overrides": [] + }, + "fill": 3, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 54 + }, + "hiddenSeries": false, + "id": 82, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_firewall_raw_total{routerboard_address=\"$node\", log=\"1\"}[4m])", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Logged Raw Firewall Rules Traffic ", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:706", + "format": "decbytes", + "label": "", + "logBase": 2, + "show": true + }, + { + "$$hashKey": "object:707", + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 15, + "w": 12, + "x": 0, + "y": 61 + }, + "id": 106, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "rate(mktxp_firewall_filter_ipv6_total{routerboard_address=\"$node\"}[$__rate_interval])", + "legendFormat": "{{name}}", + "range": true, + "refId": "A" + } + ], + "title": "Firewall Rules Traffic (IPv6)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 15, + "w": 12, + "x": 12, + "y": 61 + }, + "id": 43, + "links": [], + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_firewall_filter_total{routerboard_address=\"$node\"}[$__rate_interval])", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "Firewall Rules Traffic (IPv4)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 30, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "| prerouting | passthrough | special dummy rule to show fasttrack counters" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-green", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 76 + }, + "id": 76, + "links": [], + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_firewall_raw_total{routerboard_address=\"$node\"}[$__rate_interval])", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "Raw Firewall Rules Traffic (IPv4)", + "type": "timeseries" + }, + { + "aliasColors": { + "download": "dark-green", + "upload": "dark-blue" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "decimals": 0, + "fieldConfig": { + "defaults": { + "links": [], + "unit": "binbps" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 82 + }, + "hiddenSeries": false, + "id": 27, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": false + }, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_internet_bandwidth", + "instant": false, + "interval": "", + "legendFormat": "{{direction}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Internet Bandwidth", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:54", + "decimals": 0, + "format": "binbps", + "label": "", + "logBase": 1, + "show": true + }, + { + "$$hashKey": "object:55", + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "latency": "dark-green" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "decimals": 0, + "fieldConfig": { + "defaults": { + "links": [], + "unit": "ms" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 82 + }, + "hiddenSeries": false, + "id": 74, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": false + }, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_internet_latency", + "instant": false, + "interval": "", + "legendFormat": "latency", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Internet Latency", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:54", + "decimals": 0, + "format": "ms", + "label": "", + "logBase": 1, + "show": true + }, + { + "$$hashKey": "object:55", + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], "targets": [ { "datasource": { @@ -2500,815 +3312,7 @@ "type": "row" }, { - "aliasColors": { - "Incoming traffic on interface ether1-gateway": "#1F78C1", - "Outgoing traffic on interface ether1-gateway": "#EAB839" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "description": "", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [], - "unit": "decbytes" - }, - "overrides": [] - }, - "fill": 3, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 54 - }, - "hiddenSeries": false, - "id": 81, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_firewall_filter_total{routerboard_address=\"$node\", log=\"1\"}[4m])", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Logged Firewall Rules Traffic ", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:706", - "format": "decbytes", - "label": "", - "logBase": 2, - "show": true - }, - { - "$$hashKey": "object:707", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Incoming traffic on interface ether1-gateway": "#1F78C1", - "Outgoing traffic on interface ether1-gateway": "#EAB839" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "description": "", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [], - "unit": "decbytes" - }, - "overrides": [] - }, - "fill": 3, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 54 - }, - "hiddenSeries": false, - "id": 82, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_firewall_raw_total{routerboard_address=\"$node\", log=\"1\"}[4m])", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Logged Raw Firewall Rules Traffic ", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:706", - "format": "decbytes", - "label": "", - "logBase": 2, - "show": true - }, - { - "$$hashKey": "object:707", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 15, - "w": 12, - "x": 0, - "y": 61 - }, - "id": 106, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "mean" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(mktxp_firewall_filter_ipv6_total{routerboard_address=\"$node\"}[$__rate_interval])", - "legendFormat": "{{name}}", - "range": true, - "refId": "A" - } - ], - "title": "Firewall Rules Traffic (IPv6)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 15, - "w": 12, - "x": 12, - "y": 61 - }, - "id": 43, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_firewall_filter_total{routerboard_address=\"$node\"}[$__rate_interval])", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "Firewall Rules Traffic (IPv4)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 30, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "| prerouting | passthrough | special dummy rule to show fasttrack counters" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-green", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 76 - }, - "id": 76, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_firewall_raw_total{routerboard_address=\"$node\"}[$__rate_interval])", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "Raw Firewall Rules Traffic (IPv4)", - "type": "timeseries" - }, - { - "aliasColors": { - "download": "dark-green", - "upload": "dark-blue" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "decimals": 0, - "fieldConfig": { - "defaults": { - "links": [], - "unit": "binbps" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 82 - }, - "hiddenSeries": false, - "id": 27, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": false - }, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_internet_bandwidth", - "instant": false, - "interval": "", - "legendFormat": "{{direction}}", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Internet Bandwidth", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:54", - "decimals": 0, - "format": "binbps", - "label": "", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:55", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "latency": "dark-green" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "decimals": 0, - "fieldConfig": { - "defaults": { - "links": [], - "unit": "ms" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 82 - }, - "hiddenSeries": false, - "id": 74, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": false - }, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_internet_latency", - "instant": false, - "interval": "", - "legendFormat": "latency", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Internet Latency", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:54", - "decimals": 0, - "format": "ms", - "label": "", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:55", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, + "collapsed": true, "datasource": { "type": "prometheus" }, @@ -3316,10 +3320,273 @@ "h": 1, "w": 24, "x": 0, - "y": 89 + "y": 27 }, "id": 90, - "panels": [], + "panels": [ + { + "cards": { + "cardHSpacing": 2, + "cardMinWidth": 5, + "cardVSpacing": 2 + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateGnYlRd", + "defaultColor": "#757575", + "exponent": 0.5, + "mode": "discrete", + "thresholds": [ + { + "$$hashKey": "object:1491", + "color": "#56A64B", + "tooltip": "Up", + "value": "1" + }, + { + "$$hashKey": "object:96", + "color": "#E02F44", + "tooltip": "Down", + "value": "0" + } + ] + }, + "datasource": { + "type": "prometheus" + }, + "description": "", + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 90 + }, + "hideBranding": false, + "highlightCards": true, + "id": 87, + "legend": { + "show": true + }, + "links": [], + "nullPointMode": "as empty", + "pageSize": 15, + "pluginVersion": "7.4.5", + "seriesFilterIndex": -1, + "statusmap": { + "ConfigVersion": "v1" + }, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "max_over_time(mktxp_netwatch_status{routerboard_address=\"$node\"}[1m])", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "Status over time", + "tooltip": { + "customContent": "", + "extraInfo": "", + "freezeOnClick": true, + "items": [], + "show": true, + "showCustomContent": true, + "showExtraInfo": false, + "showItems": false + }, + "type": "flant-statusmap-panel", + "useMax": true, + "usingPagination": false, + "xAxis": { + "show": true + }, + "yAxis": { + "maxWidth": -1, + "minWidth": -1, + "show": true + }, + "yAxisSort": "metrics", + "yLabel": { + "delimiter": "", + "labelTemplate": "", + "usingSplitLabel": false + } + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "custom": { + "align": "center", + "displayMode": "color-text", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Status" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "text": "Down" + }, + "1": { + "text": "Up" + } + }, + "type": "value" + } + ] + }, + { + "id": "color", + "value": { + "mode": "fixed" + } + }, + { + "id": "color" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 90 + }, + "id": 88, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_netwatch_info{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Netwatch Info", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "disabled": true, + "instance": true, + "job": true, + "name": true, + "routerboard_address": true, + "routerboard_name": true, + "timeout": true + }, + "indexByName": { + "Time": 5, + "Value": 9, + "__name__": 4, + "comment": 1, + "host": 0, + "instance": 3, + "interval": 11, + "job": 6, + "name": 12, + "routerboard_address": 7, + "routerboard_name": 8, + "since": 10, + "status": 2, + "timeout": 13 + }, + "renameByName": { + "comment": "Comment", + "host": "Host", + "host_name": "Host Name", + "interval": "Interval", + "server": "DHCP Server", + "since": "Since", + "status": "Status" + } + } + } + ], + "type": "table" + } + ], "targets": [ { "datasource": { @@ -3331,268 +3598,6 @@ "title": "Netwatch", "type": "row" }, - { - "cards": { - "cardHSpacing": 2, - "cardMinWidth": 5, - "cardVSpacing": 2 - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateGnYlRd", - "defaultColor": "#757575", - "exponent": 0.5, - "mode": "discrete", - "thresholds": [ - { - "$$hashKey": "object:1491", - "color": "#56A64B", - "tooltip": "Up", - "value": "1" - }, - { - "$$hashKey": "object:96", - "color": "#E02F44", - "tooltip": "Down", - "value": "0" - } - ] - }, - "datasource": { - "type": "prometheus" - }, - "description": "", - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 90 - }, - "hideBranding": false, - "highlightCards": true, - "id": 87, - "legend": { - "show": true - }, - "links": [], - "nullPointMode": "as empty", - "pageSize": 15, - "pluginVersion": "7.4.5", - "seriesFilterIndex": -1, - "statusmap": { - "ConfigVersion": "v1" - }, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "max_over_time(mktxp_netwatch_status{routerboard_address=\"$node\"}[1m])", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "Status over time", - "tooltip": { - "customContent": "", - "extraInfo": "", - "freezeOnClick": true, - "items": [], - "show": true, - "showCustomContent": true, - "showExtraInfo": false, - "showItems": false - }, - "type": "flant-statusmap-panel", - "useMax": true, - "usingPagination": false, - "xAxis": { - "show": true - }, - "yAxis": { - "maxWidth": -1, - "minWidth": -1, - "show": true - }, - "yAxisSort": "metrics", - "yLabel": { - "delimiter": "", - "labelTemplate": "", - "usingSplitLabel": false - } - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "center", - "displayMode": "color-text", - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Status" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "text": "Down" - }, - "1": { - "text": "Up" - } - }, - "type": "value" - } - ] - }, - { - "id": "color", - "value": { - "mode": "fixed" - } - }, - { - "id": "color" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 90 - }, - "id": 88, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_netwatch_info{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Netwatch Info", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "disabled": true, - "instance": true, - "job": true, - "name": true, - "routerboard_address": true, - "routerboard_name": true, - "timeout": true - }, - "indexByName": { - "Time": 5, - "Value": 9, - "__name__": 4, - "comment": 1, - "host": 0, - "instance": 3, - "interval": 11, - "job": 6, - "name": 12, - "routerboard_address": 7, - "routerboard_name": 8, - "since": 10, - "status": 2, - "timeout": 13 - }, - "renameByName": { - "comment": "Comment", - "host": "Host", - "host_name": "Host Name", - "interval": "Interval", - "server": "DHCP Server", - "since": "Since", - "status": "Status" - } - } - } - ], - "type": "table" - }, { "collapsed": true, "datasource": { @@ -3602,7 +3607,7 @@ "h": 1, "w": 24, "x": 0, - "y": 98 + "y": 28 }, "id": 29, "panels": [ @@ -3626,7 +3631,7 @@ "h": 8, "w": 12, "x": 0, - "y": 89 + "y": 29 }, "hiddenSeries": false, "id": 31, @@ -3722,7 +3727,7 @@ "h": 8, "w": 12, "x": 12, - "y": 89 + "y": 29 }, "hiddenSeries": false, "id": 73, @@ -3819,7 +3824,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -3894,7 +3900,7 @@ "h": 8, "w": 12, "x": 0, - "y": 97 + "y": 37 }, "id": 68, "options": { @@ -3984,7 +3990,7 @@ "h": 8, "w": 12, "x": 12, - "y": 97 + "y": 37 }, "hiddenSeries": false, "id": 37, @@ -4002,6 +4008,7 @@ }, "lines": true, "linewidth": 1, + "nullPointMode": "null", "options": { "alertThreshold": true }, @@ -4080,7 +4087,7 @@ "h": 8, "w": 12, "x": 0, - "y": 105 + "y": 45 }, "hiddenSeries": false, "id": 61, @@ -4099,6 +4106,7 @@ }, "lines": true, "linewidth": 1, + "nullPointMode": "null", "options": { "alertThreshold": true }, @@ -4182,7 +4190,7 @@ "h": 8, "w": 12, "x": 12, - "y": 105 + "y": 45 }, "hiddenSeries": false, "id": 63, @@ -4343,7 +4351,7 @@ "h": 7, "w": 12, "x": 0, - "y": 113 + "y": 53 }, "hiddenSeries": false, "id": 65, @@ -4363,6 +4371,7 @@ "lines": true, "linewidth": 1, "links": [], + "nullPointMode": "null", "options": { "alertThreshold": true }, @@ -4460,7 +4469,7 @@ "h": 7, "w": 12, "x": 12, - "y": 113 + "y": 53 }, "hiddenSeries": false, "id": 66, @@ -4480,6 +4489,7 @@ "lines": true, "linewidth": 1, "links": [], + "nullPointMode": "null", "options": { "alertThreshold": true }, @@ -4569,7 +4579,7 @@ "type": "row" }, { - "collapsed": false, + "collapsed": true, "datasource": { "type": "prometheus" }, @@ -4577,10 +4587,901 @@ "h": 1, "w": 24, "x": 0, - "y": 99 + "y": 29 }, "id": 33, - "panels": [], + "panels": [ + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "board" + }, + "properties": [ + { + "id": "custom.width", + "value": 189 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "identity" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "version" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 30 + }, + "id": 35, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_capsman_remote_caps_info{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "{{identity}}", + "refId": "A" + } + ], + "title": "Remote Caps", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "instance": true, + "job": true, + "routerboard_address": true, + "routerboard_name": true + }, + "indexByName": { + "Time": 0, + "Value": 10, + "__name__": 1, + "base_mac": 4, + "board": 3, + "identity": 2, + "instance": 5, + "job": 6, + "routerboard_address": 7, + "routerboard_name": 8, + "version": 9 + }, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "custom": { + "align": "center", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "__name__" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "rx_signal" + }, + "properties": [ + { + "id": "custom.width", + "value": 127 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "custom.width", + "value": 267 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mac_address" + }, + "properties": [ + { + "id": "custom.width", + "value": 165 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ssid" + }, + "properties": [ + { + "id": "custom.width", + "value": 140 + } + ] + } + ] + }, + "gridPos": { + "h": 15, + "w": 18, + "x": 6, + "y": 30 + }, + "id": 41, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "rx_signal" + } + ] + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_capsman_clients_devices_info{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "CAPsMAN Clients", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "instance": true, + "job": true, + "routerboard_address": true, + "routerboard_name": true + }, + "indexByName": { + "Time": 0, + "Value": 15, + "__name__": 1, + "dhcp_address": 3, + "dhcp_name": 2, + "instance": 9, + "interface": 10, + "job": 12, + "mac_address": 4, + "routerboard_address": 13, + "routerboard_name": 14, + "rx_rate": 6, + "rx_signal": 5, + "ssid": 11, + "tx_rate": 7, + "uptime": 8 + }, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "decimals": 0, + "links": [], + "mappings": [], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 30 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 0, + "y": 37 + }, + "id": 47, + "links": [], + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_capsman_registrations_count{routerboard_address=\"$node\"}", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": true, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ interface }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus" + }, + "expr": "sum(mktxp_capsman_registrations_count{routerboard_address=\"$node\"})", + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "B" + } + ], + "title": "CAPsMAN Registrations", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 18, + "x": 6, + "y": 45 + }, + "id": 104, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mktxp_capsman_interfaces_info{routerboard_address=\"$node\"}", + "format": "table", + "instant": true, + "legendFormat": "", + "range": false, + "refId": "A" + } + ], + "title": "CAPsMAN Frequencies", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "instance": true, + "job": true, + "routerboard_address": true, + "routerboard_name": true + }, + "indexByName": { + "Time": 6, + "Value": 12, + "__name__": 8, + "configuration": 5, + "current_channel": 1, + "current_registered_clients": 2, + "current_state": 3, + "instance": 7, + "job": 9, + "mac_address": 4, + "name": 0, + "routerboard_address": 10, + "routerboard_name": 11 + }, + "renameByName": { + "configuration": "", + "current_registered_clients": "registered_clients", + "current_state": "state", + "mac_address": "" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "orange", + "value": -80 + }, + { + "color": "purple", + "value": -70 + }, + { + "color": "green", + "value": -60 + }, + { + "color": "rgb(20, 104, 9)", + "value": -40 + } + ] + }, + "unit": "dB" + }, + "overrides": [] + }, + "gridPos": { + "h": 16, + "w": 6, + "x": 0, + "y": 46 + }, + "id": 48, + "links": [], + "options": { + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_capsman_clients_signal_strength{routerboard_address=\"$node\"}", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": true, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ dhcp_name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "Registered Client Signal Strength", + "type": "bargauge" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "links": [], + "unit": "dB" + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 18, + "x": 6, + "y": 53 + }, + "hiddenSeries": false, + "id": 49, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "mktxp_capsman_clients_signal_strength{routerboard_address=\"$node\"}", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ dhcp_name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CAPsMan Clients Signal Strength", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:788", + "format": "dB", + "logBase": 1, + "max": "-16", + "min": "-80", + "show": true + }, + { + "$$hashKey": "object:789", + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Incoming traffic on interface ether1-gateway": "#1F78C1", + "Outgoing traffic on interface ether1-gateway": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 3, + "fillGradient": 0, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 62 + }, + "hiddenSeries": false, + "id": 39, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:176", + "alias": "/In/" + }, + { + "$$hashKey": "object:177", + "alias": "/Out/", + "color": "#EAB839", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_capsman_clients_tx_bytes_total{routerboard_address=\"$node\"}[$__rate_interval]) * 8", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "In | {{ dhcp_name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + }, + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_capsman_clients_rx_bytes_total{routerboard_address=\"$node\"}[$__rate_interval]) * 8", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Outgoing traffic on interface ether1-gateway" + }, + "legendFormat": "Out | {{ dhcp_name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CAPsMAN Clients Traffic", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:706", + "format": "bps", + "logBase": 1, + "show": true + }, + { + "$$hashKey": "object:707", + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], "targets": [ { "datasource": { @@ -4592,898 +5493,13 @@ "title": "CAPsMAN", "type": "row" }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "center", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "decimals": 2, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "board" - }, - "properties": [ - { - "id": "custom.width", - "value": 189 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "identity" - }, - "properties": [ - { - "id": "custom.width", - "value": 103 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "version" - }, - "properties": [ - { - "id": "custom.width", - "value": 110 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 100 - }, - "id": 35, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_capsman_remote_caps_info{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "{{identity}}", - "refId": "A" - } - ], - "title": "Remote Caps", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "instance": true, - "job": true, - "routerboard_address": true, - "routerboard_name": true - }, - "indexByName": { - "Time": 0, - "Value": 10, - "__name__": 1, - "base_mac": 4, - "board": 3, - "identity": 2, - "instance": 5, - "job": 6, - "routerboard_address": 7, - "routerboard_name": 8, - "version": 9 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "center", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "rx_signal" - }, - "properties": [ - { - "id": "custom.width", - "value": 127 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "custom.width", - "value": 267 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mac_address" - }, - "properties": [ - { - "id": "custom.width", - "value": 165 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "ssid" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - } - ] - } - ] - }, - "gridPos": { - "h": 15, - "w": 18, - "x": 6, - "y": 100 - }, - "id": 41, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "rx_signal" - } - ] - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_capsman_clients_devices_info{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "CAPsMAN Clients", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "instance": true, - "job": true, - "routerboard_address": true, - "routerboard_name": true - }, - "indexByName": { - "Time": 0, - "Value": 15, - "__name__": 1, - "dhcp_address": 3, - "dhcp_name": 2, - "instance": 9, - "interface": 10, - "job": 12, - "mac_address": 4, - "routerboard_address": 13, - "routerboard_name": 14, - "rx_rate": 6, - "rx_signal": 5, - "ssid": 11, - "tx_rate": 7, - "uptime": 8 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "decimals": 0, - "links": [], - "mappings": [], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "#EAB839", - "value": 30 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 6, - "x": 0, - "y": 107 - }, - "id": 47, - "links": [], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_capsman_registrations_count{routerboard_address=\"$node\"}", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": true, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ interface }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus" - }, - "expr": "sum(mktxp_capsman_registrations_count{routerboard_address=\"$node\"})", - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "B" - } - ], - "title": "CAPsMAN Registrations", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 18, - "x": 6, - "y": 115 - }, - "id": 104, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mktxp_capsman_interfaces_info{routerboard_address=\"$node\"}", - "format": "table", - "instant": true, - "legendFormat": "", - "range": false, - "refId": "A" - } - ], - "title": "CAPsMAN Frequencies", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "__name__": true, - "instance": true, - "job": true, - "routerboard_address": true, - "routerboard_name": true - }, - "indexByName": { - "Time": 6, - "Value": 12, - "__name__": 8, - "configuration": 5, - "current_channel": 1, - "current_registered_clients": 2, - "current_state": 3, - "instance": 7, - "job": 9, - "mac_address": 4, - "name": 0, - "routerboard_address": 10, - "routerboard_name": 11 - }, - "renameByName": { - "configuration": "", - "current_registered_clients": "registered_clients", - "current_state": "state", - "mac_address": "" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "orange", - "value": -80 - }, - { - "color": "purple", - "value": -70 - }, - { - "color": "green", - "value": -60 - }, - { - "color": "rgb(20, 104, 9)", - "value": -40 - } - ] - }, - "unit": "dB" - }, - "overrides": [] - }, - "gridPos": { - "h": 16, - "w": 6, - "x": 0, - "y": 116 - }, - "id": 48, - "links": [], - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_capsman_clients_signal_strength{routerboard_address=\"$node\"}", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": true, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ dhcp_name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "Registered Client Signal Strength", - "type": "bargauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "links": [], - "unit": "dB" - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 18, - "x": 6, - "y": 123 - }, - "hiddenSeries": false, - "id": 49, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "mktxp_capsman_clients_signal_strength{routerboard_address=\"$node\"}", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ dhcp_name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "CAPsMan Clients Signal Strength", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:788", - "format": "dB", - "logBase": 1, - "max": "-16", - "min": "-80", - "show": true - }, - { - "$$hashKey": "object:789", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Incoming traffic on interface ether1-gateway": "#1F78C1", - "Outgoing traffic on interface ether1-gateway": "#EAB839" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 3, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 132 - }, - "hiddenSeries": false, - "id": 39, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:176", - "alias": "/In/" - }, - { - "$$hashKey": "object:177", - "alias": "/Out/", - "color": "#EAB839", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_capsman_clients_tx_bytes_total{routerboard_address=\"$node\"}[$__rate_interval]) * 8", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "In | {{ dhcp_name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - }, - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_capsman_clients_rx_bytes_total{routerboard_address=\"$node\"}[$__rate_interval]) * 8", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Outgoing traffic on interface ether1-gateway" - }, - "legendFormat": "Out | {{ dhcp_name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "CAPsMAN Clients Traffic", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:706", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:707", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 142 + "y": 30 }, "id": 125, "panels": [ @@ -5629,7 +5645,7 @@ "type": "row" }, { - "collapsed": false, + "collapsed": true, "datasource": { "type": "prometheus" }, @@ -5637,10 +5653,514 @@ "h": 1, "w": 24, "x": 0, - "y": 143 + "y": 31 }, "id": 80, - "panels": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "The version of Python running the Prometheus exporter.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 0, + "y": 32 + }, + "id": 102, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "name" + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "expr": "python_info", + "legendFormat": "{{implementation}} {{version}}", + "range": true, + "refId": "A" + } + ], + "title": "Python Version", + "type": "stat" + }, + { + "aliasColors": { + "Incoming traffic on interface ether1-gateway": "#1F78C1", + "Outgoing traffic on interface ether1-gateway": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus" + }, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 3, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 18, + "x": 6, + "y": 32 + }, + "hiddenSeries": false, + "id": 77, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.0.6", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:176", + "alias": "/In/" + }, + { + "$$hashKey": "object:177", + "alias": "/Out/", + "color": "#EAB839", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_collection_time_total{routerboard_address=\"$node\"}[4m])", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": false, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus" + }, + "expr": "sum(rate(mktxp_collection_time_total{routerboard_address=\"$node\"}[4m]))", + "interval": "", + "legendFormat": "Total", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "MKTXP Collection Times", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:706", + "format": "ms", + "logBase": 2, + "show": true + }, + { + "$$hashKey": "object:707", + "format": "short", + "logBase": 2, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "datasource": { + "type": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 10 + }, + { + "color": "purple", + "value": 20 + }, + { + "color": "orange", + "value": 50 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 6, + "x": 0, + "y": 35 + }, + "id": 78, + "links": [], + "options": { + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.0.6", + "targets": [ + { + "application": { + "filter": "Network" + }, + "datasource": { + "type": "prometheus" + }, + "expr": "rate(mktxp_collection_time_total{routerboard_address=\"$node\"}[4m]) ", + "format": "time_series", + "functions": [], + "group": { + "filter": "Network" + }, + "hide": false, + "host": { + "filter": "MikroTik Router" + }, + "instant": true, + "interval": "", + "intervalFactor": 1, + "item": { + "filter": "Incoming traffic on interface ether1-gateway" + }, + "legendFormat": "{{ name }}", + "mode": 0, + "options": { + "showDisabledItems": false + }, + "refId": "A" + } + ], + "title": "MKTXP Collection Times", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Memory metrics about the Mikrotik Metric Exporter for Prometheus.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 6, + "y": 40 + }, + "id": 98, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "expr": "process_resident_memory_bytes", + "legendFormat": "{{__name__}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "expr": "process_virtual_memory_bytes", + "hide": false, + "legendFormat": "{{__name__}}", + "range": true, + "refId": "B" + } + ], + "title": "Memory Footprint", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "The CPU usage caused by the Prometheus exporter process. This is NOT the overall CPU usage.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 10 + }, + { + "color": "orange", + "value": 20 + }, + { + "color": "red", + "value": 30 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 40 + }, + "id": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "rate(process_cpu_seconds_total[30s]) * 100", + "legendFormat": "cpu_usage", + "range": true, + "refId": "A" + } + ], + "title": "CPU Usage (%)", + "type": "timeseries" + } + ], "targets": [ { "datasource": { @@ -5651,505 +6171,6 @@ ], "title": "MKTXP Metrics", "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "The version of Python running the Prometheus exporter.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 144 - }, - "id": 102, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "name" - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "builder", - "expr": "python_info", - "legendFormat": "{{implementation}} {{version}}", - "range": true, - "refId": "A" - } - ], - "title": "Python Version", - "type": "stat" - }, - { - "aliasColors": { - "Incoming traffic on interface ether1-gateway": "#1F78C1", - "Outgoing traffic on interface ether1-gateway": "#EAB839" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus" - }, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 3, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 18, - "x": 6, - "y": 144 - }, - "hiddenSeries": false, - "id": 77, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.0.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:176", - "alias": "/In/" - }, - { - "$$hashKey": "object:177", - "alias": "/Out/", - "color": "#EAB839", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_collection_time_total{routerboard_address=\"$node\"}[4m])", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": false, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus" - }, - "expr": "sum(rate(mktxp_collection_time_total{routerboard_address=\"$node\"}[4m]))", - "interval": "", - "legendFormat": "Total", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "MKTXP Collection Times", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:706", - "format": "ms", - "logBase": 2, - "show": true - }, - { - "$$hashKey": "object:707", - "format": "short", - "logBase": 2, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "yellow", - "value": 10 - }, - { - "color": "purple", - "value": 20 - }, - { - "color": "orange", - "value": 50 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 13, - "w": 6, - "x": 0, - "y": 147 - }, - "id": 78, - "links": [], - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.0.6", - "targets": [ - { - "application": { - "filter": "Network" - }, - "datasource": { - "type": "prometheus" - }, - "expr": "rate(mktxp_collection_time_total{routerboard_address=\"$node\"}[4m]) ", - "format": "time_series", - "functions": [], - "group": { - "filter": "Network" - }, - "hide": false, - "host": { - "filter": "MikroTik Router" - }, - "instant": true, - "interval": "", - "intervalFactor": 1, - "item": { - "filter": "Incoming traffic on interface ether1-gateway" - }, - "legendFormat": "{{ name }}", - "mode": 0, - "options": { - "showDisabledItems": false - }, - "refId": "A" - } - ], - "title": "MKTXP Collection Times", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Memory metrics about the Mikrotik Metric Exporter for Prometheus.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 9, - "x": 6, - "y": 152 - }, - "id": 98, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "builder", - "expr": "process_resident_memory_bytes", - "legendFormat": "{{__name__}}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "builder", - "expr": "process_virtual_memory_bytes", - "hide": false, - "legendFormat": "{{__name__}}", - "range": true, - "refId": "B" - } - ], - "title": "Memory Footprint", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "The CPU usage caused by the Prometheus exporter process. This is NOT the overall CPU usage.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "line" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "yellow", - "value": 10 - }, - { - "color": "orange", - "value": 20 - }, - { - "color": "red", - "value": 30 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 9, - "x": 15, - "y": 152 - }, - "id": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "editorMode": "code", - "expr": "rate(process_cpu_seconds_total[30s]) * 100", - "legendFormat": "cpu_usage", - "range": true, - "refId": "A" - } - ], - "title": "CPU Usage (%)", - "type": "timeseries" } ], "refresh": "10s", @@ -6164,7 +6185,7 @@ "list": [ { "current": { - "selected": false, + "selected": true, "text": "10.0.10.1", "value": "10.0.10.1" }, @@ -6232,6 +6253,6 @@ "timezone": "", "title": "Mikrotik MKTXP Exporter", "uid": "0j4sdLm7z", - "version": 14, + "version": 2, "weekStart": "" }