{ "uid": "home-net", "title": "Домашняя сеть (роутер)", "tags": [ "rpi", "router" ], "timezone": "browser", "schemaVersion": 39, "refresh": "5m", "time": { "from": "now-24h", "to": "now" }, "editable": true, "templating": { "list": [ { "name": "iface", "type": "query", "datasource": { "type": "prometheus", "uid": "prometheus" }, "query": { "query": "label_values(router_iface_bytes_total, iface)", "refId": "i" }, "refresh": 2, "includeAll": true, "multi": true, "current": { "text": "wan", "value": "wan" } } ] }, "panels": [ { "id": 1, "type": "stat", "title": "Клиентов онлайн", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 0, "w": 6, "h": 4 }, "description": "", "targets": [ { "refId": "A", "expr": "router_clients_online", "instant": true, "range": false } ], "fieldConfig": { "defaults": {}, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "none", "graphMode": "area", "textMode": "value" } }, { "id": 2, "type": "stat", "title": "Онлайн без имени (не в known.json)", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 6, "y": 0, "w": 6, "h": 4 }, "description": "Устройства, которым ещё не дали имя через `router known add`.", "targets": [ { "refId": "A", "expr": "router_clients_unknown_online", "instant": true, "range": false } ], "fieldConfig": { "defaults": {}, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "none", "graphMode": "area", "textMode": "value" } }, { "id": 3, "type": "stat", "title": "Wi-Fi 2.4 ГГц", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 12, "y": 0, "w": 6, "h": 4 }, "description": "", "targets": [ { "refId": "A", "expr": "router_wifi_stations{band=\"wifi-2.4\"}", "instant": true, "range": false } ], "fieldConfig": { "defaults": {}, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "none", "graphMode": "area", "textMode": "value" } }, { "id": 4, "type": "stat", "title": "Wi-Fi 5 ГГц", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 18, "y": 0, "w": 6, "h": 4 }, "description": "", "targets": [ { "refId": "A", "expr": "router_wifi_stations{band=\"wifi-5\"}", "instant": true, "range": false } ], "fieldConfig": { "defaults": {}, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "none", "graphMode": "area", "textMode": "value" } }, { "id": 5, "type": "timeseries", "title": "Загрузка (↓ rx) по интерфейсам", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 4, "w": 12, "h": 9 }, "targets": [ { "refId": "A", "expr": "rate(router_iface_bytes_total{iface=~\"$iface\",dir=\"rx\"}[5m])", "legendFormat": "{{iface}}" } ], "fieldConfig": { "defaults": { "unit": "Bps", "custom": { "lineWidth": 2, "fillOpacity": 10, "spanNulls": true } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom" } } }, { "id": 6, "type": "timeseries", "title": "Отдача (↑ tx) по интерфейсам", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 12, "y": 4, "w": 12, "h": 9 }, "targets": [ { "refId": "A", "expr": "rate(router_iface_bytes_total{iface=~\"$iface\",dir=\"tx\"}[5m])", "legendFormat": "{{iface}}" } ], "fieldConfig": { "defaults": { "unit": "Bps", "custom": { "lineWidth": 2, "fillOpacity": 10, "spanNulls": true } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom" } } }, { "id": 7, "type": "timeseries", "title": "Клиенты онлайн", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 13, "w": 24, "h": 7 }, "targets": [ { "refId": "A", "expr": "router_clients_online", "legendFormat": "всего" }, { "refId": "B", "expr": "router_clients_unknown_online", "legendFormat": "без имени" } ], "fieldConfig": { "defaults": { "unit": "short", "custom": { "lineWidth": 2, "fillOpacity": 10, "spanNulls": true } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom" } } } ] }