60 lines
2.2 KiB
JSON
60 lines
2.2 KiB
JSON
|
|
{
|
||
|
|
"uid": "labsim-matrix",
|
||
|
|
"title": "labsim — VLAN connectivity matrix",
|
||
|
|
"tags": ["labsim"],
|
||
|
|
"timezone": "browser",
|
||
|
|
"refresh": "10s",
|
||
|
|
"time": { "from": "now-30m", "to": "now" },
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"type": "stat",
|
||
|
|
"title": "Reachable paths",
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 },
|
||
|
|
"targets": [ { "expr": "sum(labsim_reachable)", "refId": "A" } ],
|
||
|
|
"fieldConfig": { "defaults": { "thresholds": { "mode": "absolute",
|
||
|
|
"steps": [ { "color": "red", "value": null }, { "color": "green", "value": 90 } ] } } }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "stat",
|
||
|
|
"title": "Blocked paths",
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 6, "y": 0 },
|
||
|
|
"targets": [ { "expr": "count(labsim_reachable == 0) or vector(0)", "refId": "A" } ],
|
||
|
|
"fieldConfig": { "defaults": { "thresholds": { "mode": "absolute",
|
||
|
|
"steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 } ] } } }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "stat",
|
||
|
|
"title": "Sweep duration (s)",
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 12, "y": 0 },
|
||
|
|
"targets": [ { "expr": "labsim_sweep_seconds", "refId": "A" } ]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "stat",
|
||
|
|
"title": "Sweeps",
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 18, "y": 0 },
|
||
|
|
"targets": [ { "expr": "labsim_sweep_total", "refId": "A" } ]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "heatmap",
|
||
|
|
"title": "ICMP matrix (src → dst) — green = reachable",
|
||
|
|
"gridPos": { "h": 10, "w": 24, "x": 0, "y": 4 },
|
||
|
|
"targets": [ { "expr": "labsim_reachable{proto=\"icmp\"}",
|
||
|
|
"legendFormat": "{{src}} → {{dst}}", "refId": "A" } ]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "state-timeline",
|
||
|
|
"title": "Every path over time — a firewall change shows up here immediately",
|
||
|
|
"gridPos": { "h": 12, "w": 24, "x": 0, "y": 14 },
|
||
|
|
"targets": [ { "expr": "labsim_reachable",
|
||
|
|
"legendFormat": "{{proto}} {{src}} → {{dst}}", "refId": "A" } ],
|
||
|
|
"fieldConfig": { "defaults": {
|
||
|
|
"mappings": [ { "type": "value", "options": {
|
||
|
|
"0": { "text": "blocked", "color": "red", "index": 0 },
|
||
|
|
"1": { "text": "ok", "color": "green", "index": 1 } } } ] } },
|
||
|
|
"options": { "mergeValues": true, "showValue": "never" }
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"schemaVersion": 39,
|
||
|
|
"version": 1
|
||
|
|
}
|