ЛР 7: Безопасность, mTLS и OpenBao
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
2026-12-05 18:23:13 +03:00
parent 20afc2c790
commit e7d7bbbe77
66 changed files with 4865 additions and 81 deletions
@@ -0,0 +1,72 @@
{
"annotations": {"list": []},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"type": "timeseries",
"title": "HTTP RPS",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [{"expr": "sum(rate(messenger_http_requests_total[$__rate_interval]))","legendFormat":"requests/s","refId":"A"}]
},
{
"type": "timeseries",
"title": "HTTP 5xx ratio",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [{"expr":"sum(rate(messenger_http_requests_total{status_class=\"5xx\"}[$__rate_interval])) / clamp_min(sum(rate(messenger_http_requests_total[$__rate_interval])), 1e-9)","legendFormat":"5xx ratio","refId":"A"}]
},
{
"type": "timeseries",
"title": "HTTP duration p95",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 8},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [{"expr":"histogram_quantile(0.95, sum(rate(messenger_http_duration_seconds_bucket[$__rate_interval])) by (le))","legendFormat":"p95","refId":"A"}]
},
{
"type": "timeseries",
"title": "Image jobs",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 8},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [{"expr":"sum by (outcome) (rate(messenger_jobs_processed_total[$__rate_interval]))","legendFormat":"{{outcome}}","refId":"A"}]
},
{
"type": "timeseries",
"title": "Worker duration p95",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 16},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [{"expr":"histogram_quantile(0.95, sum(rate(messenger_job_duration_seconds_bucket[$__rate_interval])) by (le))","legendFormat":"p95","refId":"A"}]
},
{
"type": "logs",
"title": "API and worker logs",
"gridPos": {"h": 10, "w": 12, "x": 12, "y": 16},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [{"expr":"{service_name=~\"messenger-api|messenger-worker\"}","refId":"A"}]
},
{
"type": "traces",
"title": "Recent traces",
"gridPos": {"h": 10, "w": 24, "x": 0, "y": 26},
"datasource": {"type": "tempo", "uid": "tempo"},
"targets": [{"queryType":"traceql","query":"{}","refId":"A","limit":20}]
}
],
"refresh": "10s",
"schemaVersion": 39,
"style": "dark",
"tags": ["lab6", "messenger", "otel"],
"templating": {"list": []},
"time": {"from": "now-15m", "to": "now"},
"timepicker": {},
"timezone": "browser",
"title": "Messenger Observability",
"uid": "messenger-lab6",
"version": 1,
"weekStart": ""
}