<mxfile host="app.diagrams.net" modified="2026-03-24T00:00:00.000Z" agent="Azure Local Load Tools" version="24.0.0" type="device">
  <diagram id="data-flow-monitoring" name="Monitoring Data Flow">
    <mxGraphModel dx="1422" dy="762" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="880" pageHeight="620" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="2" value="Monitoring Data Flow" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=16;fontStyle=1;" vertex="1" parent="1">
          <mxGeometry x="30" y="20" width="820" height="40" as="geometry" />
        </mxCell>
        <mxCell id="3" value="&lt;b&gt;Target Nodes&lt;/b&gt;&lt;br/&gt;Linux nodes and Windows guest VMs running on Azure Local" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=2;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="240" y="75" width="400" height="65" as="geometry" />
        </mxCell>
        <mxCell id="4" value="&lt;b&gt;MonitoringManager.psm1&lt;/b&gt;&lt;br/&gt;1. Reads alert-rules.yml to load thresholds&lt;br/&gt;2. Samples PerfMon / WMI counters at configurable interval&lt;br/&gt;3. Evaluates each metric against alert rules&lt;br/&gt;4. On threshold breach: appends to alerts log and pushes to Azure Monitor&lt;br/&gt;&lt;i&gt;Runs in parallel with Start-&lt;Tool&gt;.ps1 throughout the test window&lt;/i&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;strokeWidth=2;fontSize=11;align=left;spacingLeft=12;" vertex="1" parent="1">
          <mxGeometry x="80" y="215" width="720" height="120" as="geometry" />
        </mxCell>
        <mxCell id="5" value="&lt;b&gt;monitor-&lt;node&gt;.jsonl&lt;/b&gt;&lt;br/&gt;logs/&lt;tool&gt;/&lt;RunId&gt;/&lt;br/&gt;One JSON line per sample" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
          <mxGeometry x="50" y="420" width="220" height="70" as="geometry" />
        </mxCell>
        <mxCell id="6" value="&lt;b&gt;alerts-&lt;node&gt;.jsonl&lt;/b&gt;&lt;br/&gt;logs/&lt;tool&gt;/&lt;RunId&gt;/&lt;br/&gt;One JSON line per breach event" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
          <mxGeometry x="330" y="420" width="220" height="70" as="geometry" />
        </mxCell>
        <mxCell id="7" value="&lt;b&gt;Azure Monitor&lt;/b&gt;&lt;br/&gt;Metrics API push&lt;br/&gt;(if configured)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;strokeWidth=2;fontSize=11;" vertex="1" parent="1">
          <mxGeometry x="610" y="420" width="220" height="70" as="geometry" />
        </mxCell>
        <mxCell id="8" value="&lt;b&gt;Grafana Dashboard&lt;/b&gt;&lt;br/&gt;Real-time and post-run visualisation" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;strokeWidth=2;fontSize=11;" vertex="1" parent="1">
          <mxGeometry x="610" y="545" width="220" height="60" as="geometry" />
        </mxCell>
        <mxCell id="a1" value="WMI / WinRM" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;strokeColor=#555555;strokeWidth=2;fontSize=10;" edge="1" source="3" target="4" parent="1">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="a2" value="" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;strokeColor=#9673a6;strokeWidth=1.5;" edge="1" source="4" target="5" parent="1">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="a3" value="" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;strokeColor=#b85450;strokeWidth=1.5;" edge="1" source="4" target="6" parent="1">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="a4" value="" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;strokeColor=#6c8ebf;strokeWidth=1.5;" edge="1" source="4" target="7" parent="1">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="a5" value="" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;strokeColor=#6c8ebf;strokeWidth=2;" edge="1" source="7" target="8" parent="1">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
