3_grade_report
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
caramelteawithmint
2026-12-04 21:25:42 +03:00
parent 22886d6314
commit ea3aeb4f74
33 changed files with 429 additions and 143 deletions
+40
View File
@@ -0,0 +1,40 @@
{
"annotations": {"list": []},
"editable": true,
"panels": [
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "reqps"}},
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 0},
"id": 1,
"targets": [{"expr": "sum(rate(http_requests_total[1m])) by (handler)", "legendFormat": "{{handler}}"}],
"title": "API RPS",
"type": "timeseries"
},
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "percentunit"}},
"gridPos": {"h": 8, "w": 8, "x": 8, "y": 0},
"id": 2,
"targets": [{"expr": "sum(rate(http_requests_total{status=~\"5..\"}[1m])) / sum(rate(http_requests_total[1m]))", "legendFormat": "5xx ratio"}],
"title": "API Error Rate (5xx)",
"type": "timeseries"
},
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "s"}},
"gridPos": {"h": 8, "w": 8, "x": 16, "y": 0},
"id": 3,
"targets": [
{"expr": "histogram_quantile(0.50, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p50"},
{"expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p95"},
{"expr": "histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p99"}
],
"title": "API Duration (p50/p95/p99)",
"type": "timeseries"
}
],
"schemaVersion": 39,
"title": "Lab6 API",
"uid": "lab6-api"
}
@@ -0,0 +1,52 @@
{
"annotations": {"list": []},
"editable": true,
"panels": [
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "short"}},
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
"id": 1,
"targets": [
{"expr": "sum(rate(worker_processed_total{result=\"success\"}[1m]))", "legendFormat": "Success"},
{"expr": "sum(rate(worker_processed_total{result=\"error\"}[1m]))", "legendFormat": "Error"}
],
"title": "Worker Jobs (Success/Error)",
"type": "timeseries"
},
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "s"}},
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
"id": 2,
"targets": [
{"expr": "histogram_quantile(0.50, sum(rate(worker_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p50"},
{"expr": "histogram_quantile(0.95, sum(rate(worker_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p95"},
{"expr": "histogram_quantile(0.99, sum(rate(worker_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p99"}
],
"title": "Worker Duration (p50/p95/p99)",
"type": "timeseries"
},
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "short"}},
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 8},
"id": 3,
"targets": [{"expr": "sum(worker_in_flight)", "legendFormat": "In Flight"}],
"title": "Worker Saturation (In Flight Jobs)",
"type": "timeseries"
},
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"fieldConfig": {"defaults": {"unit": "short"}},
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 8},
"id": 4,
"targets": [{"expr": "sum(rabbitmq_queue_depth)", "legendFormat": "Queue Depth"}],
"title": "Queue Depth",
"type": "timeseries"
}
],
"schemaVersion": 39,
"title": "Lab6 Worker",
"uid": "lab6-worker"
}