{ "uid": "meshcore-repeater", "title": "MeshCore — repeater $node", "description": "Stav MeshCore repeaterů čtený přes mesh (meshcore-exporter).", "tags": [ "meshcore", "lora" ], "editable": true, "graphTooltip": 1, "refresh": "5m", "schemaVersion": 39, "time": { "from": "now-24h", "to": "now" }, "timezone": "browser", "templating": { "list": [ { "name": "datasource", "label": "Zdroj dat", "type": "datasource", "query": "prometheus", "current": {}, "hide": 0 }, { "name": "job", "label": "Job", "type": "textbox", "query": "meshcore_exporter", "current": { "text": "meshcore_exporter", "value": "meshcore_exporter" }, "hide": 0, "description": "Hodnota labelu job, pod kterým Prometheus exportér scrapuje (regex)." }, { "name": "window", "label": "Okno", "type": "custom", "query": "1h,3h,6h,12h,24h,48h", "current": { "text": "24h", "value": "24h" }, "options": [ { "text": "1h", "value": "1h", "selected": false }, { "text": "3h", "value": "3h", "selected": false }, { "text": "6h", "value": "6h", "selected": false }, { "text": "12h", "value": "12h", "selected": false }, { "text": "24h", "value": "24h", "selected": true }, { "text": "48h", "value": "48h", "selected": false } ], "hide": 0, "description": "Okno pro rychlosti a duty cycle. Data se mění jen při čtení repeateru, takže okno má být aspoň 2–3× interval čtení (výchozí 8 h → 24h)." }, { "name": "node", "label": "Repeater", "type": "query", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "definition": "label_values(meshcore_uptime_seconds{job=~\"$job\"}, node)", "query": { "query": "label_values(meshcore_uptime_seconds{job=~\"$job\"}, node)", "refId": "node" }, "refresh": 2, "sort": 1, "current": {}, "hide": 0 } ] }, "annotations": { "list": [] }, "panels": [ { "id": 1, "type": "stat", "title": "Baterie % (odhad z napětí)", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 5, "w": 4, "x": 0, "y": 0 }, "fieldConfig": { "defaults": { "unit": "percent", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "orange", "value": 20 }, { "color": "yellow", "value": 40 }, { "color": "green", "value": 60 } ] }, "min": 0, "max": 100 }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "clamp(100 * (meshcore_battery_millivolts{job=~\"$job\", node=\"$node\"} - 3300) / 900, 0, 100)", "refId": "A" } ], "description": "Lineární odhad z napětí: 3,30 V = 0 %, 4,20 V = 100 % (Li-ion článek). LiFePO4 nebo jiný článek má jinou křivku; uprav výraz v panelu." }, { "id": 2, "type": "stat", "title": "Teplota", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 5, "w": 4, "x": 4, "y": 0 }, "fieldConfig": { "defaults": { "unit": "celsius", "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null }, { "color": "green", "value": 0 }, { "color": "orange", "value": 40 } ] } }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_temperature_celsius{job=~\"$job\", node=\"$node\"}", "refId": "A" } ], "description": "Externí senzor, pokud ho uzel má a exportér je přihlášený jako admin; jinak teplota MCU." }, { "id": 3, "type": "stat", "title": "Uptime", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 5, "w": 4, "x": 8, "y": 0 }, "fieldConfig": { "defaults": { "unit": "s", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_uptime_seconds{job=~\"$job\", node=\"$node\"}", "refId": "A" } ] }, { "id": 4, "type": "stat", "title": "Stáří posledního čtení", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 5, "w": 4, "x": 12, "y": 0 }, "fieldConfig": { "defaults": { "unit": "s", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 30000 }, { "color": "red", "value": 58000 } ] } }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "time() - meshcore_last_scrape_success_timestamp{job=~\"$job\", node=\"$node\"}", "refId": "A" } ], "description": "Kdy naposledy uzel odpověděl. Při výchozím intervalu 8 h je normál do ~28800 s." }, { "id": 5, "type": "stat", "title": "Fronta TX", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 5, "w": 4, "x": 16, "y": 0 }, "fieldConfig": { "defaults": { "unit": "none", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 3 }, { "color": "red", "value": 8 } ] } }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_queue_length{job=~\"$job\", node=\"$node\"}", "refId": "A" } ] }, { "id": 6, "type": "stat", "title": "Šumové pozadí", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 5, "w": 4, "x": 20, "y": 0 }, "fieldConfig": { "defaults": { "unit": "dBm", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": -105 }, { "color": "red", "value": -95 } ] } }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_noise_floor_dbm{job=~\"$job\", node=\"$node\"}", "refId": "A" } ], "description": "Čím níž, tím líp. Nad −100 dBm uzel hůř slyší slabé signály (rušení, blízký vysílač)." }, { "id": 10, "type": "timeseries", "title": "Baterie (mV)", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 5 }, "fieldConfig": { "defaults": { "unit": "mV", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000, "axisSoftMin": 3000, "axisSoftMax": 4300 } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_battery_millivolts{job=~\"$job\", node=\"$node\"}", "refId": "A", "legendFormat": "baterie" } ] }, { "id": 11, "type": "timeseries", "title": "Teplota a vlhkost", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 5 }, "fieldConfig": { "defaults": { "unit": "celsius", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000 } }, "overrides": [ { "matcher": { "id": "byName", "options": "vlhkost (%)" }, "properties": [ { "id": "unit", "value": "humidity" }, { "id": "custom.axisPlacement", "value": "right" } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_temperature_celsius{job=~\"$job\", node=\"$node\"}", "refId": "A", "legendFormat": "teplota (°C)" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_humidity_percent{job=~\"$job\", node=\"$node\"}", "refId": "B", "legendFormat": "vlhkost (%)" } ], "description": "Externí senzor, pokud ho uzel má a exportér je přihlášený jako admin; jinak teplota MCU." }, { "id": 12, "type": "timeseries", "title": "Provoz — pakety za hodinu", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 13 }, "fieldConfig": { "defaults": { "unit": "none", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000, "axisLabel": "↓ přijato / ↑ odesláno" } }, "overrides": [ { "matcher": { "id": "byName", "options": "odesláno" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "orange" } } ] }, { "matcher": { "id": "byName", "options": "přijato" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "blue" } }, { "id": "custom.transform", "value": "negative-Y" } ] }, { "matcher": { "id": "byName", "options": "chyby příjmu (CRC)" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "red" } }, { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_packets_received_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "A", "legendFormat": "přijato" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_packets_sent_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "B", "legendFormat": "odesláno" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_receive_errors_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "C", "legendFormat": "chyby příjmu (CRC)" } ], "description": "Nad nulou odeslané pakety, pod nulou přijaté a chyby příjmu." }, { "id": 13, "type": "timeseries", "title": "Signál — RSSI / SNR / šum", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 13 }, "fieldConfig": { "defaults": { "unit": "none", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000 } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_last_rssi_dbm{job=~\"$job\", node=\"$node\"}", "refId": "A", "legendFormat": "RSSI posledního paketu (dBm)" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_last_snr_db{job=~\"$job\", node=\"$node\"}", "refId": "B", "legendFormat": "SNR posledního paketu (dB)" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "meshcore_noise_floor_dbm{job=~\"$job\", node=\"$node\"}", "refId": "C", "legendFormat": "šumové pozadí (dBm)" } ] }, { "id": 14, "type": "timeseries", "title": "Airtime za hodinu (s)", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 21 }, "fieldConfig": { "defaults": { "unit": "s", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000, "axisLabel": "↓ příjem / ↑ vysílání" } }, "overrides": [ { "matcher": { "id": "byName", "options": "vysílání" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "orange" } } ] }, { "matcher": { "id": "byName", "options": "příjem" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "blue" } }, { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_tx_airtime_seconds_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "A", "legendFormat": "vysílání" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_rx_airtime_seconds_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "B", "legendFormat": "příjem" } ], "description": "Nad nulou čas vysílání, pod nulou čas příjmu." }, { "id": 15, "type": "timeseries", "title": "Přeposílání a potíže s vysíláním (za hodinu)", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 21 }, "fieldConfig": { "defaults": { "unit": "none", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000 } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_packets_sent_flood_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "A", "legendFormat": "flood přeposláno" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_packets_sent_direct_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "B", "legendFormat": "direct přeposláno" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_flood_duplicates_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "C", "legendFormat": "flood duplikáty" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_tx_start_fail_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "D", "legendFormat": "TX start fail" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_tx_timeout_total{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "E", "legendFormat": "TX timeout" } ], "description": "TX start fail / TX timeout posílají jen některé forky firmwaru; na běžném firmwaru tu nic není. Rostoucí timeout = rádio vysílání nedokončuje." }, { "id": 20, "type": "row", "title": "Baterie a duty cycle", "collapsed": false, "panels": [], "gridPos": { "h": 1, "w": 24, "x": 0, "y": 29 } }, { "id": 21, "type": "stat", "title": "Trend baterie (mV/h, + nabíjí)", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 6, "w": 4, "x": 0, "y": 30 }, "fieldConfig": { "defaults": { "unit": "none", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 0 } ] }, "decimals": 0 }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "deriv(meshcore_battery_millivolts{job=~\"$job\", node=\"$node\"}[$window]) * 3600", "refId": "A" } ], "description": "Změna napětí za hodinu, spočítaná z okna `Okno`." }, { "id": 22, "type": "stat", "title": "TX duty cycle", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 6, "w": 4, "x": 4, "y": 30 }, "fieldConfig": { "defaults": { "unit": "percent", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 5 }, { "color": "red", "value": 10 } ] }, "decimals": 2 }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_tx_airtime_seconds_total{job=~\"$job\", node=\"$node\"}[$window]) * 100", "refId": "A" } ], "description": "Podíl času, kdy uzel vysílá. Pásmo 869,4–869,65 MHz v EU dovoluje 10 %." }, { "id": 23, "type": "timeseries", "title": "Duty cycle %", "datasource": { "type": "prometheus", "uid": "${datasource}" }, "gridPos": { "h": 6, "w": 16, "x": 8, "y": 30 }, "fieldConfig": { "defaults": { "unit": "percent", "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never", "spanNulls": 3600000, "axisLabel": "↓ RX / ↑ TX" } }, "overrides": [ { "matcher": { "id": "byName", "options": "vysílání (TX)" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "orange" } } ] }, { "matcher": { "id": "byName", "options": "příjem (RX)" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "blue" } }, { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_tx_airtime_seconds_total{job=~\"$job\", node=\"$node\"}[$window]) * 100", "refId": "A", "legendFormat": "vysílání (TX)" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "rate(meshcore_rx_airtime_seconds_total{job=~\"$job\", node=\"$node\"}[$window]) * 100", "refId": "B", "legendFormat": "příjem (RX)" } ], "description": "Nad nulou podíl času vysílání (limit pásma 10 %), pod nulou příjmu." } ] }