- api и worker отдают traces, metrics и logs по OTLP в Collector (memory_limiter, redaction, batch, ограниченная очередь и retry); хранилища: Prometheus (OTLP receiver), Loki, Tempo; Grafana с provisioning datasources и dashboard «Messenger lab6» - W3C trace context через outbox и RabbitMQ: producer/consumer spans связывают upload, публикации и попытки worker в одном trace - SLO доступности API (SLI на HAProxy) и времени до ready, multiwindow burn-rate alerts, ApiHighErrorRate, JobQueueLagGrowing, DbPoolSaturated, TelemetryExportFailing; unit-тесты promtool, runbooks - кампания трека 2 (k6, 6 отказов по расписанию), разбор и графики; проверки сигналов и истории telemetry, evidence и REPORT.md
34 lines
4.9 KiB
XML
34 lines
4.9 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1300" height="430" font-family="sans-serif" font-size="11">
|
||
<rect width="1300" height="430" fill="white"/>
|
||
<rect x="300.9" y="20" width="52.9" height="260" fill="#eeeeee"/><text x="303.9" y="32" fill="#555">spike</text>
|
||
<rect x="510.3" y="20" width="104.9" height="260" fill="#eeeeee"/><text x="513.3" y="44" fill="#555">handler-slow</text>
|
||
<rect x="667.3" y="20" width="261.8" height="260" fill="#eeeeee"/><text x="670.3" y="56" fill="#555">api-degradation</text>
|
||
<rect x="1173.4" y="20" width="54.2" height="260" fill="#eeeeee"/><text x="1176.4" y="68" fill="#555">collector-down</text>
|
||
<line x1="170" x2="1280" y1="280.0" y2="280.0" stroke="#ddd"/><text x="164" y="284.0" text-anchor="end">0%</text>
|
||
<line x1="170" x2="1280" y1="215.0" y2="215.0" stroke="#ddd"/><text x="164" y="219.0" text-anchor="end">25%</text>
|
||
<line x1="170" x2="1280" y1="150.0" y2="150.0" stroke="#ddd"/><text x="164" y="154.0" text-anchor="end">50%</text>
|
||
<line x1="170" x2="1280" y1="85.0" y2="85.0" stroke="#ddd"/><text x="164" y="89.0" text-anchor="end">75%</text>
|
||
<line x1="170" x2="1280" y1="20.0" y2="20.0" stroke="#ddd"/><text x="164" y="24.0" text-anchor="end">100%</text>
|
||
<polyline fill="none" stroke="#d62728" stroke-width="1.5" points="170.0,280.0 196.2,280.0 222.4,280.0 248.5,280.0 274.7,280.0 300.9,280.0 327.1,140.3 353.2,20.0 379.4,165.3 405.6,280.0 431.8,280.0 458.0,280.0 484.1,280.0 510.3,280.0 536.5,280.0 562.7,280.0 588.8,280.0 615.0,278.9 641.2,278.4 667.4,280.0 693.6,143.5 719.7,190.7 745.9,143.0 772.1,185.0 798.3,145.6 824.4,180.3 850.6,144.3 876.8,177.9 903.0,145.8 929.2,176.8 955.3,280.0 981.5,280.0 1007.7,280.0 1033.9,280.0 1060.0,280.0 1086.2,280.0 1112.4,280.0 1138.6,280.0 1164.8,280.0 1190.9,280.0"/>
|
||
<polyline fill="none" stroke="#d62728" stroke-width="1.5" points="1243.3,280.0 1269.5,280.0"/>
|
||
<rect x="170" y="400" width="12" height="3" fill="#d62728"/><text x="186" y="405">5xx у клиентов (HAProxy), 1m</text>
|
||
<polyline fill="none" stroke="#ff9896" stroke-width="1.5" points="170.0,280.0 196.2,280.0 222.4,280.0 248.5,280.0 274.7,280.0 300.9,280.0 327.1,251.3 353.2,41.5 379.4,280.0 405.6,280.0 431.8,280.0 458.0,280.0 484.1,280.0 510.3,280.0 536.5,280.0 562.7,280.0 588.8,280.0 615.0,279.7 641.2,279.2 667.4,280.0 693.6,255.0 719.7,279.6 745.9,254.8 772.1,280.0 798.3,253.6 824.4,275.8 850.6,249.4 876.8,273.4 903.0,252.5 929.2,272.6 955.3,280.0 981.5,280.0 1007.7,280.0 1033.9,280.0 1060.0,280.0 1086.2,280.0 1112.4,280.0 1138.6,280.0 1164.8,280.0 1190.9,280.0"/>
|
||
<polyline fill="none" stroke="#ff9896" stroke-width="1.5" points="1243.3,280.0 1269.5,280.0"/>
|
||
<rect x="430" y="400" width="12" height="3" fill="#ff9896"/><text x="446" y="405">5xx в метриках API, 1m</text>
|
||
<polyline fill="none" stroke="#1f77b4" stroke-width="1.5" points="170.0,278.1 196.2,278.2 222.4,278.2 248.5,278.3 274.7,278.3 300.9,278.3 327.1,275.1 353.2,270.1 379.4,268.3 405.6,268.5 431.8,268.7 458.0,268.9 484.1,269.1 510.3,269.3 536.5,269.5 562.7,269.7 588.8,269.8 615.0,270.0 641.2,270.1 667.4,270.2 693.6,267.7 719.7,266.9 745.9,264.7 772.1,263.9 798.3,262.0 824.4,261.1 850.6,259.3 876.8,258.4 903.0,256.7 929.2,255.7 955.3,255.9 981.5,256.2 1007.7,256.4 1033.9,256.7 1060.0,257.0 1086.2,257.3 1112.4,257.6 1138.6,257.9 1164.8,258.2 1190.9,258.3 1217.1,258.3 1243.3,258.9 1269.5,259.2"/>
|
||
<rect x="690" y="400" width="12" height="3" fill="#1f77b4"/><text x="706" y="405">SLI 1h (fast: > 7.2 %)</text>
|
||
<polyline fill="none" stroke="#2ca02c" stroke-width="1.5" points="170.0,278.2 196.2,278.2 222.4,278.2 248.5,278.3 274.7,278.3 300.9,278.3 327.1,275.1 353.2,270.1 379.4,268.3 405.6,268.6 431.8,268.8 458.0,269.0 484.1,269.2 510.3,269.3 536.5,269.5 562.7,269.7 588.8,269.9 615.0,270.0 641.2,270.2 667.4,270.3 693.6,267.9 719.7,267.1 745.9,264.9 772.1,264.1 798.3,262.2 824.4,261.4 850.6,259.6 876.8,258.7 903.0,257.1 929.2,256.2 955.3,256.6 981.5,256.9 1007.7,257.2 1033.9,257.5 1060.0,257.8 1086.2,258.0 1112.4,258.3 1138.6,258.6 1164.8,258.8 1190.9,259.0 1217.1,259.0 1243.3,259.6 1269.5,259.8"/>
|
||
<rect x="950" y="400" width="12" height="3" fill="#2ca02c"/><text x="966" y="405">SLI 6h (slow: > 3 %)</text>
|
||
<text x="164" y="311" text-anchor="end">ApiHighErrorRate</text>
|
||
<rect x="431.8" y="302" width="174.5" height="10" fill="#ff7f0e"/>
|
||
<rect x="798.3" y="302" width="357.8" height="10" fill="#ff7f0e"/>
|
||
<text x="164" y="325" text-anchor="end">ApiAvailabilityFastBurn</text>
|
||
<rect x="815.7" y="316" width="340.3" height="10" fill="#ff7f0e"/>
|
||
<text x="164" y="339" text-anchor="end">ApiAvailabilitySlowBurn</text>
|
||
<rect x="353.2" y="330" width="933.7" height="10" fill="#ff7f0e"/>
|
||
<text x="170.0" y="14" text-anchor="middle" fill="#555">0 мин</text>
|
||
<text x="431.8" y="14" text-anchor="middle" fill="#555">5 мин</text>
|
||
<text x="693.6" y="14" text-anchor="middle" fill="#555">10 мин</text>
|
||
<text x="955.3" y="14" text-anchor="middle" fill="#555">15 мин</text>
|
||
<text x="1217.1" y="14" text-anchor="middle" fill="#555">20 мин</text>
|
||
</svg> |