Files
mtusi2026lab7/infra/otel/dashboard.json
T
imenno_on d15d78efdf
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Добавил TLS и защиту мессенджера для лабораторной 7
2026-11-29 13:06:06 +03:00

21 lines
2.2 KiB
JSON

{
"uid": "messenger-overview",
"title": "Messenger: API и обработчик вложений",
"tags": ["lab6", "otel"],
"timezone": "browser",
"schemaVersion": 39,
"version": 1,
"refresh": "10s",
"time": {"from": "now-30m", "to": "now"},
"panels": [
{"id": 1, "type": "timeseries", "title": "HTTP запросы/сек", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, "targets": [{"expr": "sum(rate(messenger_messenger_http_requests_total[5m])) by (http_route)", "legendFormat": "{{http_route}}"}]},
{"id": 2, "type": "timeseries", "title": "HTTP 5xx/сек (без health)", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 0}, "targets": [{"expr": "sum(rate(messenger_messenger_http_requests_total{http_response_status_class=\"5xx\",http_route!~\"/health.*\"}[5m])) by (http_response_status_class)"}]},
{"id": 3, "type": "timeseries", "title": "HTTP p95", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 8}, "targets": [{"expr": "histogram_quantile(0.95, sum(rate(messenger_messenger_http_request_duration_seconds_bucket[5m])) by (le,http_route))"}]},
{"id": 4, "type": "timeseries", "title": "Задания worker", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 8}, "targets": [{"expr": "sum(rate(messenger_messenger_jobs_total[5m])) by (job_type,outcome)"}]},
{"id": 5, "type": "timeseries", "title": "Длительность заданий worker p95, секунды", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 16}, "targets": [{"expr": "histogram_quantile(0.95, sum(rate(messenger_messenger_job_duration_seconds_bucket[5m])) by (le,job_type,outcome))", "legendFormat": "{{job_type}} / {{outcome}}"}]},
{"id": 6, "type": "logs", "title": "Логи приложения", "datasource": {"type": "loki", "uid": "loki"}, "gridPos": {"h": 10, "w": 24, "x": 0, "y": 24}, "targets": [{"expr": "{service_name=~\"messenger-api|messenger-worker\"}"}]}
],
"annotations": {"list": []},
"templating": {"list": []}
}