diff --git a/grafana/coredns.json b/grafana/coredns.json new file mode 100644 index 0000000..ad9b6f4 --- /dev/null +++ b/grafana/coredns.json @@ -0,0 +1,233 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 10, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "rate(coredns_forward_request_count_total[1m])", + "legendFormat": "{{to}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "DNS queries forwarded", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "reqps", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 0 + }, + "hiddenSeries": false, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "rate(coredns_cache_hits_total[5m])", + "legendFormat": "hit: {{type}}", + "refId": "A" + }, + { + "expr": "rate(coredns_cache_misses_total[5m])", + "legendFormat": "miss", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "DNS cache hit rate", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "reqps", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": false, + "schemaVersion": 22, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-90d", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "CoreDNS", + "uid": "6droFAQWk", + "variables": { + "list": [] + }, + "version": 4 +} diff --git a/grafana/corerad.json b/grafana/corerad.json new file mode 100644 index 0000000..8e63556 --- /dev/null +++ b/grafana/corerad.json @@ -0,0 +1,525 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 9, + "links": [], + "panels": [ + { + "columns": [ + { + "text": "Current", + "value": "current" + } + ], + "datasource": null, + "fontSize": "100%", + "gridPos": { + "h": 9, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 8, + "pageSize": null, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Interface", + "align": "auto", + "colorMode": null, + "colors": [ + "#F2495C", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 0, + "link": false, + "mappingType": 1, + "pattern": "Metric", + "thresholds": [ + "" + ], + "type": "string", + "unit": "short", + "valueMaps": [] + }, + { + "alias": "", + "align": "auto", + "colorMode": "value", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Current", + "rangeMaps": [ + { + "from": "0", + "text": "false", + "to": "0.99" + }, + { + "from": "", + "text": "", + "to": "" + } + ], + "thresholds": [ + "0", + " 1" + ], + "type": "string", + "unit": "short", + "valueMaps": [ + { + "text": "false", + "value": "0" + }, + { + "text": "true", + "value": "1" + } + ] + } + ], + "targets": [ + { + "expr": "corerad_interface_advertising", + "legendFormat": "{{interface}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Interface advertising", + "transform": "timeseries_aggregations", + "type": "table" + }, + { + "columns": [ + { + "text": "Current", + "value": "current" + } + ], + "datasource": null, + "fontSize": "100%", + "gridPos": { + "h": 9, + "w": 4, + "x": 4, + "y": 0 + }, + "id": 10, + "pageSize": null, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Interface", + "align": "auto", + "colorMode": null, + "colors": [ + "#F2495C", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 0, + "link": false, + "mappingType": 1, + "pattern": "Metric", + "thresholds": [ + "" + ], + "type": "string", + "unit": "short", + "valueMaps": [] + }, + { + "alias": "", + "align": "auto", + "colorMode": "value", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Current", + "rangeMaps": [ + { + "from": "0", + "text": "false", + "to": "0.99" + }, + { + "from": "", + "text": "", + "to": "" + } + ], + "thresholds": [ + "0", + " 1" + ], + "type": "string", + "unit": "short", + "valueMaps": [ + { + "text": "false", + "value": "0" + }, + { + "text": "true", + "value": "1" + } + ] + } + ], + "targets": [ + { + "expr": "corerad_interface_forwarding", + "legendFormat": "{{interface}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Interface forwarding", + "transform": "timeseries_aggregations", + "type": "table" + }, + { + "columns": [ + { + "text": "Current", + "value": "current" + } + ], + "datasource": null, + "fontSize": "100%", + "gridPos": { + "h": 9, + "w": 4, + "x": 8, + "y": 0 + }, + "id": 9, + "pageSize": null, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Interface", + "align": "auto", + "colorMode": null, + "colors": [ + "#F2495C", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 0, + "link": false, + "mappingType": 1, + "pattern": "Metric", + "thresholds": [ + "" + ], + "type": "string", + "unit": "short", + "valueMaps": [] + }, + { + "alias": "", + "align": "auto", + "colorMode": "value", + "colors": [ + "#E02F44", + "#56A64B", + "rgba(245, 54, 54, 0.9)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Current", + "rangeMaps": [ + { + "from": "0", + "text": "false", + "to": "0.99" + }, + { + "from": "", + "text": "", + "to": "" + } + ], + "thresholds": [ + "0", + " 1" + ], + "type": "string", + "unit": "short", + "valueMaps": [ + { + "text": "false", + "value": "0" + }, + { + "text": "true", + "value": "1" + } + ] + } + ], + "targets": [ + { + "expr": "corerad_interface_autoconfiguration", + "legendFormat": "{{interface}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Interface autoconfiguration", + "transform": "timeseries_aggregations", + "type": "table" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 0 + }, + "hiddenSeries": false, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "rate(corerad_advertiser_messages_received_total[5m])", + "legendFormat": "{{interface}}: {{message}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Received NDP messages per second", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ops", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "rate(corerad_advertiser_router_advertisements_total[5m])", + "legendFormat": "{{interface}}: {{type}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Router Advertisements per second", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ops", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": false, + "schemaVersion": 22, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "CoreRAD", + "uid": "f8jqyBYWz", + "variables": { + "list": [] + }, + "version": 11 +} diff --git a/grafana/network.json b/grafana/network.json index 7ef3324..4c458d8 100644 --- a/grafana/network.json +++ b/grafana/network.json @@ -23,15 +23,17 @@ "bars": false, "dashLength": 10, "dashes": false, + "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 12, + "h": 10, + "w": 24, "x": 0, "y": 0 }, - "id": 2, + "hiddenSeries": false, + "id": 9, "legend": { "alignAsTable": true, "avg": false, @@ -62,29 +64,40 @@ } ], "spaceLength": 10, - "stack": false, + "stack": true, "steppedLine": false, "targets": [ { - "expr": "rate(ifInOctets{ifAlias=~\"WAN|wg0\",instance=\"routnerr-1\",job=\"snmp\"}[1m])", + "expr": "irate(node_network_receive_bytes_total{instance=~\"routnerr.*\",device!~\"lo|docker.*|virbr.*\"}[1m]) * 8", "format": "time_series", + "hide": false, "intervalFactor": 1, - "legendFormat": "receive: {{ifAlias}}", + "legendFormat": "receive: {{device}}", "refId": "A" }, { - "expr": "rate(ifOutOctets{ifAlias=~\"WAN|wg0\",instance=\"routnerr-1\",job=\"snmp\"}[1m])", + "expr": "irate(node_network_transmit_bytes_total{instance=~\"routnerr.*\",device!~\"lo|docker.*|virbr.*\"}[1m]) * 8", "format": "time_series", "intervalFactor": 1, - "legendFormat": "transmit: {{ifAlias}}", + "legendFormat": "transmit: {{device}}", "refId": "B" + }, + { + "expr": "irate(wireguard_peer_receive_bytes_total{instance=~\"routnerr.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8", + "legendFormat": "receive: {{device}}: {{name}}", + "refId": "C" + }, + { + "expr": "irate(wireguard_peer_transmit_bytes_total{instance=~\"routnerr.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8", + "legendFormat": "transmit: {{device}}: {{name}}", + "refId": "D" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "WAN Bandwidth I/O", + "title": "WAN", "tooltip": { "shared": true, "sort": 0, @@ -126,324 +139,16 @@ "bars": false, "dashLength": 10, "dashes": false, + "datasource": null, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 4, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/transmit/", - "stack": "B", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(ifInUcastPkts{ifAlias=~\"WAN|wg0\",instance=\"routnerr-1\",job=\"snmp\"}[1m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "receive unicast: {{ifAlias}}", - "refId": "A" - }, - { - "expr": "rate(ifOutUcastPkts{ifAlias=~\"WAN|wg0\",instance=\"routnerr-1\",job=\"snmp\"}[1m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "transmit unicast: {{ifAlias}}", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Packet I/O", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "pps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, + "h": 11, + "w": 24, "x": 0, - "y": 8 - }, - "id": 3, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/transmit/", - "stack": "B", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(ifInOctets{ifAlias!~\"WAN|lo|eth2|wg.*|imq.*\",instance=\"routnerr-1\",job=\"snmp\"}[1m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "transmit: LAN to {{ifAlias}}", - "refId": "A" - }, - { - "expr": "rate(ifOutOctets{ifAlias!~\"WAN|lo|eth2|wg.*|imq.*\",instance=\"routnerr-1\",job=\"snmp\"}[1m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "receive: {{ifAlias}} from LAN", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "LAN Bandwidth I/O", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 6, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/to/", - "stack": "B", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "from: {{ifAlias}}", - "refId": "A" - }, - { - "expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "to: {{ifAlias}}", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Office switch", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 + "y": 10 }, + "hiddenSeries": false, "id": 7, "legend": { "alignAsTable": true, @@ -479,14 +184,14 @@ "steppedLine": false, "targets": [ { - "expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2", + "expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8", "format": "time_series", "intervalFactor": 1, "legendFormat": "from: {{ifAlias}}", "refId": "A" }, { - "expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2", + "expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8", "format": "time_series", "intervalFactor": 1, "legendFormat": "to: {{ifAlias}}", @@ -533,9 +238,114 @@ "align": false, "alignLevel": null } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 21 + }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/to/", + "stack": "B", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "from: {{ifAlias}}", + "refId": "A" + }, + { + "expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "to: {{ifAlias}}", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Office switch", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } } ], - "schemaVersion": 19, + "schemaVersion": 22, "style": "dark", "tags": [], "templating": { @@ -573,5 +383,8 @@ "timezone": "", "title": "Network", "uid": "e1K4fWrmz", - "version": 8 + "variables": { + "list": [] + }, + "version": 17 } diff --git a/grafana/node.json b/grafana/node.json index b20fdfe..d682b68 100644 --- a/grafana/node.json +++ b/grafana/node.json @@ -16,7 +16,7 @@ "gnetId": null, "graphTooltip": 0, "id": 2, - "iteration": 1569986967332, + "iteration": 1587508261254, "links": [], "panels": [ { @@ -29,7 +29,7 @@ "#d44a3a" ], "datasource": null, - "decimals": null, + "decimals": 2, "format": "s", "gauge": { "maxValue": 100, @@ -40,7 +40,7 @@ }, "gridPos": { "h": 7, - "w": 4, + "w": 3, "x": 0, "y": 0 }, @@ -61,7 +61,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -84,6 +83,7 @@ { "expr": "time() - node_boot_time_seconds{instance=~\"$instance.*\",job=\"node\"}", "format": "time_series", + "instant": true, "intervalFactor": 1, "legendFormat": "", "refId": "A" @@ -112,10 +112,11 @@ "fillGradient": 0, "gridPos": { "h": 7, - "w": 10, - "x": 4, + "w": 7, + "x": 3, "y": 0 }, + "hiddenSeries": false, "id": 14, "legend": { "alignAsTable": true, @@ -151,7 +152,7 @@ "steppedLine": false, "targets": [ { - "expr": "irate(node_network_receive_bytes_total{instance=~\"$instance.*\",device=~\"enp.*|eth.*|tun.*\"}[1m])", + "expr": "irate(node_network_receive_bytes_total{instance=~\"$instance.*\",device!~\"lo|docker.*|virbr.*\"}[1m]) * 8", "format": "time_series", "hide": false, "intervalFactor": 1, @@ -159,19 +160,19 @@ "refId": "A" }, { - "expr": "irate(node_network_transmit_bytes_total{instance=~\"$instance.*\",device=~\"enp.*|eth.*|tun.*\"}[1m])", + "expr": "irate(node_network_transmit_bytes_total{instance=~\"$instance.*\",device!~\"lo|docker.*|virbr.*\"}[1m]) * 8", "format": "time_series", "intervalFactor": 1, "legendFormat": "transmit: {{device}}", "refId": "B" }, { - "expr": "irate(wireguard_peer_receive_bytes_total{instance=~\"$instance.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info", + "expr": "irate(wireguard_peer_receive_bytes_total{instance=~\"$instance.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8", "legendFormat": "receive: {{device}}: {{name}}", "refId": "C" }, { - "expr": "irate(wireguard_peer_transmit_bytes_total{instance=~\"$instance.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info", + "expr": "irate(wireguard_peer_transmit_bytes_total{instance=~\"$instance.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8", "legendFormat": "transmit: {{device}}: {{name}}", "refId": "D" } @@ -227,10 +228,11 @@ "fillGradient": 0, "gridPos": { "h": 7, - "w": 10, - "x": 14, + "w": 7, + "x": 10, "y": 0 }, + "hiddenSeries": false, "id": 16, "legend": { "alignAsTable": true, @@ -267,10 +269,10 @@ "refId": "A" }, { - "expr": "node_hwmon_temp_celsius{instance=~\"$instance.*\",job=\"node\"} * on (chip) group_left(chip_name) node_hwmon_chip_names{instance=~\"$instance.*\",job=\"node\"}", + "expr": "node_hwmon_temp_celsius{instance=~\"$instance.*\",job=\"node\"} * on (instance, chip) group_left(chip_name) node_hwmon_chip_names * on (instance, chip, sensor) group_left(label) node_hwmon_sensor_label", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{chip_name}}: {{sensor}}", + "legendFormat": "{{chip_name}}: {{label}} ({{sensor}})", "refId": "B" }, { @@ -329,11 +331,109 @@ "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 7, + "w": 7, + "x": 17, + "y": 0 + }, + "hiddenSeries": false, + "id": 20, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "node_hwmon_power_watt{instance=~\"$instance.*\",job=\"node\"} * on (instance, chip) group_left(chip_name) node_hwmon_chip_names * on (instance, chip, sensor) group_left(label) node_hwmon_sensor_label", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{chip_name}}: {{label}} ({{sensor}})", + "refId": "B" + }, + { + "expr": "node_hwmon_power_average_watt{instance=~\"$instance.*\",job=\"node\"} * on (instance, chip) group_left(chip_name) node_hwmon_chip_names", + "legendFormat": "{{chip_name}}: {{sensor}} (average)", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Device power consumption", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "watt", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, "w": 8, "x": 0, "y": 7 }, + "hiddenSeries": false, "id": 13, "legend": { "alignAsTable": true, @@ -420,11 +520,12 @@ "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 7, "w": 8, "x": 8, "y": 7 }, + "hiddenSeries": false, "id": 17, "legend": { "alignAsTable": false, @@ -511,11 +612,12 @@ "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 7, "w": 8, "x": 16, "y": 7 }, + "hiddenSeries": false, "id": 9, "legend": { "alignAsTable": true, @@ -623,11 +725,12 @@ "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 7, "w": 8, "x": 0, - "y": 15 + "y": 14 }, + "hiddenSeries": false, "id": 10, "legend": { "alignAsTable": true, @@ -728,11 +831,12 @@ "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 7, "w": 8, "x": 8, - "y": 15 + "y": 14 }, + "hiddenSeries": false, "id": 15, "legend": { "alignAsTable": false, @@ -826,11 +930,12 @@ "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 7, "w": 8, "x": 16, - "y": 15 + "y": 14 }, + "hiddenSeries": false, "id": 11, "legend": { "alignAsTable": true, @@ -908,10 +1013,39 @@ "align": false, "alignLevel": null } + }, + { + "datasource": "servnerr-3 Loki", + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 19, + "options": { + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "repeat": null, + "repeatDirection": "h", + "targets": [ + { + "expr": "{filename=\"/var/log/auth.log\",job=\"varlogs\"} Connection closed", + "live": false, + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "SSH connection failures", + "type": "logs" } ], "refresh": false, - "schemaVersion": 20, + "schemaVersion": 22, "style": "dark", "tags": [ "node" @@ -921,7 +1055,6 @@ { "allValue": null, "current": { - "selected": true, "text": "servnerr-3", "value": "servnerr-3" }, @@ -929,6 +1062,7 @@ "definition": "", "hide": 0, "includeAll": false, + "index": -1, "label": null, "multi": false, "name": "instance", @@ -947,7 +1081,7 @@ ] }, "time": { - "from": "now-2d", + "from": "now-24h", "to": "now" }, "timepicker": { @@ -978,5 +1112,8 @@ "timezone": "", "title": "Node", "uid": "0y2T6Tnmk", - "version": 49 + "variables": { + "list": [] + }, + "version": 62 } diff --git a/grafana/wgipamd.json b/grafana/wgipamd.json new file mode 100644 index 0000000..d542df3 --- /dev/null +++ b/grafana/wgipamd.json @@ -0,0 +1,309 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 8, + "links": [], + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "#299c46", + "rgba(237, 129, 40, 0.89)", + "#d44a3a" + ], + "datasource": null, + "format": "s", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 9, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 6, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false, + "ymax": null, + "ymin": null + }, + "tableColumn": "", + "targets": [ + { + "expr": "time() - wgipamd_store_last_purge", + "refId": "A" + } + ], + "thresholds": "", + "timeFrom": null, + "timeShift": null, + "title": "Time since last Purge", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 10, + "x": 4, + "y": 0 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "rate(wgipamd_server_requests_total[1m])", + "legendFormat": "{{interface}}: {{operation}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "wg-dynamic Requests", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "reqps", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 10, + "x": 14, + "y": 0 + }, + "hiddenSeries": false, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "wgipamd_store_ips_allocated / wgipamd_store_subnet_allocatable_size", + "legendFormat": "{{subnet}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Subnet utilization", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "schemaVersion": 22, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "wgipamd", + "uid": "-rOu1LfWk", + "variables": { + "list": [] + }, + "version": 1 +}