Sync portfolio laboratory source

This commit is contained in:
portfolio 2026-11-26 13:34:17 +03:00
commit 24203e1f78
3 changed files with 67 additions and 1 deletions

View file

@ -324,4 +324,69 @@
</root>
</mxGraphModel>
</diagram>
<diagram id="metrics" name="Сбор метрик">
<mxGraphModel grid="1" gridSize="10" guides="1" page="1" pageWidth="1280" pageHeight="740" background="#ffffff">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="title" value="&lt;b&gt;Сбор метрик&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:14px&quot;&gt;От источников до временных рядов, дашбордов и правил оповещений&lt;/font&gt;" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=20;fillColor=#142b40;fontColor=#ffffff;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="42" y="28" width="1196" height="68" as="geometry" />
</mxCell>
<mxCell id="host" value="&lt;b&gt;Telegraf на гипервизоре&lt;/b&gt;&lt;br&gt;CPU, память, диски, сеть и метрики libvirt" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#e7eff9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="42" y="136" width="248" height="91" as="geometry" />
</mxCell>
<mxCell id="exporters" value="&lt;b&gt;Экспортёры сервисов&lt;/b&gt;&lt;br&gt;Состояние Kubernetes, CNPG, MinIO, Trivy и сам Collector" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#e7eff9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="42" y="285" width="248" height="105" as="geometry" />
</mxCell>
<mxCell id="worker" value="&lt;b&gt;Воркеры и kubelet&lt;/b&gt;&lt;br&gt;ОС, Pod, контейнеры и тома" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#e7eff9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="42" y="463" width="248" height="91" as="geometry" />
</mxCell>
<mxCell id="gateway" value="&lt;b&gt;OTel Collector Gateway&lt;/b&gt;&lt;br&gt;Принимает OTLP, опрашивает Prometheus-экспортёры, пакетирует метрики" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#fff1dc;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="353" y="205" width="250" height="125" as="geometry" />
</mxCell>
<mxCell id="daemon" value="&lt;b&gt;OTel на воркерах&lt;/b&gt;&lt;br&gt;hostmetrics и kubeletstats, метка источника и пакетирование" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#fff1dc;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="353" y="450" width="250" height="115" as="geometry" />
</mxCell>
<mxCell id="metrics" value="&lt;b&gt;VictoriaMetrics&lt;/b&gt;&lt;br&gt;Хранилище временных рядов на постоянном томе" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#dff1e9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="668" y="295" width="246" height="100" as="geometry" />
</mxCell>
<mxCell id="grafana" value="&lt;b&gt;Grafana&lt;/b&gt;&lt;br&gt;Панели ресурсов и сервисов" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#e7eff9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="980" y="144" width="258" height="88" as="geometry" />
</mxCell>
<mxCell id="alert" value="&lt;b&gt;vmalert&lt;/b&gt;&lt;br&gt;Выполняет правила по временным рядам" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#e7eff9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="980" y="320" width="258" height="88" as="geometry" />
</mxCell>
<mxCell id="notify" value="&lt;b&gt;Alertmanager&lt;/b&gt;&lt;br&gt;Группирует и направляет оповещения" style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#e7eff9;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="980" y="488" width="258" height="90" as="geometry" />
</mxCell>
<mxCell id="host-gateway" value="OTLP" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.6;entryX=0;entryY=0.28;" edge="1" parent="1" source="host" target="gateway">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="exporters-gateway" value="Scrape" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.45;entryX=0;entryY=0.77;" edge="1" parent="1" source="exporters" target="gateway">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="worker-daemon" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="worker" target="daemon">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="gateway-metrics" value="OTLP" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.65;entryX=0;entryY=0.27;" edge="1" parent="1" source="gateway" target="metrics">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="daemon-metrics" value="OTLP" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.35;entryX=0;entryY=0.75;" edge="1" parent="1" source="daemon" target="metrics">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="metrics-grafana" value="PromQL" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.28;entryX=0;entryY=0.5;" edge="1" parent="1" source="metrics" target="grafana">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="metrics-alert" value="PromQL" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=1;exitY=0.75;entryX=0;entryY=0.5;" edge="1" parent="1" source="metrics" target="alert">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="alert-notify" value="алерты" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#425e73;strokeWidth=1.5;fontSize=12;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="alert" target="notify">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="note" value="Стрелки показывают движение данных. Коллекторы отправляют метрики в VictoriaMetrics по OTLP/HTTP, а Grafana и vmalert читают их через Prometheus-совместимый API." style="rounded=1;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=15;spacingRight=10;fontSize=15;fillColor=#eef3f8;fontColor=#142b40;strokeColor=#8496aa;" vertex="1" parent="1">
<mxGeometry x="42" y="622" width="1196" height="65" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>