ЛР 7 — БВТ2302 — Макаренко — TLS и управление секретами

This commit is contained in:
2026-12-04 13:41:59 +03:00
parent 20afc2c790
commit 8a3cf7f2dd
55 changed files with 1991 additions and 24 deletions
+113
View File
@@ -0,0 +1,113 @@
{
"uid": "messenger",
"title": "Messenger",
"schemaVersion": 39,
"refresh": "5s",
"panels": [
{
"id": 1,
"type": "timeseries",
"title": "HTTP requests/s",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum(rate(messenger_api_operations_total[2m]))"
}
],
"gridPos": {
"x": 0,
"y": 0,
"w": 12,
"h": 8
}
},
{
"id": 2,
"type": "timeseries",
"title": "HTTP errors/s",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum(rate(messenger_api_operations_total{outcome=\"error\"}[2m]))"
}
],
"gridPos": {
"x": 12,
"y": 0,
"w": 12,
"h": 8
}
},
{
"id": 3,
"type": "timeseries",
"title": "HTTP p95 (s)",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "histogram_quantile(0.95,sum by(le)(rate(messenger_api_duration_seconds_bucket[2m])))"
}
],
"gridPos": {
"x": 0,
"y": 8,
"w": 12,
"h": 8
}
},
{
"id": 4,
"type": "timeseries",
"title": "Worker jobs",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum by(outcome)(increase(messenger_worker_operations_total[5m]))"
}
],
"gridPos": {
"x": 12,
"y": 8,
"w": 12,
"h": 8
}
},
{
"id": 5,
"type": "timeseries",
"title": "Worker p95 (s)",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "histogram_quantile(0.95,sum by(le)(rate(messenger_worker_duration_seconds_bucket[5m])))"
}
],
"gridPos": {
"x": 0,
"y": 16,
"w": 12,
"h": 8
}
}
]
}